1#ifndef QEMU_DEVICES_H
2#define QEMU_DEVICES_H
3
4
5struct MemoryRegion;
6
7
8
9
10void smc91c111_init(NICInfo *, uint32_t, qemu_irq);
11
12
13void lan9118_init(NICInfo *, uint32_t, qemu_irq);
14
15
16uWireSlave *tsc2102_init(qemu_irq pint);
17uWireSlave *tsc2301_init(qemu_irq penirq, qemu_irq kbirq, qemu_irq dav);
18I2SCodec *tsc210x_codec(uWireSlave *chip);
19uint32_t tsc210x_txrx(void *opaque, uint32_t value, int len);
20void tsc210x_set_transform(uWireSlave *chip,
21 MouseTransformInfo *info);
22void tsc210x_key_event(uWireSlave *chip, int key, int down);
23
24
25void *tsc2005_init(qemu_irq pintdav);
26uint32_t tsc2005_txrx(void *opaque, uint32_t value, int len);
27void tsc2005_set_transform(void *opaque, MouseTransformInfo *info);
28
29
30void stellaris_gamepad_init(int n, qemu_irq *irq, const int *keycode);
31
32
33void *s1d13745_init(qemu_irq gpio_int);
34void s1d13745_write(void *opaque, int dc, uint16_t value);
35void s1d13745_write_block(void *opaque, int dc,
36 void *buf, size_t len, int pitch);
37uint16_t s1d13745_read(void *opaque, int dc);
38
39
40typedef struct {
41 qemu_irq clk;
42 qemu_irq dat;
43 qemu_irq sel;
44} CBus;
45CBus *cbus_init(qemu_irq dat_out);
46void cbus_attach(CBus *bus, void *slave_opaque);
47
48void *retu_init(qemu_irq irq, int vilma);
49void *tahvo_init(qemu_irq irq, int betty);
50
51void retu_key_event(void *retu, int state);
52
53
54typedef struct TC6393xbState TC6393xbState;
55#define TC6393XB_RAM 0x110000
56TC6393xbState *tc6393xb_init(struct MemoryRegion *sysmem,
57 uint32_t base, qemu_irq irq);
58void tc6393xb_gpio_out_set(TC6393xbState *s, int line,
59 qemu_irq handler);
60qemu_irq *tc6393xb_gpio_in_get(TC6393xbState *s);
61qemu_irq tc6393xb_l3v_get(TC6393xbState *s);
62
63
64void sm501_init(struct MemoryRegion *address_space_mem, uint32_t base,
65 uint32_t local_mem_bytes, qemu_irq irq,
66 CharDriverState *chr);
67
68#endif
69