/openbmc/qemu/include/hw/i2c/ |
H A D | i2c.h | 67 OBJECT_DECLARE_SIMPLE_TYPE(I2CBus, I2C_BUS) 86 struct I2CBus { struct 98 int i2c_bus_busy(I2CBus *bus); 144 void i2c_schedule_pending_master(I2CBus *bus); 146 void i2c_end_transfer(I2CBus *bus); 147 void i2c_nack(I2CBus *bus); 148 void i2c_ack(I2CBus *bus); 149 void i2c_bus_master(I2CBus *bus, QEMUBH *bh); 150 void i2c_bus_release(I2CBus *bus); 151 int i2c_send(I2CBus *bus, uint8_t data); [all …]
|
H A D | smbus_master.h | 31 int smbus_quick_command(I2CBus *bus, uint8_t addr, int read); 32 int smbus_receive_byte(I2CBus *bus, uint8_t addr); 33 int smbus_send_byte(I2CBus *bus, uint8_t addr, uint8_t data); 34 int smbus_read_byte(I2CBus *bus, uint8_t addr, uint8_t command); 35 int smbus_write_byte(I2CBus *bus, uint8_t addr, uint8_t command, uint8_t data); 36 int smbus_read_word(I2CBus *bus, uint8_t addr, uint8_t command); 37 int smbus_write_word(I2CBus *bus, uint8_t addr, uint8_t command, uint16_t data); 45 int smbus_read_block(I2CBus *bus, uint8_t addr, uint8_t command, uint8_t *data, 52 int smbus_write_block(I2CBus *bus, uint8_t addr, uint8_t command, uint8_t *data,
|
H A D | smbus_eeprom.h | 29 void smbus_eeprom_init_one(I2CBus *bus, uint8_t address, uint8_t *eeprom_buf); 30 void smbus_eeprom_init(I2CBus *bus, int nb_eeprom,
|
H A D | bitbang_i2c.h | 37 I2CBus *bus; 49 void bitbang_i2c_init(bitbang_i2c_interface *s, I2CBus *bus);
|
H A D | i2c_mux_pca954x.h | 17 I2CBus *pca954x_i2c_get_bus(I2CSlave *mux, uint8_t channel);
|
H A D | allwinner-i2c.h | 45 I2CBus *bus;
|
H A D | ppc4xx_i2c.h | 42 I2CBus *bus;
|
H A D | pm_smbus.h | 10 I2CBus *smbus;
|
H A D | imx_i2c.h | 75 I2CBus *bus;
|
H A D | npcm7xx_smbus.h | 76 I2CBus *bus;
|
H A D | bcm2835_i2c.h | 68 I2CBus *bus;
|
/openbmc/qemu/hw/i2c/ |
H A D | core.c | 29 .instance_size = sizeof(I2CBus), 34 I2CBus *bus = opaque; in i2c_bus_pre_save() 62 I2CBus *bus; in i2c_init_bus() 77 int i2c_bus_busy(I2CBus *bus) in i2c_bus_busy() 216 void i2c_bus_release(I2CBus *bus) in i2c_bus_release() 238 void i2c_end_transfer(I2CBus *bus) in i2c_end_transfer() 256 int i2c_send(I2CBus *bus, uint8_t data) in i2c_send() 294 uint8_t i2c_recv(I2CBus *bus) in i2c_recv() 312 void i2c_nack(I2CBus *bus) in i2c_nack() 330 void i2c_ack(I2CBus *bus) in i2c_ack() [all …]
|
H A D | smbus_master.c | 19 int smbus_quick_command(I2CBus *bus, uint8_t addr, int read) in smbus_quick_command() 28 int smbus_receive_byte(I2CBus *bus, uint8_t addr) in smbus_receive_byte() 41 int smbus_send_byte(I2CBus *bus, uint8_t addr, uint8_t data) in smbus_send_byte() 51 int smbus_read_byte(I2CBus *bus, uint8_t addr, uint8_t command) in smbus_read_byte() 68 int smbus_write_byte(I2CBus *bus, uint8_t addr, uint8_t command, uint8_t data) in smbus_write_byte() 79 int smbus_read_word(I2CBus *bus, uint8_t addr, uint8_t command) in smbus_read_word() 97 int smbus_write_word(I2CBus *bus, uint8_t addr, uint8_t command, uint16_t data) in smbus_write_word() 109 int smbus_read_block(I2CBus *bus, uint8_t addr, uint8_t command, uint8_t *data, in smbus_read_block() 143 int smbus_write_block(I2CBus *bus, uint8_t addr, uint8_t command, uint8_t *data, in smbus_write_block()
|
H A D | i2c_mux_pca954x.c | 46 I2CBus *bus[PCA9548_CHANNEL_COUNT]; 166 I2CBus *pca954x_i2c_get_bus(I2CSlave *mux, uint8_t channel) in pca954x_i2c_get_bus()
|
H A D | bitbang_i2c.c | 179 void bitbang_i2c_init(bitbang_i2c_interface *s, I2CBus *bus) in bitbang_i2c_init() 216 I2CBus *bus; in gpio_i2c_init()
|
H A D | smbus_eeprom.c | 168 void smbus_eeprom_init_one(I2CBus *smbus, uint8_t address, uint8_t *eeprom_buf) in type_init() 179 void smbus_eeprom_init(I2CBus *smbus, int nb_eeprom, in smbus_eeprom_init()
|
/openbmc/qemu/include/hw/nvram/ |
H A D | eeprom_at24c.h | 21 I2CSlave *at24c_eeprom_init(I2CBus *bus, uint8_t address, uint32_t rom_size); 36 I2CSlave *at24c_eeprom_init_rom(I2CBus *bus, uint8_t address, uint32_t rom_size,
|
/openbmc/qemu/hw/misc/ |
H A D | auxbus.c | 50 static inline I2CBus *aux_bridge_get_i2c_bus(AUXTOI2CState *bridge); 98 I2CBus *aux_get_i2c_bus(AUXBus *bus) in aux_get_i2c_bus() 107 I2CBus *i2c_bus = aux_get_i2c_bus(bus); in aux_request() 256 I2CBus *i2c_bus; 276 static inline I2CBus *aux_bridge_get_i2c_bus(AUXTOI2CState *bridge) in aux_bridge_get_i2c_bus()
|
/openbmc/phosphor-mrw-tools/ |
H A D | gen_path_callouts.pl | 371 $segment{I2CBus} = $targets->getBusAttribute( 374 if ($segment{I2CBus} ne "") 376 $segment{I2CBus} = $segment{I2CBus} + 1; 380 if ($segment{I2CBus} eq "") 382 $segment{I2CBus} = $targets->getAttribute($target, "I2C_PORT"); 668 my $bus = $segment->{I2CBus}; 673 $bus = Util::adjustI2CPort($segment->{I2CBus});
|
/openbmc/qemu/hw/ppc/ |
H A D | pnv_i2c.c | 27 static I2CBus *pnv_i2c_get_bus(PnvI2C *i2c) in pnv_i2c_get_bus() 41 I2CBus *bus = pnv_i2c_get_bus(i2c); in pnv_i2c_update_irq() 129 I2CBus *bus = pnv_i2c_get_bus(i2c); in pnv_i2c_fifo_flush() 167 I2CBus *bus = pnv_i2c_get_bus(i2c); in pnv_i2c_handle_cmd() 223 I2CBus *bus = pnv_i2c_get_bus(i2c); in pnv_i2c_fifo_in() 258 I2CBus *bus = pnv_i2c_get_bus(i2c); in pnv_i2c_fifo_out() 364 I2CBus *bus = pnv_i2c_get_bus(i2c); in pnv_i2c_xscom_write() 531 i2c->busses = g_new(I2CBus *, i2c->num_busses); in pnv_i2c_realize()
|
/openbmc/qemu/include/qemu/ |
H A D | typedefs.h | 54 typedef struct I2CBus I2CBus; typedef
|
/openbmc/qemu/include/hw/ppc/ |
H A D | pnv_i2c.h | 31 I2CBus **busses;
|
/openbmc/qemu/hw/nvram/ |
H A D | eeprom_at24c.c | 146 I2CSlave *at24c_eeprom_init(I2CBus *bus, uint8_t address, uint32_t rom_size) in at24c_eeprom_init() 151 I2CSlave *at24c_eeprom_init_rom(I2CBus *bus, uint8_t address, uint32_t rom_size, in at24c_eeprom_init_rom()
|
/openbmc/qemu/include/hw/misc/ |
H A D | auxbus.h | 125 I2CBus *aux_get_i2c_bus(AUXBus *bus);
|
/openbmc/qemu/include/hw/arm/ |
H A D | exynos4210.h | 98 I2CBus *i2c_if[EXYNOS4210_I2C_NUMBER];
|