diff options
author | 2001-07-07 12:04:22 +0000 | |
---|---|---|
committer | 2001-07-07 12:04:22 +0000 | |
commit | 52f8e22c600fa0aefe283119dbdbfcd496a97d5c (patch) | |
tree | 117596ede411a8270c2e34805f1f43f6d7a9be58 | |
parent | Correct PCI identifier matching. Match more devices too. (diff) | |
download | wireguard-openbsd-52f8e22c600fa0aefe283119dbdbfcd496a97d5c.tar.xz wireguard-openbsd-52f8e22c600fa0aefe283119dbdbfcd496a97d5c.zip |
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; |