blob: 4750a409f9eaa22955c29b8819e7fcf3fc9d87c5 [file] [log] [blame]
Isaku Yamahatafc0bdd92010-05-14 16:28:59 +09001#ifndef PM_SMBUS_H
2#define PM_SMBUS_H
3
4typedef struct PMSMBus {
5 i2c_bus *smbus;
6
7 uint8_t smb_stat;
8 uint8_t smb_ctl;
9 uint8_t smb_cmd;
10 uint8_t smb_addr;
11 uint8_t smb_data0;
12 uint8_t smb_data1;
13 uint8_t smb_data[32];
14 uint8_t smb_index;
15} PMSMBus;
16
17void pm_smbus_init(DeviceState *parent, PMSMBus *smb);
18void smb_ioport_writeb(void *opaque, uint32_t addr, uint32_t val);
19uint32_t smb_ioport_readb(void *opaque, uint32_t addr);
20
21#endif /* !PM_SMBUS_H */