qemu/include/hw/devices.h
<<
>>
Prefs
   1#ifndef QEMU_DEVICES_H
   2#define QEMU_DEVICES_H
   3
   4#include "hw/irq.h"
   5
   6/* ??? Not all users of this file can include cpu-common.h.  */
   7struct MemoryRegion;
   8
   9/* Devices that have nowhere better to go.  */
  10
  11/* smc91c111.c */
  12void smc91c111_init(NICInfo *, uint32_t, qemu_irq);
  13
  14/* lan9118.c */
  15void lan9118_init(NICInfo *, uint32_t, qemu_irq);
  16
  17/* tsc210x.c */
  18uWireSlave *tsc2102_init(qemu_irq pint);
  19uWireSlave *tsc2301_init(qemu_irq penirq, qemu_irq kbirq, qemu_irq dav);
  20I2SCodec *tsc210x_codec(uWireSlave *chip);
  21uint32_t tsc210x_txrx(void *opaque, uint32_t value, int len);
  22void tsc210x_set_transform(uWireSlave *chip,
  23                MouseTransformInfo *info);
  24void tsc210x_key_event(uWireSlave *chip, int key, int down);
  25
  26/* tsc2005.c */
  27void *tsc2005_init(qemu_irq pintdav);
  28uint32_t tsc2005_txrx(void *opaque, uint32_t value, int len);
  29void tsc2005_set_transform(void *opaque, MouseTransformInfo *info);
  30
  31/* stellaris_input.c */
  32void stellaris_gamepad_init(int n, qemu_irq *irq, const int *keycode);
  33
  34/* blizzard.c */
  35void *s1d13745_init(qemu_irq gpio_int);
  36void s1d13745_write(void *opaque, int dc, uint16_t value);
  37void s1d13745_write_block(void *opaque, int dc,
  38                void *buf, size_t len, int pitch);
  39uint16_t s1d13745_read(void *opaque, int dc);
  40
  41/* cbus.c */
  42typedef struct {
  43    qemu_irq clk;
  44    qemu_irq dat;
  45    qemu_irq sel;
  46} CBus;
  47CBus *cbus_init(qemu_irq dat_out);
  48void cbus_attach(CBus *bus, void *slave_opaque);
  49
  50void *retu_init(qemu_irq irq, int vilma);
  51void *tahvo_init(qemu_irq irq, int betty);
  52
  53void retu_key_event(void *retu, int state);
  54
  55/* tc6393xb.c */
  56typedef struct TC6393xbState TC6393xbState;
  57#define TC6393XB_RAM    0x110000 /* amount of ram for Video and USB */
  58TC6393xbState *tc6393xb_init(struct MemoryRegion *sysmem,
  59                             uint32_t base, qemu_irq irq);
  60void tc6393xb_gpio_out_set(TC6393xbState *s, int line,
  61                    qemu_irq handler);
  62qemu_irq *tc6393xb_gpio_in_get(TC6393xbState *s);
  63qemu_irq tc6393xb_l3v_get(TC6393xbState *s);
  64
  65/* sm501.c */
  66void sm501_init(struct MemoryRegion *address_space_mem, uint32_t base,
  67                uint32_t local_mem_bytes, qemu_irq irq,
  68                CharDriverState *chr);
  69
  70#endif
  71