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.
This commit is contained in:
Warner Losh 2001-08-21 07:38:13 +00:00
parent 6db5812aef
commit abd21a2011
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=82032

View File

@ -334,10 +334,12 @@ pcic_pci_ti_init(device_t dev)
* Takeshi Shibagaki(shiba@jp.freebsd.org) * Takeshi Shibagaki(shiba@jp.freebsd.org)
*/ */
if (sc->func_route >= pci_parallel) { if (sc->func_route >= pci_parallel) {
#ifdef PCI_CARDBUS_CARD
devcntl &= ~TI113X_DEVCNTL_INTR_MASK; devcntl &= ~TI113X_DEVCNTL_INTR_MASK;
pci_write_config(dev, TI113X_PCI_DEVICE_CONTROL, devcntl, 1); pci_write_config(dev, TI113X_PCI_DEVICE_CONTROL, devcntl, 1);
devcntl = pci_read_config(dev, TI113X_PCI_DEVICE_CONTROL, 1); devcntl = pci_read_config(dev, TI113X_PCI_DEVICE_CONTROL, 1);
syscntl |= TI113X_SYSCNTL_INTRTIE; syscntl |= TI113X_SYSCNTL_INTRTIE;
#endif
syscntl &= ~TI113X_SYSCNTL_SMIENB; syscntl &= ~TI113X_SYSCNTL_SMIENB;
pci_write_config(dev, TI113X_PCI_SYSTEM_CONTROL, syscntl, 1); pci_write_config(dev, TI113X_PCI_SYSTEM_CONTROL, syscntl, 1);
} }