Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sun2/include Added a prototype for the internal fun...
details: https://anonhg.NetBSD.org/src/rev/8e3c8dd854fc
branches: trunk
changeset: 508127:8e3c8dd854fc
user: fredette <fredette%NetBSD.org@localhost>
date: Fri Apr 06 13:12:06 2001 +0000
description:
Added a prototype for the internal function _pmap_extract_pmeg,
used by the bus_dma implementation when double-mapping pages
by hand.
Now define PMAP_OBMEM for completeness.
diffstat:
sys/arch/sun2/include/pmap.h | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (27 lines):
diff -r 9d63e6219355 -r 8e3c8dd854fc sys/arch/sun2/include/pmap.h
--- a/sys/arch/sun2/include/pmap.h Fri Apr 06 13:09:10 2001 +0000
+++ b/sys/arch/sun2/include/pmap.h Fri Apr 06 13:12:06 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.h,v 1.1 2001/03/29 04:44:20 fredette Exp $ */
+/* $NetBSD: pmap.h,v 1.2 2001/04/06 13:12:06 fredette Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -91,6 +91,9 @@
/* Map a given physical region to a virtual region */
extern vm_offset_t pmap_map __P((vm_offset_t, vm_offset_t, vm_offset_t, int));
+/* Extract the PMEG for a given physical address. */
+extern int _pmap_extract_pmeg __P((pmap_t, vm_offset_t));
+
/*
* Since PTEs also contain type bits, we have to have some way
* to tell pmap_enter `this is an IO page' or `this is not to
@@ -100,6 +103,7 @@
* The values below must agree with pte.h such that:
* (PMAP_OBIO << PG_MOD_SHIFT) == PGT_OBIO
*/
+#define PMAP_OBMEM 0x00
#define PMAP_OBIO 0x04 /* tells pmap_enter to use PG_OBIO */
#define PMAP_VME16 0x08 /* etc */
#define PMAP_MBMEM 0x08 /* etc (sun-2/120) */
Home |
Main Index |
Thread Index |
Old Index