]>
Commit | Line | Data |
---|---|---|
87ecb68b PB |
1 | #ifndef QEMU_DEVICES_H |
2 | #define QEMU_DEVICES_H | |
3 | ||
4 | /* Devices that have nowhere better to go. */ | |
5 | ||
6 | /* smc91c111.c */ | |
7 | void smc91c111_init(NICInfo *, uint32_t, qemu_irq); | |
8 | ||
9 | /* ssd0323.c */ | |
10 | int ssd0323_xfer_ssi(void *opaque, int data); | |
3023f332 | 11 | void *ssd0323_init(qemu_irq *cmd_p); |
87ecb68b PB |
12 | |
13 | /* ads7846.c */ | |
14 | struct ads7846_state_s; | |
15 | uint32_t ads7846_read(void *opaque); | |
16 | void ads7846_write(void *opaque, uint32_t value); | |
17 | struct ads7846_state_s *ads7846_init(qemu_irq penirq); | |
18 | ||
a5d7eb65 AZ |
19 | /* tsc210x.c */ |
20 | struct uwire_slave_s; | |
21 | struct mouse_transform_info_s; | |
22 | struct uwire_slave_s *tsc2102_init(qemu_irq pint, AudioState *audio); | |
23 | struct uwire_slave_s *tsc2301_init(qemu_irq penirq, qemu_irq kbirq, | |
24 | qemu_irq dav, AudioState *audio); | |
25 | struct i2s_codec_s *tsc210x_codec(struct uwire_slave_s *chip); | |
e927bb00 | 26 | uint32_t tsc210x_txrx(void *opaque, uint32_t value, int len); |
a5d7eb65 AZ |
27 | void tsc210x_set_transform(struct uwire_slave_s *chip, |
28 | struct mouse_transform_info_s *info); | |
29 | void tsc210x_key_event(struct uwire_slave_s *chip, int key, int down); | |
30 | ||
e927bb00 AZ |
31 | /* tsc2005.c */ |
32 | void *tsc2005_init(qemu_irq pintdav); | |
33 | uint32_t tsc2005_txrx(void *opaque, uint32_t value, int len); | |
34 | void tsc2005_set_transform(void *opaque, struct mouse_transform_info_s *info); | |
35 | ||
cf0dbb21 PB |
36 | /* stellaris_input.c */ |
37 | void stellaris_gamepad_init(int n, qemu_irq *irq, const int *keycode); | |
38 | ||
7e7c5e4c | 39 | /* blizzard.c */ |
3023f332 | 40 | void *s1d13745_init(qemu_irq gpio_int); |
7e7c5e4c AZ |
41 | void s1d13745_write(void *opaque, int dc, uint16_t value); |
42 | void s1d13745_write_block(void *opaque, int dc, | |
43 | void *buf, size_t len, int pitch); | |
44 | uint16_t s1d13745_read(void *opaque, int dc); | |
45 | ||
46 | /* cbus.c */ | |
47 | struct cbus_s { | |
48 | qemu_irq clk; | |
49 | qemu_irq dat; | |
50 | qemu_irq sel; | |
51 | }; | |
52 | struct cbus_s *cbus_init(qemu_irq dat_out); | |
53 | void cbus_attach(struct cbus_s *bus, void *slave_opaque); | |
54 | ||
55 | void *retu_init(qemu_irq irq, int vilma); | |
56 | void *tahvo_init(qemu_irq irq, int betty); | |
57 | ||
58 | void retu_key_event(void *retu, int state); | |
59 | ||
942ac052 AZ |
60 | /* tusb6010.c */ |
61 | struct tusb_s; | |
62 | struct tusb_s *tusb6010_init(qemu_irq intr); | |
63 | int tusb6010_sync_io(struct tusb_s *s); | |
64 | int tusb6010_async_io(struct tusb_s *s); | |
65 | void tusb6010_power(struct tusb_s *s, int on); | |
66 | ||
88d2c950 AZ |
67 | /* tc6393xb.c */ |
68 | struct tc6393xb_s; | |
64b40bc5 | 69 | #define TC6393XB_RAM 0x110000 /* amount of ram for Video and USB */ |
3023f332 | 70 | struct tc6393xb_s *tc6393xb_init(uint32_t base, qemu_irq irq); |
88d2c950 AZ |
71 | void tc6393xb_gpio_out_set(struct tc6393xb_s *s, int line, |
72 | qemu_irq handler); | |
73 | qemu_irq *tc6393xb_gpio_in_get(struct tc6393xb_s *s); | |
64b40bc5 | 74 | qemu_irq tc6393xb_l3v_get(struct tc6393xb_s *s); |
88d2c950 | 75 | |
ffd39257 | 76 | /* sm501.c */ |
ac611340 AJ |
77 | void sm501_init(uint32_t base, uint32_t local_mem_bytes, qemu_irq irq, |
78 | CharDriverState *chr); | |
79 | ||
80 | /* usb-ohci.c */ | |
81 | void usb_ohci_init_sm501(uint32_t mmio_base, uint32_t localmem_base, | |
82 | int num_ports, int devfn, qemu_irq irq); | |
87ecb68b | 83 | #endif |