aboutsummaryrefslogtreecommitdiff
path: root/hw/acpi.c
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-05-28 21:01:02 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-05-28 21:01:02 +0000
commit7b717336e2873fd6d9f178a12549eaa2367d14d0 (patch)
treee06da771738863c969473e57efb0130c28ff8a86 /hw/acpi.c
parent6e473128b61901441fa2889dfa2079881895a9f9 (diff)
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.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/hw/acpi.c b/hw/acpi.c
index de4002e92f..ce3f7f2df6 100644
--- a/hw/acpi.c
+++ b/hw/acpi.c
@@ -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;