Apply by doing: /usr/src patch -p0 < 002_pci.patch Then build and install a new kernel. Index: sys/dev/pci/pci_map.c =================================================================== RCS file: /cvs/src/sys/dev/pci/pci_map.c,v retrieving revision 1.28 retrieving revision 1.28.4.1 diff -u -r1.28 -r1.28.4.1 --- sys/dev/pci/pci_map.c 28 Feb 2010 21:37:54 -0000 1.28 +++ sys/dev/pci/pci_map.c 2 Oct 2010 02:54:40 -0000 1.28.4.1 @@ -1,4 +1,4 @@ -/* $OpenBSD: pci_map.c,v 1.28 2010/02/28 21:37:54 miod Exp $ */ +/* $OpenBSD: pci_map.c,v 1.28.4.1 2010/10/02 02:54:40 william Exp $ */ /* $NetBSD: pci_map.c,v 1.7 2000/05/10 16:58:42 thorpej Exp $ */ /*- @@ -320,7 +320,7 @@ } int -pci_mapreg_map(struct pci_attach_args *pa, int reg, pcireg_t type, int busflags, +pci_mapreg_map(struct pci_attach_args *pa, int reg, pcireg_t type, int flags, bus_space_tag_t *tagp, bus_space_handle_t *handlep, bus_addr_t *basep, bus_size_t *sizep, bus_size_t maxsize) { @@ -329,11 +329,10 @@ bus_addr_t base; bus_size_t size; pcireg_t csr; - int flags; int rv; if ((rv = pci_mapreg_info(pa->pa_pc, pa->pa_tag, reg, type, - &base, &size, &flags)) != 0) + &base, &size, NULL)) != 0) return (rv); #if !defined(__sparc64__) if (base == 0) { @@ -393,7 +392,7 @@ size = maxsize; } - if (bus_space_map(tag, base, size, busflags | flags, &handle)) + if (bus_space_map(tag, base, size, flags, &handle)) return (1); if (tagp != NULL)