mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
Break up vl.h.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3674 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
257514ddce
commit
87ecb68bdf
224 changed files with 2416 additions and 1842 deletions
15
hw/i2c.h
15
hw/i2c.h
|
@ -13,8 +13,6 @@ enum i2c_event {
|
|||
I2C_NACK /* Masker NACKed a receive byte. */
|
||||
};
|
||||
|
||||
typedef struct i2c_slave i2c_slave;
|
||||
|
||||
/* Master to slave. */
|
||||
typedef int (*i2c_send_cb)(i2c_slave *s, uint8_t data);
|
||||
/* Slave to master. */
|
||||
|
@ -34,8 +32,6 @@ struct i2c_slave
|
|||
void *next;
|
||||
};
|
||||
|
||||
typedef struct i2c_bus i2c_bus;
|
||||
|
||||
i2c_bus *i2c_init_bus(void);
|
||||
i2c_slave *i2c_slave_init(i2c_bus *bus, int address, int size);
|
||||
void i2c_set_slave_address(i2c_slave *dev, int address);
|
||||
|
@ -50,6 +46,14 @@ void i2c_bus_load(QEMUFile *f, i2c_bus *bus);
|
|||
void i2c_slave_save(QEMUFile *f, i2c_slave *dev);
|
||||
void i2c_slave_load(QEMUFile *f, i2c_slave *dev);
|
||||
|
||||
/* max111x.c */
|
||||
struct max111x_s;
|
||||
uint32_t max111x_read(void *opaque);
|
||||
void max111x_write(void *opaque, uint32_t value);
|
||||
struct max111x_s *max1110_init(qemu_irq cb);
|
||||
struct max111x_s *max1111_init(qemu_irq cb);
|
||||
void max111x_set_input(struct max111x_s *s, int line, uint8_t value);
|
||||
|
||||
/* max7310.c */
|
||||
i2c_slave *max7310_init(i2c_bus *bus);
|
||||
void max7310_reset(i2c_slave *i2c);
|
||||
|
@ -64,4 +68,7 @@ void wm8750_data_req_set(i2c_slave *i2c,
|
|||
void wm8750_dac_dat(void *opaque, uint32_t sample);
|
||||
uint32_t wm8750_adc_dat(void *opaque);
|
||||
|
||||
/* ssd0303.c */
|
||||
void ssd0303_init(DisplayState *ds, i2c_bus *bus, int address);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue