]> git.proxmox.com Git - qemu.git/blame - hw/devices.h
report serial devices created with -device in the PIIX4 config space
[qemu.git] / hw / devices.h
CommitLineData
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 */
7void smc91c111_init(NICInfo *, uint32_t, qemu_irq);
8
2a424990
PB
9/* lan9118.c */
10void lan9118_init(NICInfo *, uint32_t, qemu_irq);
11
a5d7eb65 12/* tsc210x.c */
22d83b14
PB
13uWireSlave *tsc2102_init(qemu_irq pint);
14uWireSlave *tsc2301_init(qemu_irq penirq, qemu_irq kbirq, qemu_irq dav);
bc24a225 15I2SCodec *tsc210x_codec(uWireSlave *chip);
e927bb00 16uint32_t tsc210x_txrx(void *opaque, uint32_t value, int len);
bc24a225
PB
17void tsc210x_set_transform(uWireSlave *chip,
18 MouseTransformInfo *info);
19void tsc210x_key_event(uWireSlave *chip, int key, int down);
a5d7eb65 20
e927bb00
AZ
21/* tsc2005.c */
22void *tsc2005_init(qemu_irq pintdav);
23uint32_t tsc2005_txrx(void *opaque, uint32_t value, int len);
bc24a225 24void tsc2005_set_transform(void *opaque, MouseTransformInfo *info);
e927bb00 25
cf0dbb21
PB
26/* stellaris_input.c */
27void stellaris_gamepad_init(int n, qemu_irq *irq, const int *keycode);
28
7e7c5e4c 29/* blizzard.c */
3023f332 30void *s1d13745_init(qemu_irq gpio_int);
7e7c5e4c
AZ
31void s1d13745_write(void *opaque, int dc, uint16_t value);
32void s1d13745_write_block(void *opaque, int dc,
33 void *buf, size_t len, int pitch);
34uint16_t s1d13745_read(void *opaque, int dc);
35
36/* cbus.c */
bc24a225 37typedef struct {
7e7c5e4c
AZ
38 qemu_irq clk;
39 qemu_irq dat;
40 qemu_irq sel;
bc24a225
PB
41} CBus;
42CBus *cbus_init(qemu_irq dat_out);
43void cbus_attach(CBus *bus, void *slave_opaque);
7e7c5e4c
AZ
44
45void *retu_init(qemu_irq irq, int vilma);
46void *tahvo_init(qemu_irq irq, int betty);
47
48void retu_key_event(void *retu, int state);
49
942ac052 50/* tusb6010.c */
bc24a225
PB
51typedef struct TUSBState TUSBState;
52TUSBState *tusb6010_init(qemu_irq intr);
53int tusb6010_sync_io(TUSBState *s);
54int tusb6010_async_io(TUSBState *s);
55void tusb6010_power(TUSBState *s, int on);
942ac052 56
88d2c950 57/* tc6393xb.c */
bc24a225 58typedef struct TC6393xbState TC6393xbState;
64b40bc5 59#define TC6393XB_RAM 0x110000 /* amount of ram for Video and USB */
bc24a225
PB
60TC6393xbState *tc6393xb_init(uint32_t base, qemu_irq irq);
61void tc6393xb_gpio_out_set(TC6393xbState *s, int line,
88d2c950 62 qemu_irq handler);
bc24a225
PB
63qemu_irq *tc6393xb_gpio_in_get(TC6393xbState *s);
64qemu_irq tc6393xb_l3v_get(TC6393xbState *s);
88d2c950 65
ffd39257 66/* sm501.c */
ac611340
AJ
67void sm501_init(uint32_t base, uint32_t local_mem_bytes, qemu_irq irq,
68 CharDriverState *chr);
69
87ecb68b 70#endif