root / hw / pm_smbus.h @ 9a6ee9fd
History | View | Annotate | Download (380 Bytes)
1 | fc0bdd99 | Isaku Yamahata | #ifndef PM_SMBUS_H
|
---|---|---|---|
2 | fc0bdd99 | Isaku Yamahata | #define PM_SMBUS_H
|
3 | fc0bdd99 | Isaku Yamahata | |
4 | fc0bdd99 | Isaku Yamahata | typedef struct PMSMBus { |
5 | fc0bdd99 | Isaku Yamahata | i2c_bus *smbus; |
6 | 798512e5 | Gerd Hoffmann | MemoryRegion io; |
7 | fc0bdd99 | Isaku Yamahata | |
8 | fc0bdd99 | Isaku Yamahata | uint8_t smb_stat; |
9 | fc0bdd99 | Isaku Yamahata | uint8_t smb_ctl; |
10 | fc0bdd99 | Isaku Yamahata | uint8_t smb_cmd; |
11 | fc0bdd99 | Isaku Yamahata | uint8_t smb_addr; |
12 | fc0bdd99 | Isaku Yamahata | uint8_t smb_data0; |
13 | fc0bdd99 | Isaku Yamahata | uint8_t smb_data1; |
14 | fc0bdd99 | Isaku Yamahata | uint8_t smb_data[32];
|
15 | fc0bdd99 | Isaku Yamahata | uint8_t smb_index; |
16 | fc0bdd99 | Isaku Yamahata | } PMSMBus; |
17 | fc0bdd99 | Isaku Yamahata | |
18 | fc0bdd99 | Isaku Yamahata | void pm_smbus_init(DeviceState *parent, PMSMBus *smb);
|
19 | fc0bdd99 | Isaku Yamahata | |
20 | fc0bdd99 | Isaku Yamahata | #endif /* !PM_SMBUS_H */ |