Isaku Yamahata | fc0bdd9 | 2010-05-14 16:28:59 +0900 | [diff] [blame] | 1 | #ifndef PM_SMBUS_H |
| 2 | #define PM_SMBUS_H |
| 3 | |
| 4 | typedef struct PMSMBus { |
Andreas Färber | a5c8285 | 2013-08-03 00:18:51 +0200 | [diff] [blame] | 5 | I2CBus *smbus; |
Gerd Hoffmann | 798512e | 2012-11-23 14:57:01 +0100 | [diff] [blame] | 6 | MemoryRegion io; |
Isaku Yamahata | fc0bdd9 | 2010-05-14 16:28:59 +0900 | [diff] [blame] | 7 | |
| 8 | uint8_t smb_stat; |
| 9 | uint8_t smb_ctl; |
| 10 | uint8_t smb_cmd; |
| 11 | uint8_t smb_addr; |
| 12 | uint8_t smb_data0; |
| 13 | uint8_t smb_data1; |
| 14 | uint8_t smb_data[32]; |
| 15 | uint8_t smb_index; |
| 16 | } PMSMBus; |
| 17 | |
| 18 | void pm_smbus_init(DeviceState *parent, PMSMBus *smb); |
Isaku Yamahata | fc0bdd9 | 2010-05-14 16:28:59 +0900 | [diff] [blame] | 19 | |
Markus Armbruster | 175de52 | 2016-06-29 15:29:06 +0200 | [diff] [blame] | 20 | #endif /* PM_SMBUS_H */ |