summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2013-01-14 23:58:35 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2013-01-14 23:58:35 +0000
commitf2fe7b5c13db884cfe5f71696a83da23b753c42c (patch)
treeea5cadcb76821ffa250a0a4eb69369bab6a9e08f /sys
parent54f3e893951970b4786bdd82c0f56e9458d81aa1 (diff)
map the registers PREFETCHABLE so things that can do write combining can
try and do write combining like the myx doco likes.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/if_myx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/if_myx.c b/sys/dev/pci/if_myx.c
index 614a88d62e2..ba1dc8bbf88 100644
--- a/sys/dev/pci/if_myx.c
+++ b/sys/dev/pci/if_myx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_myx.c,v 1.35 2013/01/14 23:46:01 dlg Exp $ */
+/* $OpenBSD: if_myx.c,v 1.36 2013/01/14 23:58:34 dlg Exp $ */
/*
* Copyright (c) 2007 Reyk Floeter <reyk@openbsd.org>
@@ -241,8 +241,8 @@ myx_attach(struct device *parent, struct device *self, void *aux)
/* Map the PCI memory space */
memtype = pci_mapreg_type(sc->sc_pc, sc->sc_tag, MYXBAR0);
- if (pci_mapreg_map(pa, MYXBAR0, memtype, 0, &sc->sc_memt,
- &sc->sc_memh, NULL, &sc->sc_mems, 0)) {
+ if (pci_mapreg_map(pa, MYXBAR0, memtype, BUS_SPACE_MAP_PREFETCHABLE,
+ &sc->sc_memt, &sc->sc_memh, NULL, &sc->sc_mems, 0)) {
printf(": unable to map register memory\n");
return;
}