diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 2001-07-07 12:04:23 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 2001-07-07 12:04:23 +0000 |
commit | 77c141e085069b216fedb9fe8e22e070ab8ccea4 (patch) | |
tree | 470b1d9f928e13c8141591bf93ecdd8c6c820a77 | |
parent | 84a69334720680463ea235b8c0f325c093152eb8 (diff) |
On 2nd though, pci_conf_read returns host-ordered words.
-rw-r--r-- | sys/dev/pci/aac_pci.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/pci/aac_pci.c b/sys/dev/pci/aac_pci.c index 50928969006..30cad8e1f99 100644 --- a/sys/dev/pci/aac_pci.c +++ b/sys/dev/pci/aac_pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: aac_pci.c,v 1.3 2001/07/07 11:24:09 niklas Exp $ */ +/* $OpenBSD: aac_pci.c,v 1.4 2001/07/07 12:04:22 niklas Exp $ */ /*- * Copyright (c) 2000 Michael Smith @@ -127,8 +127,8 @@ aac_pci_probe(parent, match, aux) for (m = aac_identifiers; m->vendor != 0; m++) if (m->vendor == PCI_VENDOR(pa->pa_id) && m->device == PCI_PRODUCT(pa->pa_id)) { - subsysid = letoh32(pci_conf_read(pa->pa_pc, pa->pa_tag, - PCI_SUBSYS_ID_REG)); + subsysid = pci_conf_read(pa->pa_pc, pa->pa_tag, + PCI_SUBSYS_ID_REG); if (m->subvendor == PCI_VENDOR(subsysid) && m->subdevice == PCI_PRODUCT(subsysid)) return (1); @@ -207,8 +207,8 @@ aac_pci_attach(parent, self, aux) for (m = aac_identifiers; m->vendor != 0; m++) if (m->vendor == PCI_VENDOR(pa->pa_id) && m->device == PCI_PRODUCT(pa->pa_id)) { - subsysid = letoh32(pci_conf_read(pa->pa_pc, pa->pa_tag, - PCI_SUBSYS_ID_REG)); + subsysid = pci_conf_read(pa->pa_pc, pa->pa_tag, + PCI_SUBSYS_ID_REG); if (m->subvendor == PCI_VENDOR(subsysid) && m->subdevice == PCI_PRODUCT(subsysid)) { sc->sc_hwif = m->hwif; |