1*9c092804SMarkus Armbruster #ifndef QEMU_I2C_MUX_PCA954X_H 2*9c092804SMarkus Armbruster #define QEMU_I2C_MUX_PCA954X_H 3065177eeSPatrick Venture 4065177eeSPatrick Venture #include "hw/i2c/i2c.h" 5065177eeSPatrick Venture 6065177eeSPatrick Venture #define TYPE_PCA9546 "pca9546" 7065177eeSPatrick Venture #define TYPE_PCA9548 "pca9548" 8065177eeSPatrick Venture 9065177eeSPatrick Venture /** 10065177eeSPatrick Venture * Retrieves the i2c bus associated with the specified channel on this i2c 11065177eeSPatrick Venture * mux. 12065177eeSPatrick Venture * @mux: an i2c mux device. 13065177eeSPatrick Venture * @channel: the i2c channel requested 14065177eeSPatrick Venture * 15065177eeSPatrick Venture * Returns: a pointer to the associated i2c bus. 16065177eeSPatrick Venture */ 17065177eeSPatrick Venture I2CBus *pca954x_i2c_get_bus(I2CSlave *mux, uint8_t channel); 18065177eeSPatrick Venture 19065177eeSPatrick Venture #endif 20