2007-11-17 18:14:51 +01:00
|
|
|
#ifndef QEMU_DEVICES_H
|
|
|
|
#define QEMU_DEVICES_H
|
|
|
|
|
|
|
|
/* Devices that have nowhere better to go. */
|
|
|
|
|
|
|
|
/* smc91c111.c */
|
|
|
|
void smc91c111_init(NICInfo *, uint32_t, qemu_irq);
|
|
|
|
|
|
|
|
/* ssd0323.c */
|
|
|
|
int ssd0323_xfer_ssi(void *opaque, int data);
|
2009-01-16 20:04:14 +01:00
|
|
|
void *ssd0323_init(qemu_irq *cmd_p);
|
2007-11-17 18:14:51 +01:00
|
|
|
|
|
|
|
/* ads7846.c */
|
|
|
|
struct ads7846_state_s;
|
|
|
|
uint32_t ads7846_read(void *opaque);
|
|
|
|
void ads7846_write(void *opaque, uint32_t value);
|
|
|
|
struct ads7846_state_s *ads7846_init(qemu_irq penirq);
|
|
|
|
|
2008-04-14 23:28:11 +02:00
|
|
|
/* tsc210x.c */
|
|
|
|
struct uwire_slave_s;
|
|
|
|
struct mouse_transform_info_s;
|
|
|
|
struct uwire_slave_s *tsc2102_init(qemu_irq pint, AudioState *audio);
|
|
|
|
struct uwire_slave_s *tsc2301_init(qemu_irq penirq, qemu_irq kbirq,
|
|
|
|
qemu_irq dav, AudioState *audio);
|
|
|
|
struct i2s_codec_s *tsc210x_codec(struct uwire_slave_s *chip);
|
2008-05-07 16:30:38 +02:00
|
|
|
uint32_t tsc210x_txrx(void *opaque, uint32_t value, int len);
|
2008-04-14 23:28:11 +02:00
|
|
|
void tsc210x_set_transform(struct uwire_slave_s *chip,
|
|
|
|
struct mouse_transform_info_s *info);
|
|
|
|
void tsc210x_key_event(struct uwire_slave_s *chip, int key, int down);
|
|
|
|
|
2008-05-07 16:30:38 +02:00
|
|
|
/* tsc2005.c */
|
|
|
|
void *tsc2005_init(qemu_irq pintdav);
|
|
|
|
uint32_t tsc2005_txrx(void *opaque, uint32_t value, int len);
|
|
|
|
void tsc2005_set_transform(void *opaque, struct mouse_transform_info_s *info);
|
|
|
|
|
2007-11-18 15:36:08 +01:00
|
|
|
/* stellaris_input.c */
|
|
|
|
void stellaris_gamepad_init(int n, qemu_irq *irq, const int *keycode);
|
|
|
|
|
2008-04-14 23:57:44 +02:00
|
|
|
/* blizzard.c */
|
2009-01-16 20:04:14 +01:00
|
|
|
void *s1d13745_init(qemu_irq gpio_int);
|
2008-04-14 23:57:44 +02:00
|
|
|
void s1d13745_write(void *opaque, int dc, uint16_t value);
|
|
|
|
void s1d13745_write_block(void *opaque, int dc,
|
|
|
|
void *buf, size_t len, int pitch);
|
|
|
|
uint16_t s1d13745_read(void *opaque, int dc);
|
|
|
|
|
|
|
|
/* cbus.c */
|
|
|
|
struct cbus_s {
|
|
|
|
qemu_irq clk;
|
|
|
|
qemu_irq dat;
|
|
|
|
qemu_irq sel;
|
|
|
|
};
|
|
|
|
struct cbus_s *cbus_init(qemu_irq dat_out);
|
|
|
|
void cbus_attach(struct cbus_s *bus, void *slave_opaque);
|
|
|
|
|
|
|
|
void *retu_init(qemu_irq irq, int vilma);
|
|
|
|
void *tahvo_init(qemu_irq irq, int betty);
|
|
|
|
|
|
|
|
void retu_key_event(void *retu, int state);
|
|
|
|
|
2008-04-22 05:15:10 +02:00
|
|
|
/* tusb6010.c */
|
|
|
|
struct tusb_s;
|
|
|
|
struct tusb_s *tusb6010_init(qemu_irq intr);
|
|
|
|
int tusb6010_sync_io(struct tusb_s *s);
|
|
|
|
int tusb6010_async_io(struct tusb_s *s);
|
|
|
|
void tusb6010_power(struct tusb_s *s, int on);
|
|
|
|
|
2008-06-09 02:03:13 +02:00
|
|
|
/* tc6393xb.c */
|
|
|
|
struct tc6393xb_s;
|
2008-11-04 10:04:41 +01:00
|
|
|
#define TC6393XB_RAM 0x110000 /* amount of ram for Video and USB */
|
2009-01-16 20:04:14 +01:00
|
|
|
struct tc6393xb_s *tc6393xb_init(uint32_t base, qemu_irq irq);
|
2008-06-09 02:03:13 +02:00
|
|
|
void tc6393xb_gpio_out_set(struct tc6393xb_s *s, int line,
|
|
|
|
qemu_irq handler);
|
|
|
|
qemu_irq *tc6393xb_gpio_in_get(struct tc6393xb_s *s);
|
2008-11-04 10:04:41 +01:00
|
|
|
qemu_irq tc6393xb_l3v_get(struct tc6393xb_s *s);
|
2008-06-09 02:03:13 +02:00
|
|
|
|
2008-11-05 21:24:35 +01:00
|
|
|
/* sm501.c */
|
2009-01-16 20:04:14 +01:00
|
|
|
void sm501_init(uint32_t base, unsigned long local_mem_base,
|
2008-11-05 21:24:35 +01:00
|
|
|
uint32_t local_mem_bytes, CharDriverState *chr);
|
2007-11-17 18:14:51 +01:00
|
|
|
#endif
|