~ubuntu-branches/ubuntu/wily/qemu-kvm-spice/wily

« back to all changes in this revision

Viewing changes to hw/pm_smbus.h

  • Committer: Bazaar Package Importer
  • Author(s): Serge Hallyn
  • Date: 2011-10-19 10:44:56 UTC
  • Revision ID: james.westby@ubuntu.com-20111019104456-xgvskumk3sxi97f4
Tags: upstream-0.15.0+noroms
ImportĀ upstreamĀ versionĀ 0.15.0+noroms

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef PM_SMBUS_H
 
2
#define PM_SMBUS_H
 
3
 
 
4
typedef 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
 
 
17
void pm_smbus_init(DeviceState *parent, PMSMBus *smb);
 
18
void smb_ioport_writeb(void *opaque, uint32_t addr, uint32_t val);
 
19
uint32_t smb_ioport_readb(void *opaque, uint32_t addr);
 
20
 
 
21
#endif /* !PM_SMBUS_H */