aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJake Burkholder <jake@FreeBSD.org>2003-03-27 02:01:59 +0000
committerJake Burkholder <jake@FreeBSD.org>2003-03-27 02:01:59 +0000
commit868aaa93bc3e9fa7e4714449a7e98ab420b9796b (patch)
tree141ab6bf2249542d658636690fefe4a6558f1c63
parenta75fd4bf6eeb89e3c4c1556c96666390759f5d15 (diff)
Notes
-rw-r--r--sys/sparc64/pci/ofw_pci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sparc64/pci/ofw_pci.c b/sys/sparc64/pci/ofw_pci.c
index 3787a00bd0d1..829ad6039c6d 100644
--- a/sys/sparc64/pci/ofw_pci.c
+++ b/sys/sparc64/pci/ofw_pci.c
@@ -216,6 +216,8 @@ ofw_pci_init(device_t dev, phandle_t bushdl, u_int32_t ign,
panic("ofw_pci_init: OF_getprop failed");
slot = OFW_PCI_PHYS_HI_DEVICE(pcir.phys_hi);
func = OFW_PCI_PHYS_HI_FUNCTION(pcir.phys_hi);
+ PCIB_WRITE_CONFIG(dev, busno, slot, func, PCIR_CACHELNSZ,
+ clnsz / 4, 1);
if (strcmp(type, OFW_PCI_PCIBUS) == 0) {
/*
* This is a pci-pci bridge, initalize the bus number and
@@ -269,8 +271,6 @@ ofw_pci_init(device_t dev, phandle_t bushdl, u_int32_t ign,
PCIB_WRITE_CONFIG(dev, busno, slot, func,
PCIR_LATTIMER, imin(lat, 255), 1);
}
- PCIB_WRITE_CONFIG(dev, busno, slot, func,
- PCIR_CACHELNSZ, clnsz / 4, 1);
/* Initialize the intline registers. */
if ((intr = ofw_pci_route_intr(node, ign)) != 255) {