summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_pcnreg.h
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>2000-11-23 00:28:43 +0000
committerwpaul <wpaul@FreeBSD.org>2000-11-23 00:28:43 +0000
commitf246e2cfe8f32b4402f7d81b0ee0a6a99ec3ee69 (patch)
tree3088b5ad7be4d941531b418efac8432efac2e896 /sys/pci/if_pcnreg.h
parent4d12edec9a904acc2ec81e4a273f2447b687792e (diff)
downloadFreeBSD-src-f246e2cfe8f32b4402f7d81b0ee0a6a99ec3ee69.zip
FreeBSD-src-f246e2cfe8f32b4402f7d81b0ee0a6a99ec3ee69.tar.gz
Update the probe some more to deal with 16/32 bit issues. If the chip
is already in 32-bit mode, we need to be able to detect this and still read the chip ID code. Detecting 32-bit mode is actually a little tricky, since we want to avoid turning it on accidentally. The easiest way to do it is to just try and read the PCI subsystem ID from the bus control registers using 16-bit accesses and compare that with the value read from PCI config space. If they match, then we know we're in 16-bit mode, otherwise we assume 32-bit mode.
Diffstat (limited to 'sys/pci/if_pcnreg.h')
-rw-r--r--sys/pci/if_pcnreg.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/pci/if_pcnreg.h b/sys/pci/if_pcnreg.h
index 026c0ea..db7c1a3 100644
--- a/sys/pci/if_pcnreg.h
+++ b/sys/pci/if_pcnreg.h
@@ -247,7 +247,7 @@
#define PCN_BCR_SSTYLE 0x14
#define PCN_BCR_PCILAT 0x16
#define PCN_BCR_PCISUBVENID 0x17
-#define PCN_BCR_PCISUNSYSID 0x18
+#define PCN_BCR_PCISUBSYSID 0x18
#define PCN_BCR_SRAMSIZE 0x19
#define PCN_BCR_SRAMBOUND 0x1A
#define PCN_BCR_SRAMCTL 0x1B
OpenPOWER on IntegriCloud