aboutsummaryrefslogtreecommitdiff
path: root/src/pcibios.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2008-06-21 11:55:29 -0400
committerKevin O'Connor <kevin@koconnor.net>2008-06-21 11:55:29 -0400
commitdb03d5db185430812775f0075a18da459b96a019 (patch)
tree17aab1642efbd0baf5c07123a3f14ba515798654 /src/pcibios.c
parentb8d7a4797d06c9ff69712a3b436d2e0458ac7a51 (diff)
downloadseabios-hppa-db03d5db185430812775f0075a18da459b96a019.zip
seabios-hppa-db03d5db185430812775f0075a18da459b96a019.tar.gz
seabios-hppa-db03d5db185430812775f0075a18da459b96a019.tar.bz2
PCI fixes
Only set the PIR table signature and checksum in the init function - that way, if it is disabled at runtime (eg, due to coreboot) then it wont be found by the OS. Fix parameter swap bug in handle_1ab102. Add support for more than one bus in pci scanning code (but only have 1 bus for now).
Diffstat (limited to 'src/pcibios.c')
-rw-r--r--src/pcibios.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pcibios.c b/src/pcibios.c
index 1ab72f4..436c106 100644
--- a/src/pcibios.c
+++ b/src/pcibios.c
@@ -32,7 +32,7 @@ static void
handle_1ab102(struct bregs *regs)
{
PCIDevice d;
- int ret = pci_find_device(regs->cx, regs->dx, regs->si, &d);
+ int ret = pci_find_device(regs->dx, regs->cx, regs->si, &d);
if (ret) {
set_code_fail(regs, RET_DEVICE_NOT_FOUND);
return;