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