qemu/include/hw/i2c/pca9548.h
<<
>>
Prefs
   1#ifndef PCA9548__H
   2#define PCA9548__H
   3
   4#define NUM_BUSSES 8
   5#define PCA9548_CONTROL_ADDR 0x74
   6
   7typedef struct {
   8    I2CSlave i2c;
   9    I2CBus *busses[NUM_BUSSES];
  10
  11    /*state */
  12    uint8_t control_reg;
  13    enum i2c_event event;
  14    bool control_decoded;
  15
  16    uint8_t chip_enable; /*property */
  17} PCA9548State;
  18
  19#define TYPE_PCA9548 "pca9548"
  20
  21#define PCA9548(obj) \
  22     OBJECT_CHECK(PCA9548State, (obj), TYPE_PCA9548)
  23
  24#endif
  25