diff options
author | Isaku Yamahata <yamahata@valinux.co.jp> | 2010-07-20 16:37:19 +0900 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2010-07-24 13:30:04 -0400 |
commit | 4c67f9051b2b59307c985f2e0866f177367bacf9 (patch) | |
tree | 09b37095e9597286d2bf61db2a9b3b3957fd9488 | |
parent | fe54a531bf14ef20f4da5d7af4a0d0fa11f45723 (diff) | |
download | seabios-4c67f9051b2b59307c985f2e0866f177367bacf9.tar.gz |
seabios: acpi: clean up of finding pm device.
Make it table driven to other chip set.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
-rw-r--r-- | src/acpi.c | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -522,6 +522,13 @@ build_srat(void) return srat; } +static const struct pci_device_id acpi_find_tbl[] = { + /* PIIX4 Power Management device. */ + PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82371AB_3, NULL), + + PCI_DEVICE_END, +}; + struct rsdp_descriptor *RsdpAddr; #define MAX_ACPI_TABLES 20 @@ -534,8 +541,7 @@ acpi_bios_init(void) dprintf(3, "init ACPI tables\n"); // This code is hardcoded for PIIX4 Power Management device. - int bdf = pci_find_device(PCI_VENDOR_ID_INTEL - , PCI_DEVICE_ID_INTEL_82371AB_3); + int bdf = pci_find_init_device(acpi_find_tbl, NULL); if (bdf < 0) // Device not found return; |