Revision bc24a225 hw/devices.h
b/hw/devices.h | ||
---|---|---|
11 | 11 |
void *ssd0323_init(qemu_irq *cmd_p); |
12 | 12 |
|
13 | 13 |
/* ads7846.c */ |
14 |
struct ads7846_state_s;
|
|
14 |
typedef struct ADS7846State ADS7846State;
|
|
15 | 15 |
uint32_t ads7846_read(void *opaque); |
16 | 16 |
void ads7846_write(void *opaque, uint32_t value); |
17 |
struct ads7846_state_s *ads7846_init(qemu_irq penirq);
|
|
17 |
ADS7846State *ads7846_init(qemu_irq penirq);
|
|
18 | 18 |
|
19 | 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, |
|
20 |
uWireSlave *tsc2102_init(qemu_irq pint, AudioState *audio); |
|
21 |
uWireSlave *tsc2301_init(qemu_irq penirq, qemu_irq kbirq, |
|
24 | 22 |
qemu_irq dav, AudioState *audio); |
25 |
struct i2s_codec_s *tsc210x_codec(struct uwire_slave_s *chip);
|
|
23 |
I2SCodec *tsc210x_codec(uWireSlave *chip);
|
|
26 | 24 |
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);
|
|
25 |
void tsc210x_set_transform(uWireSlave *chip,
|
|
26 |
MouseTransformInfo *info);
|
|
27 |
void tsc210x_key_event(uWireSlave *chip, int key, int down);
|
|
30 | 28 |
|
31 | 29 |
/* tsc2005.c */ |
32 | 30 |
void *tsc2005_init(qemu_irq pintdav); |
33 | 31 |
uint32_t tsc2005_txrx(void *opaque, uint32_t value, int len); |
34 |
void tsc2005_set_transform(void *opaque, struct mouse_transform_info_s *info);
|
|
32 |
void tsc2005_set_transform(void *opaque, MouseTransformInfo *info);
|
|
35 | 33 |
|
36 | 34 |
/* stellaris_input.c */ |
37 | 35 |
void stellaris_gamepad_init(int n, qemu_irq *irq, const int *keycode); |
... | ... | |
44 | 42 |
uint16_t s1d13745_read(void *opaque, int dc); |
45 | 43 |
|
46 | 44 |
/* cbus.c */ |
47 |
struct cbus_s {
|
|
45 |
typedef struct {
|
|
48 | 46 |
qemu_irq clk; |
49 | 47 |
qemu_irq dat; |
50 | 48 |
qemu_irq sel; |
51 |
}; |
|
52 |
struct cbus_s *cbus_init(qemu_irq dat_out);
|
|
53 |
void cbus_attach(struct cbus_s *bus, void *slave_opaque);
|
|
49 |
} CBus;
|
|
50 |
CBus *cbus_init(qemu_irq dat_out);
|
|
51 |
void cbus_attach(CBus *bus, void *slave_opaque);
|
|
54 | 52 |
|
55 | 53 |
void *retu_init(qemu_irq irq, int vilma); |
56 | 54 |
void *tahvo_init(qemu_irq irq, int betty); |
... | ... | |
58 | 56 |
void retu_key_event(void *retu, int state); |
59 | 57 |
|
60 | 58 |
/* 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);
|
|
59 |
typedef struct TUSBState TUSBState;
|
|
60 |
TUSBState *tusb6010_init(qemu_irq intr);
|
|
61 |
int tusb6010_sync_io(TUSBState *s);
|
|
62 |
int tusb6010_async_io(TUSBState *s);
|
|
63 |
void tusb6010_power(TUSBState *s, int on);
|
|
66 | 64 |
|
67 | 65 |
/* tc6393xb.c */ |
68 |
struct tc6393xb_s;
|
|
66 |
typedef struct TC6393xbState TC6393xbState;
|
|
69 | 67 |
#define TC6393XB_RAM 0x110000 /* amount of ram for Video and USB */ |
70 |
struct tc6393xb_s *tc6393xb_init(uint32_t base, qemu_irq irq);
|
|
71 |
void tc6393xb_gpio_out_set(struct tc6393xb_s *s, int line,
|
|
68 |
TC6393xbState *tc6393xb_init(uint32_t base, qemu_irq irq);
|
|
69 |
void tc6393xb_gpio_out_set(TC6393xbState *s, int line,
|
|
72 | 70 |
qemu_irq handler); |
73 |
qemu_irq *tc6393xb_gpio_in_get(struct tc6393xb_s *s);
|
|
74 |
qemu_irq tc6393xb_l3v_get(struct tc6393xb_s *s);
|
|
71 |
qemu_irq *tc6393xb_gpio_in_get(TC6393xbState *s);
|
|
72 |
qemu_irq tc6393xb_l3v_get(TC6393xbState *s);
|
|
75 | 73 |
|
76 | 74 |
/* sm501.c */ |
77 | 75 |
void sm501_init(uint32_t base, uint32_t local_mem_bytes, qemu_irq irq, |
Also available in: Unified diff