root / include / hw / devices.h @ cba933b2
History | View | Annotate | Download (2.1 kB)
1 | 87ecb68b | pbrook | #ifndef QEMU_DEVICES_H
|
---|---|---|---|
2 | 87ecb68b | pbrook | #define QEMU_DEVICES_H
|
3 | 87ecb68b | pbrook | |
4 | 5202ef94 | Igor Mammedov | #include "hw/irq.h" |
5 | 5202ef94 | Igor Mammedov | |
6 | 27a9d2ea | Richard Henderson | /* ??? Not all users of this file can include cpu-common.h. */
|
7 | 27a9d2ea | Richard Henderson | struct MemoryRegion;
|
8 | 27a9d2ea | Richard Henderson | |
9 | 87ecb68b | pbrook | /* Devices that have nowhere better to go. */
|
10 | 87ecb68b | pbrook | |
11 | 87ecb68b | pbrook | /* smc91c111.c */
|
12 | 87ecb68b | pbrook | void smc91c111_init(NICInfo *, uint32_t, qemu_irq);
|
13 | 87ecb68b | pbrook | |
14 | 2a424990 | Paul Brook | /* lan9118.c */
|
15 | 2a424990 | Paul Brook | void lan9118_init(NICInfo *, uint32_t, qemu_irq);
|
16 | 2a424990 | Paul Brook | |
17 | a5d7eb65 | balrog | /* tsc210x.c */
|
18 | 22d83b14 | Paul Brook | uWireSlave *tsc2102_init(qemu_irq pint); |
19 | 22d83b14 | Paul Brook | uWireSlave *tsc2301_init(qemu_irq penirq, qemu_irq kbirq, qemu_irq dav); |
20 | bc24a225 | Paul Brook | I2SCodec *tsc210x_codec(uWireSlave *chip); |
21 | e927bb00 | balrog | uint32_t tsc210x_txrx(void *opaque, uint32_t value, int len); |
22 | bc24a225 | Paul Brook | void tsc210x_set_transform(uWireSlave *chip,
|
23 | bc24a225 | Paul Brook | MouseTransformInfo *info); |
24 | bc24a225 | Paul Brook | void tsc210x_key_event(uWireSlave *chip, int key, int down); |
25 | a5d7eb65 | balrog | |
26 | e927bb00 | balrog | /* tsc2005.c */
|
27 | e927bb00 | balrog | void *tsc2005_init(qemu_irq pintdav);
|
28 | e927bb00 | balrog | uint32_t tsc2005_txrx(void *opaque, uint32_t value, int len); |
29 | bc24a225 | Paul Brook | void tsc2005_set_transform(void *opaque, MouseTransformInfo *info); |
30 | e927bb00 | balrog | |
31 | cf0dbb21 | pbrook | /* stellaris_input.c */
|
32 | cf0dbb21 | pbrook | void stellaris_gamepad_init(int n, qemu_irq *irq, const int *keycode); |
33 | cf0dbb21 | pbrook | |
34 | 7e7c5e4c | balrog | /* blizzard.c */
|
35 | 3023f332 | aliguori | void *s1d13745_init(qemu_irq gpio_int);
|
36 | 7e7c5e4c | balrog | void s1d13745_write(void *opaque, int dc, uint16_t value); |
37 | 7e7c5e4c | balrog | void s1d13745_write_block(void *opaque, int dc, |
38 | 7e7c5e4c | balrog | void *buf, size_t len, int pitch); |
39 | 7e7c5e4c | balrog | uint16_t s1d13745_read(void *opaque, int dc); |
40 | 7e7c5e4c | balrog | |
41 | 7e7c5e4c | balrog | /* cbus.c */
|
42 | bc24a225 | Paul Brook | typedef struct { |
43 | 7e7c5e4c | balrog | qemu_irq clk; |
44 | 7e7c5e4c | balrog | qemu_irq dat; |
45 | 7e7c5e4c | balrog | qemu_irq sel; |
46 | bc24a225 | Paul Brook | } CBus; |
47 | bc24a225 | Paul Brook | CBus *cbus_init(qemu_irq dat_out); |
48 | bc24a225 | Paul Brook | void cbus_attach(CBus *bus, void *slave_opaque); |
49 | 7e7c5e4c | balrog | |
50 | 7e7c5e4c | balrog | void *retu_init(qemu_irq irq, int vilma); |
51 | 7e7c5e4c | balrog | void *tahvo_init(qemu_irq irq, int betty); |
52 | 7e7c5e4c | balrog | |
53 | 7e7c5e4c | balrog | void retu_key_event(void *retu, int state); |
54 | 7e7c5e4c | balrog | |
55 | 88d2c950 | balrog | /* tc6393xb.c */
|
56 | bc24a225 | Paul Brook | typedef struct TC6393xbState TC6393xbState; |
57 | 64b40bc5 | balrog | #define TC6393XB_RAM 0x110000 /* amount of ram for Video and USB */ |
58 | fe06bd93 | Avi Kivity | TC6393xbState *tc6393xb_init(struct MemoryRegion *sysmem,
|
59 | fe06bd93 | Avi Kivity | uint32_t base, qemu_irq irq); |
60 | bc24a225 | Paul Brook | void tc6393xb_gpio_out_set(TC6393xbState *s, int line, |
61 | 88d2c950 | balrog | qemu_irq handler); |
62 | bc24a225 | Paul Brook | qemu_irq *tc6393xb_gpio_in_get(TC6393xbState *s); |
63 | bc24a225 | Paul Brook | qemu_irq tc6393xb_l3v_get(TC6393xbState *s); |
64 | 88d2c950 | balrog | |
65 | ffd39257 | blueswir1 | /* sm501.c */
|
66 | 27a9d2ea | Richard Henderson | void sm501_init(struct MemoryRegion *address_space_mem, uint32_t base, |
67 | 27a9d2ea | Richard Henderson | uint32_t local_mem_bytes, qemu_irq irq, |
68 | ac611340 | aurel32 | CharDriverState *chr); |
69 | ac611340 | aurel32 | |
70 | 87ecb68b | pbrook | #endif |