diff options
author | Timothy Pearson <tpearson@raptorengineering.com> | 2019-05-11 15:12:49 -0500 |
---|---|---|
committer | Timothy Pearson <tpearson@raptorengineering.com> | 2019-05-11 15:12:49 -0500 |
commit | 9e80202352dd49bdd9e67b8b906d86f058431505 (patch) | |
tree | 5673c17aad6e3833da8c4ff21b5a11f666ec9fbe /src/include/hw/i2c/pm_smbus.h | |
download | hqemu-master.zip hqemu-master.tar.gz |
Diffstat (limited to 'src/include/hw/i2c/pm_smbus.h')
-rw-r--r-- | src/include/hw/i2c/pm_smbus.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/include/hw/i2c/pm_smbus.h b/src/include/hw/i2c/pm_smbus.h new file mode 100644 index 0000000..926603f --- /dev/null +++ b/src/include/hw/i2c/pm_smbus.h @@ -0,0 +1,20 @@ +#ifndef PM_SMBUS_H +#define PM_SMBUS_H + +typedef struct PMSMBus { + I2CBus *smbus; + MemoryRegion io; + + uint8_t smb_stat; + uint8_t smb_ctl; + uint8_t smb_cmd; + uint8_t smb_addr; + uint8_t smb_data0; + uint8_t smb_data1; + uint8_t smb_data[32]; + uint8_t smb_index; +} PMSMBus; + +void pm_smbus_init(DeviceState *parent, PMSMBus *smb); + +#endif /* !PM_SMBUS_H */ |