Fix 32-bit overflow in parallels image support
[qemu-kvm/fedora.git] / hw / devices.h
blob156bde2a2845511070566fcde779388929876b54
1 #ifndef QEMU_DEVICES_H
2 #define QEMU_DEVICES_H
4 /* Devices that have nowhere better to go. */
6 /* smc91c111.c */
7 void smc91c111_init(NICInfo *, uint32_t, qemu_irq);
9 /* tsc210x.c */
10 uWireSlave *tsc2102_init(qemu_irq pint);
11 uWireSlave *tsc2301_init(qemu_irq penirq, qemu_irq kbirq, qemu_irq dav);
12 I2SCodec *tsc210x_codec(uWireSlave *chip);
13 uint32_t tsc210x_txrx(void *opaque, uint32_t value, int len);
14 void tsc210x_set_transform(uWireSlave *chip,
15 MouseTransformInfo *info);
16 void tsc210x_key_event(uWireSlave *chip, int key, int down);
18 /* tsc2005.c */
19 void *tsc2005_init(qemu_irq pintdav);
20 uint32_t tsc2005_txrx(void *opaque, uint32_t value, int len);
21 void tsc2005_set_transform(void *opaque, MouseTransformInfo *info);
23 /* stellaris_input.c */
24 void stellaris_gamepad_init(int n, qemu_irq *irq, const int *keycode);
26 /* blizzard.c */
27 void *s1d13745_init(qemu_irq gpio_int);
28 void s1d13745_write(void *opaque, int dc, uint16_t value);
29 void s1d13745_write_block(void *opaque, int dc,
30 void *buf, size_t len, int pitch);
31 uint16_t s1d13745_read(void *opaque, int dc);
33 /* cbus.c */
34 typedef struct {
35 qemu_irq clk;
36 qemu_irq dat;
37 qemu_irq sel;
38 } CBus;
39 CBus *cbus_init(qemu_irq dat_out);
40 void cbus_attach(CBus *bus, void *slave_opaque);
42 void *retu_init(qemu_irq irq, int vilma);
43 void *tahvo_init(qemu_irq irq, int betty);
45 void retu_key_event(void *retu, int state);
47 /* tusb6010.c */
48 typedef struct TUSBState TUSBState;
49 TUSBState *tusb6010_init(qemu_irq intr);
50 int tusb6010_sync_io(TUSBState *s);
51 int tusb6010_async_io(TUSBState *s);
52 void tusb6010_power(TUSBState *s, int on);
54 /* tc6393xb.c */
55 typedef struct TC6393xbState TC6393xbState;
56 #define TC6393XB_RAM 0x110000 /* amount of ram for Video and USB */
57 TC6393xbState *tc6393xb_init(uint32_t base, qemu_irq irq);
58 void tc6393xb_gpio_out_set(TC6393xbState *s, int line,
59 qemu_irq handler);
60 qemu_irq *tc6393xb_gpio_in_get(TC6393xbState *s);
61 qemu_irq tc6393xb_l3v_get(TC6393xbState *s);
63 /* sm501.c */
64 void sm501_init(uint32_t base, uint32_t local_mem_bytes, qemu_irq irq,
65 CharDriverState *chr);
67 /* usb-ohci.c */
68 void usb_ohci_init_sm501(uint32_t mmio_base, uint32_t localmem_base,
69 int num_ports, int devfn, qemu_irq irq);
70 #endif