summaryrefslogtreecommitdiffstats
path: root/sys/pccard/pcic_pci.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2001-08-21 07:38:13 +0000
committerimp <imp@FreeBSD.org>2001-08-21 07:38:13 +0000
commite83e1fa0c01e708f6c1344e39eedc20f0397ce55 (patch)
tree081ae36d225a9e596afd9e3fcaa21c95dc6a8585 /sys/pccard/pcic_pci.c
parentb158be16ce7c208ddb6bc81c1df528f7cfc8b5c7 (diff)
downloadFreeBSD-src-e83e1fa0c01e708f6c1344e39eedc20f0397ce55.zip
FreeBSD-src-e83e1fa0c01e708f6c1344e39eedc20f0397ce55.tar.gz
These appear to be necessary for a pci cardbus card, but not for laptops.
Ifdef them out until I figure out the right way to configure this. This solves Nate's hangs as well as Anders Andersson's. MCF: Soon.
Diffstat (limited to 'sys/pccard/pcic_pci.c')
-rw-r--r--sys/pccard/pcic_pci.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/pccard/pcic_pci.c b/sys/pccard/pcic_pci.c
index e48e0f7..d6b5654 100644
--- a/sys/pccard/pcic_pci.c
+++ b/sys/pccard/pcic_pci.c
@@ -334,10 +334,12 @@ pcic_pci_ti_init(device_t dev)
* Takeshi Shibagaki(shiba@jp.freebsd.org)
*/
if (sc->func_route >= pci_parallel) {
+#ifdef PCI_CARDBUS_CARD
devcntl &= ~TI113X_DEVCNTL_INTR_MASK;
pci_write_config(dev, TI113X_PCI_DEVICE_CONTROL, devcntl, 1);
devcntl = pci_read_config(dev, TI113X_PCI_DEVICE_CONTROL, 1);
syscntl |= TI113X_SYSCNTL_INTRTIE;
+#endif
syscntl &= ~TI113X_SYSCNTL_SMIENB;
pci_write_config(dev, TI113X_PCI_SYSTEM_CONTROL, syscntl, 1);
}
OpenPOWER on IntegriCloud