summaryrefslogtreecommitdiffstats
path: root/sys/pci
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2001-04-17 23:56:12 +0000
committerimp <imp@FreeBSD.org>2001-04-17 23:56:12 +0000
commit95a0a965015833d676863173557e0c35d8616c13 (patch)
treec686e42c66d907c8af72c1c5fad09950fab15f44 /sys/pci
parentf899d123d098cca43a3dd7506bd52379e488fc28 (diff)
downloadFreeBSD-src-95a0a965015833d676863173557e0c35d8616c13.zip
FreeBSD-src-95a0a965015833d676863173557e0c35d8616c13.tar.gz
Move setting of TI113X_PCI_CARD_CONTROL register sooner
Diffstat (limited to 'sys/pci')
-rw-r--r--sys/pci/pcic_p.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/pci/pcic_p.c b/sys/pci/pcic_p.c
index d92cce7..1a89f6c 100644
--- a/sys/pci/pcic_p.c
+++ b/sys/pci/pcic_p.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);
}
OpenPOWER on IntegriCloud