diff options
author | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-05-28 21:01:02 +0000 |
---|---|---|
committer | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-05-28 21:01:02 +0000 |
commit | 7b717336e2873fd6d9f178a12549eaa2367d14d0 (patch) | |
tree | e06da771738863c969473e57efb0130c28ff8a86 /hw/acpi.c | |
parent | 6e473128b61901441fa2889dfa2079881895a9f9 (diff) | |
download | qemu-7b717336e2873fd6d9f178a12549eaa2367d14d0.zip qemu-7b717336e2873fd6d9f178a12549eaa2367d14d0.tar.gz qemu-7b717336e2873fd6d9f178a12549eaa2367d14d0.tar.bz2 |
SMBus support for MIPS Malta.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2893 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/acpi.c')
-rw-r--r-- | hw/acpi.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -24,7 +24,6 @@ #define PM_FREQ 3579545 #define ACPI_DBG_IO_ADDR 0xb044 -#define SMB_IO_BASE 0xb100 typedef struct PIIX4PMState { PCIDevice dev; @@ -451,11 +450,10 @@ static int pm_load(QEMUFile* f,void* opaque,int version_id) return 0; } -i2c_bus *piix4_pm_init(PCIBus *bus, int devfn) +i2c_bus *piix4_pm_init(PCIBus *bus, int devfn, uint32_t smb_io_base) { PIIX4PMState *s; uint8_t *pci_conf; - uint32_t smb_io_base; s = (PIIX4PMState *)pci_register_device(bus, "PM", sizeof(PIIX4PMState), @@ -486,7 +484,6 @@ i2c_bus *piix4_pm_init(PCIBus *bus, int devfn) pci_conf[0x67] = (serial_hds[0] != NULL ? 0x08 : 0) | (serial_hds[1] != NULL ? 0x90 : 0); - smb_io_base = SMB_IO_BASE; pci_conf[0x90] = smb_io_base | 1; pci_conf[0x91] = smb_io_base >> 8; pci_conf[0xd2] = 0x09; |