Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sun2/sun2 Remove duplicated functions that are impl...
details: https://anonhg.NetBSD.org/src/rev/0485cfc6d936
branches: trunk
changeset: 766070:0485cfc6d936
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Tue Jun 14 15:51:35 2011 +0000
description:
Remove duplicated functions that are implemented in machdep.c.
XXX: why do only sun2 and sun3 (and sun3x) have separate mm_md.c?
diffstat:
sys/arch/sun2/sun2/mm_md.c | 43 ++-----------------------------------------
1 files changed, 2 insertions(+), 41 deletions(-)
diffs (64 lines):
diff -r f8c3baf6d0dc -r 0485cfc6d936 sys/arch/sun2/sun2/mm_md.c
--- a/sys/arch/sun2/sun2/mm_md.c Tue Jun 14 15:34:21 2011 +0000
+++ b/sys/arch/sun2/sun2/mm_md.c Tue Jun 14 15:51:35 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mm_md.c,v 1.2 2011/06/12 03:35:47 rmind Exp $ */
+/* $NetBSD: mm_md.c,v 1.3 2011/06/14 15:51:35 tsutsui Exp $ */
/*
* Copyright (c) 1982, 1986, 1990, 1993
@@ -76,7 +76,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mm_md.c,v 1.2 2011/06/12 03:35:47 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mm_md.c,v 1.3 2011/06/14 15:51:35 tsutsui Exp $");
#include <sys/param.h>
#include <sys/errno.h>
@@ -91,45 +91,6 @@
#define DEV_LEDS 13 /* minor device 13 is leds */
int
-mm_md_physacc(paddr_t pa, vm_prot_t prot)
-{
-
- /* Allow access only in "managed" RAM. */
- if (pa < avail_start || pa >= avail_end)
- return EFAULT;
- return 0;
-}
-
-bool
-mm_md_direct_mapped_phys(paddr_t paddr, vaddr_t *vaddr)
-{
-
- if (paddr >= avail_start)
- return false;
- *vaddr = paddr;
- return true;
-}
-
-/*
- * Allow access to the PROM mapping similiar to uvm_kernacc().
- */
-int
-mm_md_kernacc(void *ptr, vm_prot_t prot, bool *handled)
-{
-
- if ((vaddr_t)ptr < SUN2_PROM_BASE || (vaddr_t)ptr > SUN2_MONEND) {
- *handled = false;
- return 0;
- }
-
- *handled = true;
- /* Read in the PROM itself is OK, write not. */
- if ((prot & VM_PROT_WRITE) == 0)
- return 0;
- return EFAULT;
-}
-
-int
mm_md_readwrite(dev_t dev, struct uio *uio)
{
Home |
Main Index |
Thread Index |
Old Index