Remove obsolete VGABIOS patch.
[qemu/qemu-JZ.git] / hw / devices.h
blob4f872611acb0a18af7aa269e15b16f0a783fd5a9
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 /* ssd0323.c */
10 int ssd0323_xfer_ssi(void *opaque, int data);
11 void *ssd0323_init(DisplayState *ds, qemu_irq *cmd_p);
13 /* ads7846.c */
14 struct ads7846_state_s;
15 uint32_t ads7846_read(void *opaque);
16 void ads7846_write(void *opaque, uint32_t value);
17 struct ads7846_state_s *ads7846_init(qemu_irq penirq);
19 /* tsc210x.c */
20 struct uwire_slave_s;
21 struct mouse_transform_info_s;
22 struct uwire_slave_s *tsc2102_init(qemu_irq pint, AudioState *audio);
23 struct uwire_slave_s *tsc2301_init(qemu_irq penirq, qemu_irq kbirq,
24 qemu_irq dav, AudioState *audio);
25 struct i2s_codec_s *tsc210x_codec(struct uwire_slave_s *chip);
26 uint32_t tsc210x_txrx(void *opaque, uint32_t value, int len);
27 void tsc210x_set_transform(struct uwire_slave_s *chip,
28 struct mouse_transform_info_s *info);
29 void tsc210x_key_event(struct uwire_slave_s *chip, int key, int down);
31 /* tsc2005.c */
32 void *tsc2005_init(qemu_irq pintdav);
33 uint32_t tsc2005_txrx(void *opaque, uint32_t value, int len);
34 void tsc2005_set_transform(void *opaque, struct mouse_transform_info_s *info);
36 /* stellaris_input.c */
37 void stellaris_gamepad_init(int n, qemu_irq *irq, const int *keycode);
39 /* blizzard.c */
40 void *s1d13745_init(qemu_irq gpio_int, DisplayState *ds);
41 void s1d13745_write(void *opaque, int dc, uint16_t value);
42 void s1d13745_write_block(void *opaque, int dc,
43 void *buf, size_t len, int pitch);
44 uint16_t s1d13745_read(void *opaque, int dc);
46 /* cbus.c */
47 struct cbus_s {
48 qemu_irq clk;
49 qemu_irq dat;
50 qemu_irq sel;
52 struct cbus_s *cbus_init(qemu_irq dat_out);
53 void cbus_attach(struct cbus_s *bus, void *slave_opaque);
55 void *retu_init(qemu_irq irq, int vilma);
56 void *tahvo_init(qemu_irq irq, int betty);
58 void retu_key_event(void *retu, int state);
60 /* tusb6010.c */
61 struct tusb_s;
62 struct tusb_s *tusb6010_init(qemu_irq intr);
63 int tusb6010_sync_io(struct tusb_s *s);
64 int tusb6010_async_io(struct tusb_s *s);
65 void tusb6010_power(struct tusb_s *s, int on);
67 /* tc6393xb.c */
68 struct tc6393xb_s;
69 #define TC6393XB_RAM 0x110000 /* amount of ram for Video and USB */
70 struct tc6393xb_s *tc6393xb_init(uint32_t base, qemu_irq irq, DisplayState *ds);
71 void tc6393xb_gpio_out_set(struct tc6393xb_s *s, int line,
72 qemu_irq handler);
73 qemu_irq *tc6393xb_gpio_in_get(struct tc6393xb_s *s);
74 qemu_irq tc6393xb_l3v_get(struct tc6393xb_s *s);
76 /* sm501.c */
77 void sm501_init(DisplayState *ds, uint32_t base, unsigned long local_mem_base,
78 uint32_t local_mem_bytes, CharDriverState *chr);
79 #endif