summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2003-02-26 05:45:48 +0000
committerimp <imp@FreeBSD.org>2003-02-26 05:45:48 +0000
commit683db8609be4bdf659e459cd055d1d168cb8ce3a (patch)
tree89a5121d3ec66d885184dbba3bd4dfabdd95e428
parentf8735ec971a0a234e6d99322c9b05913a74bd1a1 (diff)
downloadFreeBSD-src-683db8609be4bdf659e459cd055d1d168cb8ce3a.zip
FreeBSD-src-683db8609be4bdf659e459cd055d1d168cb8ce3a.tar.gz
Add SMC 34C90. Not tested, but should be a no-op except for the id string.
Print the sockbase when we can't get the memory for debug.
-rw-r--r--sys/pccard/pcic_pci.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/pccard/pcic_pci.c b/sys/pccard/pcic_pci.c
index 36ad508..d20f8b7 100644
--- a/sys/pccard/pcic_pci.c
+++ b/sys/pccard/pcic_pci.c
@@ -266,6 +266,8 @@ struct pcic_pci_table
PCIC_RF5C296, PCIC_CARDBUS_POWER, &pcic_pci_ricoh_chip },
{ PCIC_ID_RICOH_RL5C478, "Ricoh RL5C478 PCI-CardBus Bridge",
PCIC_RF5C296, PCIC_CARDBUS_POWER, &pcic_pci_ricoh_chip },
+ { PCIC_ID_SMC_34C90, "SMC 34C90 PCI-CardBus Bridge",
+ PCIC_RF5C296, PCIC_CARDBUS_POWER, &pcic_pci_generic_chip },
{ PCIC_ID_TI1031, "TI PCI-1031 PCI-PCMCIA Bridge",
PCIC_I82365SL_DF, PCIC_CARDBUS_POWER, &pcic_pci_ti113x_chip },
{ PCIC_ID_TI1130, "TI PCI-1130 PCI-CardBus Bridge",
@@ -1394,7 +1396,8 @@ pcic_pci_get_memory(device_t dev)
sc = (struct pcic_softc *) device_get_softc(dev);
sockbase = pci_read_config(dev, sc->memrid, 4);
if (sockbase >= 0x100000 && sockbase < 0xfffffff0) {
- device_printf(dev, "Could not map register memory\n");
+ device_printf(dev, "Could not map register memory 0x%x\n",
+ sockbase);
return (ENOMEM);
}
pci_write_config(dev, sc->memrid, 0xffffffff, 4);
OpenPOWER on IntegriCloud