diff options
author | markm <markm@FreeBSD.org> | 2004-08-04 18:30:31 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2004-08-04 18:30:31 +0000 |
commit | 124b176fef5130ca995d2b9f839ccf690a880eef (patch) | |
tree | abf47e071c49af987bfa30304247de6cd6e8fa78 /sys/amd64/amd64/mem.c | |
parent | bc0c49120545212dcc8b185d81971a000bf866d1 (diff) | |
download | FreeBSD-src-124b176fef5130ca995d2b9f839ccf690a880eef.zip FreeBSD-src-124b176fef5130ca995d2b9f839ccf690a880eef.tar.gz |
Fix module builds for i386 and amd64.
Diffstat (limited to 'sys/amd64/amd64/mem.c')
-rw-r--r-- | sys/amd64/amd64/mem.c | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/sys/amd64/amd64/mem.c b/sys/amd64/amd64/mem.c index 1b46d3d..00f5a8e 100644 --- a/sys/amd64/amd64/mem.c +++ b/sys/amd64/amd64/mem.c @@ -71,14 +71,6 @@ __FBSDID("$FreeBSD$"); * Used in /dev/mem drivers and elsewhere */ MALLOC_DEFINE(M_MEMDESC, "memdesc", "memory range descriptors"); -struct mem_range_softc mem_range_softc; - -void -mem_range_AP_init(void) -{ - if (mem_range_softc.mr_op && mem_range_softc.mr_op->initAP) - mem_range_softc.mr_op->initAP(&mem_range_softc); -} /* ARGSUSED */ int @@ -223,35 +215,6 @@ memioctl(struct cdev *dev __unused, u_long cmd, caddr_t data, int flags, return (error); } -/* - * Implementation-neutral, kernel-callable functions for manipulating - * memory range attributes. - */ -int -mem_range_attr_get(struct mem_range_desc *mrd, int *arg) -{ - /* can we handle this? */ - if (mem_range_softc.mr_op == NULL) - return (EOPNOTSUPP); - - if (*arg == 0) - *arg = mem_range_softc.mr_ndesc; - else - bcopy(mem_range_softc.mr_desc, mrd, - (*arg) * sizeof(struct mem_range_desc)); - return (0); -} - -int -mem_range_attr_set(struct mem_range_desc *mrd, int *arg) -{ - /* can we handle this? */ - if (mem_range_softc.mr_op == NULL) - return (EOPNOTSUPP); - - return (mem_range_softc.mr_op->set(&mem_range_softc, mrd, arg)); -} - void dev_mem_md_init(void) { |