pbrook | 87ecb68 | 2007-11-17 17:14:51 +0000 | [diff] [blame] | 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 | |
Paul Brook | 2a42499 | 2009-11-16 17:06:43 +0000 | [diff] [blame] | 9 | /* lan9118.c */ |
| 10 | void lan9118_init(NICInfo *, uint32_t, qemu_irq); |
| 11 | |
balrog | a5d7eb6 | 2008-04-14 21:28:11 +0000 | [diff] [blame] | 12 | /* tsc210x.c */ |
Paul Brook | 22d83b1 | 2009-05-12 12:33:04 +0100 | [diff] [blame] | 13 | uWireSlave *tsc2102_init(qemu_irq pint); |
| 14 | uWireSlave *tsc2301_init(qemu_irq penirq, qemu_irq kbirq, qemu_irq dav); |
Paul Brook | bc24a22 | 2009-05-10 01:44:56 +0100 | [diff] [blame] | 15 | I2SCodec *tsc210x_codec(uWireSlave *chip); |
balrog | e927bb0 | 2008-05-07 14:30:38 +0000 | [diff] [blame] | 16 | uint32_t tsc210x_txrx(void *opaque, uint32_t value, int len); |
Paul Brook | bc24a22 | 2009-05-10 01:44:56 +0100 | [diff] [blame] | 17 | void tsc210x_set_transform(uWireSlave *chip, |
| 18 | MouseTransformInfo *info); |
| 19 | void tsc210x_key_event(uWireSlave *chip, int key, int down); |
balrog | a5d7eb6 | 2008-04-14 21:28:11 +0000 | [diff] [blame] | 20 | |
balrog | e927bb0 | 2008-05-07 14:30:38 +0000 | [diff] [blame] | 21 | /* tsc2005.c */ |
| 22 | void *tsc2005_init(qemu_irq pintdav); |
| 23 | uint32_t tsc2005_txrx(void *opaque, uint32_t value, int len); |
Paul Brook | bc24a22 | 2009-05-10 01:44:56 +0100 | [diff] [blame] | 24 | void tsc2005_set_transform(void *opaque, MouseTransformInfo *info); |
balrog | e927bb0 | 2008-05-07 14:30:38 +0000 | [diff] [blame] | 25 | |
pbrook | cf0dbb2 | 2007-11-18 14:36:08 +0000 | [diff] [blame] | 26 | /* stellaris_input.c */ |
| 27 | void stellaris_gamepad_init(int n, qemu_irq *irq, const int *keycode); |
| 28 | |
balrog | 7e7c5e4 | 2008-04-14 21:57:44 +0000 | [diff] [blame] | 29 | /* blizzard.c */ |
aliguori | 3023f33 | 2009-01-16 19:04:14 +0000 | [diff] [blame] | 30 | void *s1d13745_init(qemu_irq gpio_int); |
balrog | 7e7c5e4 | 2008-04-14 21:57:44 +0000 | [diff] [blame] | 31 | void s1d13745_write(void *opaque, int dc, uint16_t value); |
| 32 | void s1d13745_write_block(void *opaque, int dc, |
| 33 | void *buf, size_t len, int pitch); |
| 34 | uint16_t s1d13745_read(void *opaque, int dc); |
| 35 | |
| 36 | /* cbus.c */ |
Paul Brook | bc24a22 | 2009-05-10 01:44:56 +0100 | [diff] [blame] | 37 | typedef struct { |
balrog | 7e7c5e4 | 2008-04-14 21:57:44 +0000 | [diff] [blame] | 38 | qemu_irq clk; |
| 39 | qemu_irq dat; |
| 40 | qemu_irq sel; |
Paul Brook | bc24a22 | 2009-05-10 01:44:56 +0100 | [diff] [blame] | 41 | } CBus; |
| 42 | CBus *cbus_init(qemu_irq dat_out); |
| 43 | void cbus_attach(CBus *bus, void *slave_opaque); |
balrog | 7e7c5e4 | 2008-04-14 21:57:44 +0000 | [diff] [blame] | 44 | |
| 45 | void *retu_init(qemu_irq irq, int vilma); |
| 46 | void *tahvo_init(qemu_irq irq, int betty); |
| 47 | |
| 48 | void retu_key_event(void *retu, int state); |
| 49 | |
balrog | 942ac05 | 2008-04-22 03:15:10 +0000 | [diff] [blame] | 50 | /* tusb6010.c */ |
Paul Brook | bc24a22 | 2009-05-10 01:44:56 +0100 | [diff] [blame] | 51 | typedef struct TUSBState TUSBState; |
| 52 | TUSBState *tusb6010_init(qemu_irq intr); |
| 53 | int tusb6010_sync_io(TUSBState *s); |
| 54 | int tusb6010_async_io(TUSBState *s); |
| 55 | void tusb6010_power(TUSBState *s, int on); |
balrog | 942ac05 | 2008-04-22 03:15:10 +0000 | [diff] [blame] | 56 | |
balrog | 88d2c95 | 2008-06-09 00:03:13 +0000 | [diff] [blame] | 57 | /* tc6393xb.c */ |
Paul Brook | bc24a22 | 2009-05-10 01:44:56 +0100 | [diff] [blame] | 58 | typedef struct TC6393xbState TC6393xbState; |
balrog | 64b40bc | 2008-11-04 09:04:41 +0000 | [diff] [blame] | 59 | #define TC6393XB_RAM 0x110000 /* amount of ram for Video and USB */ |
Paul Brook | bc24a22 | 2009-05-10 01:44:56 +0100 | [diff] [blame] | 60 | TC6393xbState *tc6393xb_init(uint32_t base, qemu_irq irq); |
| 61 | void tc6393xb_gpio_out_set(TC6393xbState *s, int line, |
balrog | 88d2c95 | 2008-06-09 00:03:13 +0000 | [diff] [blame] | 62 | qemu_irq handler); |
Paul Brook | bc24a22 | 2009-05-10 01:44:56 +0100 | [diff] [blame] | 63 | qemu_irq *tc6393xb_gpio_in_get(TC6393xbState *s); |
| 64 | qemu_irq tc6393xb_l3v_get(TC6393xbState *s); |
balrog | 88d2c95 | 2008-06-09 00:03:13 +0000 | [diff] [blame] | 65 | |
blueswir1 | ffd3925 | 2008-11-05 20:24:35 +0000 | [diff] [blame] | 66 | /* sm501.c */ |
aurel32 | ac61134 | 2009-04-19 09:15:50 +0000 | [diff] [blame] | 67 | void sm501_init(uint32_t base, uint32_t local_mem_bytes, qemu_irq irq, |
| 68 | CharDriverState *chr); |
| 69 | |
pbrook | 87ecb68 | 2007-11-17 17:14:51 +0000 | [diff] [blame] | 70 | #endif |