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