From abd21a20119784048ce6f0021645b63160f873e8 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Tue, 21 Aug 2001 07:38:13 +0000 Subject: [PATCH] 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. --- sys/pccard/pcic_pci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/pccard/pcic_pci.c b/sys/pccard/pcic_pci.c index e48e0f79d25a..d6b5654ebfdd 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); }