blob: 2a837afdcbecf16f715939dec9c326e2d4c4b345 [file] [log] [blame]
Isaku Yamahatafc0bdd92010-05-14 16:28:59 +09001#ifndef PM_SMBUS_H
2#define PM_SMBUS_H
3
4typedef struct PMSMBus {
Andreas Färbera5c82852013-08-03 00:18:51 +02005 I2CBus *smbus;
Gerd Hoffmann798512e2012-11-23 14:57:01 +01006 MemoryRegion io;
Isaku Yamahatafc0bdd92010-05-14 16:28:59 +09007
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
18void pm_smbus_init(DeviceState *parent, PMSMBus *smb);
Isaku Yamahatafc0bdd92010-05-14 16:28:59 +090019
Markus Armbruster175de522016-06-29 15:29:06 +020020#endif /* PM_SMBUS_H */