From 95a0a965015833d676863173557e0c35d8616c13 Mon Sep 17 00:00:00 2001 From: imp Date: Tue, 17 Apr 2001 23:56:12 +0000 Subject: Move setting of TI113X_PCI_CARD_CONTROL register sooner --- sys/pccard/pcic_pci.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sys/pccard/pcic_pci.c') diff --git a/sys/pccard/pcic_pci.c b/sys/pccard/pcic_pci.c index d92cce7..1a89f6c 100644 --- a/sys/pccard/pcic_pci.c +++ b/sys/pccard/pcic_pci.c @@ -147,6 +147,8 @@ ti1xxx_pci_init(device_t dev) */ cardcntl |= TI113X_CARDCNTL_PCI_IREQ; cardcntl |= TI113X_CARDCNTL_PCI_CSC; + pci_write_config(dev, TI113X_PCI_CARD_CONTROL, cardcntl, 1); + cardcntl = pci_read_config(dev, TI113X_PCI_CARD_CONTROL, 1); if (syscntl & TI113X_SYSCNTL_CLKRUN_ENA){ if (syscntl & TI113X_SYSCNTL_CLKRUN_SEL) strcat(buf, "[clkrun irq 12]"); @@ -175,9 +177,6 @@ ti1xxx_pci_init(device_t dev) strcat(buf, "[FUNC pci int + CSC serial isa irq]"); break; } - pci_write_config(dev, TI113X_PCI_CARD_CONTROL, cardcntl, 1); - if (ti113x) - cardcntl = pci_read_config(dev, TI113X_PCI_CARD_CONTROL, 1); device_printf(dev, "%s\n",buf); } -- cgit v1.1