summaryrefslogtreecommitdiffstats
path: root/sys/dev/puc
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2003-08-28 21:22:25 +0000
committerjhb <jhb@FreeBSD.org>2003-08-28 21:22:25 +0000
commit51be1787c3f88a0d7f0e7acc9c80f8efe14d4107 (patch)
treea1e7aeb2faa12e05e2679df87b9fa88f7bfd5295 /sys/dev/puc
parentfed4d10a43fd7e42c8ab0e04aad88fa09632b414 (diff)
downloadFreeBSD-src-51be1787c3f88a0d7f0e7acc9c80f8efe14d4107.zip
FreeBSD-src-51be1787c3f88a0d7f0e7acc9c80f8efe14d4107.tar.gz
- Rename PCIx_HEADERTYPE* to PCIx_HDRTYPE* so the constants aren't so long.
- Add a new PCIM_HDRTYPE constant for the field in PCIR_HDRTYPE that holds the header type. - Replace several magic numbers with appropriate constants for the header type register and a couple of PCI_FUNCMAX. - Merge to amd64 the fix to the i386 bridge code to skip devices with unknown header types. Requested by: imp (1, 2)
Diffstat (limited to 'sys/dev/puc')
-rw-r--r--sys/dev/puc/puc_pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/puc/puc_pci.c b/sys/dev/puc/puc_pci.c
index 1ea161e..1e6de33 100644
--- a/sys/dev/puc/puc_pci.c
+++ b/sys/dev/puc/puc_pci.c
@@ -88,7 +88,7 @@ puc_pci_probe(device_t dev)
uint32_t v1, v2, d1, d2;
const struct puc_device_description *desc;
- if ((pci_read_config(dev, PCIR_HEADERTYPE, 1) & 0x7f) != 0)
+ if ((pci_read_config(dev, PCIR_HDRTYPE, 1) & PCIM_HDRTYPE) != 0)
return (ENXIO);
v1 = pci_read_config(dev, PCIR_VENDOR, 2);
OpenPOWER on IntegriCloud