Module Name: src Committed By: macallan Date: Sat Jan 23 17:09:51 UTC 2016
Modified Files: src/sys/dev/pci: pci.c Log Message: add another special case so SM50x's framebuffer gets mapped with prefetching / write combining enabled. This needs to be generalized somewhere... To generate a diff of this commit: cvs rdiff -u -r1.150 -r1.151 src/sys/dev/pci/pci.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/pci/pci.c diff -u src/sys/dev/pci/pci.c:1.150 src/sys/dev/pci/pci.c:1.151 --- src/sys/dev/pci/pci.c:1.150 Mon Nov 2 09:29:08 2015 +++ src/sys/dev/pci/pci.c Sat Jan 23 17:09:51 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: pci.c,v 1.150 2015/11/02 09:29:08 knakahara Exp $ */ +/* $NetBSD: pci.c,v 1.151 2016/01/23 17:09:51 macallan Exp $ */ /* * Copyright (c) 1995, 1996, 1997, 1998 @@ -36,7 +36,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: pci.c,v 1.150 2015/11/02 09:29:08 knakahara Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pci.c,v 1.151 2016/01/23 17:09:51 macallan Exp $"); #ifdef _KERNEL_OPT #include "opt_pci.h" @@ -352,8 +352,12 @@ pci_probe_device(struct pci_softc *sc, p nr->r_size = 0x7ff000; nr->r_flags = BUS_SPACE_MAP_LINEAR | BUS_SPACE_MAP_PREFETCHABLE; + } else if ((PCI_VENDOR(id) == PCI_VENDOR_SILMOTION) && + (PCI_PRODUCT(id) == PCI_PRODUCT_SILMOTION_SM502) && + (bar == 0x10)) { + r->r_flags = BUS_SPACE_MAP_LINEAR | + BUS_SPACE_MAP_PREFETCHABLE; } - } }