summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_dc_pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/pci/if_dc_pci.c')
-rw-r--r--sys/dev/pci/if_dc_pci.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/dev/pci/if_dc_pci.c b/sys/dev/pci/if_dc_pci.c
index d5ef5b1be82..51947113dc0 100644
--- a/sys/dev/pci/if_dc_pci.c
+++ b/sys/dev/pci/if_dc_pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_dc_pci.c,v 1.39 2003/08/16 14:42:19 henning Exp $ */
+/* $OpenBSD: if_dc_pci.c,v 1.40 2003/09/29 18:53:58 mickey Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -448,9 +448,13 @@ void dc_pci_attach(parent, self, aux)
/* Save the cache line size. */
if (DC_IS_DAVICOM(sc))
sc->dc_cachesize = 0;
- else
+ else {
sc->dc_cachesize = pci_conf_read(pc, pa->pa_tag,
DC_PCI_CFLT) & 0xFF;
+#ifdef __hppa__
+ sc->dc_cachesize = 16;
+#endif
+ }
/* Reset the adapter. */
dc_reset(sc);