Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci Oops, didn't intend to enable pcimmap() yet.



details:   https://anonhg.NetBSD.org/src/rev/5b21415f3593
branches:  trunk
changeset: 514915:5b21415f3593
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Thu Sep 13 22:00:58 2001 +0000

description:
Oops, didn't intend to enable pcimmap() yet.

diffstat:

 sys/dev/pci/pci_usrreq.c |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (28 lines):

diff -r 936062dadc19 -r 5b21415f3593 sys/dev/pci/pci_usrreq.c
--- a/sys/dev/pci/pci_usrreq.c  Thu Sep 13 21:59:21 2001 +0000
+++ b/sys/dev/pci/pci_usrreq.c  Thu Sep 13 22:00:58 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pci_usrreq.c,v 1.1 2001/09/13 21:49:40 thorpej Exp $   */
+/*     $NetBSD: pci_usrreq.c,v 1.2 2001/09/13 22:00:58 thorpej Exp $   */
 
 /*
  * Copyright 2001 Wasabi Systems, Inc.
@@ -117,6 +117,7 @@
 paddr_t
 pcimmap(dev_t dev, off_t offset, int prot)
 {
+#if 0
        struct pci_softc *sc = device_lookup(&pci_cd, minor(dev));
 
        /*
@@ -127,6 +128,10 @@
         * XXX Need a way to deal with linear/prefetchable/etc.
         */
        return (bus_space_mmap(sc->sc_memt, offset, 0, prot, 0));
+#else
+       /* XXX Consider this further. */
+       return (-1);
+#endif
 }
 
 /*



Home | Main Index | Thread Index | Old Index