root / hw / pm_smbus.h @ 02fa69b6
History | View | Annotate | Download (482 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 | fc0bdd99 | Isaku Yamahata | |
7 | fc0bdd99 | Isaku Yamahata | uint8_t smb_stat; |
8 | fc0bdd99 | Isaku Yamahata | uint8_t smb_ctl; |
9 | fc0bdd99 | Isaku Yamahata | uint8_t smb_cmd; |
10 | fc0bdd99 | Isaku Yamahata | uint8_t smb_addr; |
11 | fc0bdd99 | Isaku Yamahata | uint8_t smb_data0; |
12 | fc0bdd99 | Isaku Yamahata | uint8_t smb_data1; |
13 | fc0bdd99 | Isaku Yamahata | uint8_t smb_data[32];
|
14 | fc0bdd99 | Isaku Yamahata | uint8_t smb_index; |
15 | fc0bdd99 | Isaku Yamahata | } PMSMBus; |
16 | fc0bdd99 | Isaku Yamahata | |
17 | fc0bdd99 | Isaku Yamahata | void pm_smbus_init(DeviceState *parent, PMSMBus *smb);
|
18 | fc0bdd99 | Isaku Yamahata | void smb_ioport_writeb(void *opaque, uint32_t addr, uint32_t val); |
19 | fc0bdd99 | Isaku Yamahata | uint32_t smb_ioport_readb(void *opaque, uint32_t addr);
|
20 | fc0bdd99 | Isaku Yamahata | |
21 | fc0bdd99 | Isaku Yamahata | #endif /* !PM_SMBUS_H */ |