Make this file compile again.
This commit is contained in:
parent
d6295e3d35
commit
92f0a8f388
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: mem.c,v 1.18 2000/06/26 04:56:14 simonb Exp $ */
|
||||
/* $NetBSD: mem.c,v 1.19 2000/06/27 18:38:27 ragge Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -52,19 +52,18 @@
|
||||
#include <sys/malloc.h>
|
||||
#include <sys/proc.h>
|
||||
|
||||
#include <machine/pte.h>
|
||||
#include <machine/mtpr.h>
|
||||
|
||||
#include <vm/vm.h>
|
||||
|
||||
extern unsigned int avail_end;
|
||||
caddr_t zeropage;
|
||||
#define mmread mmrw
|
||||
#define mmwrite mmrw
|
||||
cdev_decl(mm);
|
||||
|
||||
extern unsigned int avail_end;
|
||||
static caddr_t zeropage;
|
||||
|
||||
/*ARGSUSED*/
|
||||
int
|
||||
mmopen(dev, flag, mode)
|
||||
dev_t dev;
|
||||
int flag, mode;
|
||||
mmopen(dev_t dev, int flag, int mode, struct proc *p)
|
||||
{
|
||||
|
||||
return (0);
|
||||
@ -72,9 +71,7 @@ mmopen(dev, flag, mode)
|
||||
|
||||
/*ARGSUSED*/
|
||||
int
|
||||
mmclose(dev, flag, mode)
|
||||
dev_t dev;
|
||||
int flag, mode;
|
||||
mmclose(dev_t dev, int flag, int mode, struct proc *p)
|
||||
{
|
||||
|
||||
return (0);
|
||||
@ -82,10 +79,7 @@ mmclose(dev, flag, mode)
|
||||
|
||||
/*ARGSUSED*/
|
||||
int
|
||||
mmrw(dev, uio, flags)
|
||||
dev_t dev;
|
||||
struct uio *uio;
|
||||
int flags;
|
||||
mmrw(dev_t dev, struct uio *uio, int flags)
|
||||
{
|
||||
register vaddr_t v;
|
||||
register int c;
|
||||
@ -158,10 +152,7 @@ mmrw(dev, uio, flags)
|
||||
}
|
||||
|
||||
paddr_t
|
||||
mmmmap(dev, off, prot)
|
||||
dev_t dev;
|
||||
off_t off;
|
||||
int prot;
|
||||
mmmmap(dev_t dev, off_t off, int prot)
|
||||
{
|
||||
|
||||
return (-1);
|
||||
|
Loading…
Reference in New Issue
Block a user