ppc/pnv: Add a HIOMAP erase command
[qemu.git] / include / hw / display / milkymist_tmu2.h
1 /*
2 * QEMU model of the Milkymist texture mapping unit.
3 *
4 * Copyright (c) 2010 Michael Walle <michael@walle.cc>
5 * Copyright (c) 2010 Sebastien Bourdeauducq
6 * <sebastien.bourdeauducq@lekernel.net>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
20 *
21 *
22 * Specification available at:
23 * http://milkymist.walle.cc/socdoc/tmu2.pdf
24 *
25 */
26
27 #ifndef HW_DISPLAY_MILKYMIST_TMU2_H
28 #define HW_DISPLAY_MILKYMIST_TMU2_H
29
30 #include "exec/hwaddr.h"
31 #include "hw/qdev-core.h"
32
33 #if defined(CONFIG_X11) && defined(CONFIG_OPENGL)
34 DeviceState *milkymist_tmu2_create(hwaddr base, qemu_irq irq);
35 #else
36 static inline DeviceState *milkymist_tmu2_create(hwaddr base, qemu_irq irq)
37 {
38 return NULL;
39 }
40 #endif
41
42 #endif /* HW_DISPLAY_MILKYMIST_TMU2_H */