Home
last modified time | relevance | path

Searched refs:I2CBus (Results 1 – 25 of 61) sorted by relevance

123

/openbmc/qemu/include/hw/i2c/
H A Di2c.h67 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 Dsmbus_master.h31 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 Dsmbus_eeprom.h29 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 Dbitbang_i2c.h37 I2CBus *bus;
49 void bitbang_i2c_init(bitbang_i2c_interface *s, I2CBus *bus);
H A Di2c_mux_pca954x.h17 I2CBus *pca954x_i2c_get_bus(I2CSlave *mux, uint8_t channel);
H A Dallwinner-i2c.h45 I2CBus *bus;
H A Dppc4xx_i2c.h42 I2CBus *bus;
H A Dpm_smbus.h10 I2CBus *smbus;
H A Dimx_i2c.h75 I2CBus *bus;
H A Dnpcm7xx_smbus.h76 I2CBus *bus;
H A Dbcm2835_i2c.h68 I2CBus *bus;
/openbmc/qemu/hw/i2c/
H A Dcore.c29 .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 Dsmbus_master.c19 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 Di2c_mux_pca954x.c46 I2CBus *bus[PCA9548_CHANNEL_COUNT];
166 I2CBus *pca954x_i2c_get_bus(I2CSlave *mux, uint8_t channel) in pca954x_i2c_get_bus()
H A Dbitbang_i2c.c179 void bitbang_i2c_init(bitbang_i2c_interface *s, I2CBus *bus) in bitbang_i2c_init()
216 I2CBus *bus; in gpio_i2c_init()
H A Dsmbus_eeprom.c168 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 Deeprom_at24c.h21 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 Dauxbus.c50 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 Dgen_path_callouts.pl371 $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 Dpnv_i2c.c27 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 Dtypedefs.h54 typedef struct I2CBus I2CBus; typedef
/openbmc/qemu/include/hw/ppc/
H A Dpnv_i2c.h31 I2CBus **busses;
/openbmc/qemu/hw/nvram/
H A Deeprom_at24c.c146 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 Dauxbus.h125 I2CBus *aux_get_i2c_bus(AUXBus *bus);
/openbmc/qemu/include/hw/arm/
H A Dexynos4210.h98 I2CBus *i2c_if[EXYNOS4210_I2C_NUMBER];

123