9c0928045c
Leading underscores are ill-advised because such identifiers are reserved. Trailing underscores are merely ugly. Strip both. Our header guards commonly end in _H. Normalize the exceptions. Macros should be ALL_CAPS. Normalize the exception. Done with scripts/clean-header-guards.pl. include/hw/xen/interface/ and tools/virtiofsd/ left alone, because these were imported from Xen and libfuse respectively. Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20220506134911.2856099-3-armbru@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
20 lines
430 B
C
20 lines
430 B
C
#ifndef QEMU_I2C_MUX_PCA954X_H
|
|
#define QEMU_I2C_MUX_PCA954X_H
|
|
|
|
#include "hw/i2c/i2c.h"
|
|
|
|
#define TYPE_PCA9546 "pca9546"
|
|
#define TYPE_PCA9548 "pca9548"
|
|
|
|
/**
|
|
* Retrieves the i2c bus associated with the specified channel on this i2c
|
|
* mux.
|
|
* @mux: an i2c mux device.
|
|
* @channel: the i2c channel requested
|
|
*
|
|
* Returns: a pointer to the associated i2c bus.
|
|
*/
|
|
I2CBus *pca954x_i2c_get_bus(I2CSlave *mux, uint8_t channel);
|
|
|
|
#endif
|