Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Use bus_space_mmap() to mmap the aperture.
details: https://anonhg.NetBSD.org/src/rev/d08efaac3805
branches: trunk
changeset: 514962:d08efaac3805
user: thorpej <thorpej%NetBSD.org@localhost>
date: Sat Sep 15 00:52:15 2001 +0000
description:
Use bus_space_mmap() to mmap the aperture.
diffstat:
sys/dev/pci/agp.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diffs (23 lines):
diff -r 594ca0fd5af6 -r d08efaac3805 sys/dev/pci/agp.c
--- a/sys/dev/pci/agp.c Sat Sep 15 00:49:53 2001 +0000
+++ b/sys/dev/pci/agp.c Sat Sep 15 00:52:15 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: agp.c,v 1.5 2001/09/15 00:24:59 thorpej Exp $ */
+/* $NetBSD: agp.c,v 1.6 2001/09/15 00:52:15 thorpej Exp $ */
/*-
* Copyright (c) 2000 Doug Rabson
@@ -822,10 +822,9 @@
if (offset > AGP_GET_APERTURE(sc))
return -1;
- /*
- * XXX can't really use bus_dmamem_mmap here.
- */
- return (sc->as_apaddr + offset) / PAGE_SIZE;
+
+ return (bus_space_mmap(sc->as_apt, sc->as_apaddr, offset, prot,
+ BUS_SPACE_MAP_LINEAR));
}
/* Implementation of the kernel api */
Home |
Main Index |
Thread Index |
Old Index