]> git.proxmox.com Git - mirror_qemu.git/blame - hw/pm_smbus.h
build: enable using $(CONFIG_FOO) on the rhs of config files
[mirror_qemu.git] / hw / pm_smbus.h
CommitLineData
fc0bdd99
IY
1#ifndef PM_SMBUS_H
2#define PM_SMBUS_H
3
4typedef struct PMSMBus {
5 i2c_bus *smbus;
798512e5 6 MemoryRegion io;
fc0bdd99
IY
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
18void pm_smbus_init(DeviceState *parent, PMSMBus *smb);
fc0bdd99
IY
19
20#endif /* !PM_SMBUS_H */