]> git.proxmox.com Git - mirror_qemu.git/blob - include/hw/display/milkymist_tmu2.h
hw/display/milkymist-tmu2: Move inlined code from header to source
[mirror_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 "hw/qdev.h"
31
32 #if defined(CONFIG_X11) && defined(CONFIG_OPENGL)
33 DeviceState *milkymist_tmu2_create(hwaddr base, qemu_irq irq);
34 #else
35 static inline DeviceState *milkymist_tmu2_create(hwaddr base, qemu_irq irq)
36 {
37 return NULL;
38 }
39 #endif
40
41 #endif /* HW_DISPLAY_MILKYMIST_TMU2_H */