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