2007-11-18 01:14:51 +08:00
|
|
|
#ifndef QEMU_DEVICES_H
|
|
|
|
#define QEMU_DEVICES_H
|
|
|
|
|
2011-08-12 07:07:20 +08:00
|
|
|
/* ??? Not all users of this file can include cpu-common.h. */
|
|
|
|
struct MemoryRegion;
|
|
|
|
|
2007-11-18 01:14:51 +08:00
|
|
|
/* Devices that have nowhere better to go. */
|
|
|
|
|
|
|
|
/* smc91c111.c */
|
|
|
|
void smc91c111_init(NICInfo *, uint32_t, qemu_irq);
|
|
|
|
|
2009-11-17 01:06:43 +08:00
|
|
|
/* lan9118.c */
|
|
|
|
void lan9118_init(NICInfo *, uint32_t, qemu_irq);
|
|
|
|
|
2008-04-15 05:28:11 +08:00
|
|
|
/* tsc210x.c */
|
2009-05-12 19:33:04 +08:00
|
|
|
uWireSlave *tsc2102_init(qemu_irq pint);
|
|
|
|
uWireSlave *tsc2301_init(qemu_irq penirq, qemu_irq kbirq, qemu_irq dav);
|
2009-05-10 08:44:56 +08:00
|
|
|
I2SCodec *tsc210x_codec(uWireSlave *chip);
|
2008-05-07 22:30:38 +08:00
|
|
|
uint32_t tsc210x_txrx(void *opaque, uint32_t value, int len);
|
2009-05-10 08:44:56 +08:00
|
|
|
void tsc210x_set_transform(uWireSlave *chip,
|
|
|
|
MouseTransformInfo *info);
|
|
|
|
void tsc210x_key_event(uWireSlave *chip, int key, int down);
|
2008-04-15 05:28:11 +08:00
|
|
|
|
2008-05-07 22:30:38 +08:00
|
|
|
/* tsc2005.c */
|
|
|
|
void *tsc2005_init(qemu_irq pintdav);
|
|
|
|
uint32_t tsc2005_txrx(void *opaque, uint32_t value, int len);
|
2009-05-10 08:44:56 +08:00
|
|
|
void tsc2005_set_transform(void *opaque, MouseTransformInfo *info);
|
2008-05-07 22:30:38 +08:00
|
|
|
|
2007-11-18 22:36:08 +08:00
|
|
|
/* stellaris_input.c */
|
|
|
|
void stellaris_gamepad_init(int n, qemu_irq *irq, const int *keycode);
|
|
|
|
|
2008-04-15 05:57:44 +08:00
|
|
|
/* blizzard.c */
|
2009-01-17 03:04:14 +08:00
|
|
|
void *s1d13745_init(qemu_irq gpio_int);
|
2008-04-15 05:57:44 +08: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 */
|
2009-05-10 08:44:56 +08:00
|
|
|
typedef struct {
|
2008-04-15 05:57:44 +08:00
|
|
|
qemu_irq clk;
|
|
|
|
qemu_irq dat;
|
|
|
|
qemu_irq sel;
|
2009-05-10 08:44:56 +08:00
|
|
|
} CBus;
|
|
|
|
CBus *cbus_init(qemu_irq dat_out);
|
|
|
|
void cbus_attach(CBus *bus, void *slave_opaque);
|
2008-04-15 05:57:44 +08:00
|
|
|
|
|
|
|
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-06-09 08:03:13 +08:00
|
|
|
/* tc6393xb.c */
|
2009-05-10 08:44:56 +08:00
|
|
|
typedef struct TC6393xbState TC6393xbState;
|
2008-11-04 17:04:41 +08:00
|
|
|
#define TC6393XB_RAM 0x110000 /* amount of ram for Video and USB */
|
2011-10-03 20:42:42 +08:00
|
|
|
TC6393xbState *tc6393xb_init(struct MemoryRegion *sysmem,
|
|
|
|
uint32_t base, qemu_irq irq);
|
2009-05-10 08:44:56 +08:00
|
|
|
void tc6393xb_gpio_out_set(TC6393xbState *s, int line,
|
2008-06-09 08:03:13 +08:00
|
|
|
qemu_irq handler);
|
2009-05-10 08:44:56 +08:00
|
|
|
qemu_irq *tc6393xb_gpio_in_get(TC6393xbState *s);
|
|
|
|
qemu_irq tc6393xb_l3v_get(TC6393xbState *s);
|
2008-06-09 08:03:13 +08:00
|
|
|
|
2008-11-06 04:24:35 +08:00
|
|
|
/* sm501.c */
|
2011-08-12 07:07:20 +08:00
|
|
|
void sm501_init(struct MemoryRegion *address_space_mem, uint32_t base,
|
|
|
|
uint32_t local_mem_bytes, qemu_irq irq,
|
2009-04-19 17:15:50 +08:00
|
|
|
CharDriverState *chr);
|
|
|
|
|
2007-11-18 01:14:51 +08:00
|
|
|
#endif
|