summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Paul <wpaul@FreeBSD.org>2001-02-26 22:23:55 +0000
committerBill Paul <wpaul@FreeBSD.org>2001-02-26 22:23:55 +0000
commite979bff5574b3a6c77366831a05b72e7d3560708 (patch)
tree1448dfbeaf853a6680a0b87b5bced3820c2c7303
parent7d42e30c2ea9a5102e0d3ea858976d0338287f01 (diff)
Notes
-rw-r--r--sys/pci/if_pcn.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/pci/if_pcn.c b/sys/pci/if_pcn.c
index eced63224707..6bf15e0c7ead 100644
--- a/sys/pci/if_pcn.c
+++ b/sys/pci/if_pcn.c
@@ -440,8 +440,16 @@ static int pcn_probe(dev)
chip_id = pcn_bcr_read16(sc, PCN_BCR_PCISUBSYSID);
chip_id <<= 16;
chip_id |= pcn_bcr_read16(sc, PCN_BCR_PCISUBVENID);
+ /*
+ * Note III: the test for 0x10001000 is a hack to
+ * pacify VMware, who's pseudo-PCnet interface is
+ * broken. Reading the subsystem register from PCI
+ * config space yeilds 0x00000000 while reading the
+ * same value from I/O space yeilds 0x10001000. It's
+ * not supposed to be that way.
+ */
if (chip_id == pci_read_config(dev,
- PCIR_SUBVEND_0, 4)) {
+ PCIR_SUBVEND_0, 4) || chip_id == 0x10001000) {
/* We're in 16-bit mode. */
chip_id = pcn_csr_read16(sc, PCN_CSR_CHIPID1);
chip_id <<= 16;