summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/include/param.h
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1995-12-15 13:56:49 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1995-12-15 13:56:49 +0000
commite4e83e0395766865b32e31ffd4c99492e95021a9 (patch)
tree3cdf19cc2481595d362927e4907c24c03ed2cea4 /sys/arch/sparc/include/param.h
parent52870c9193cefaa9a2f79fab1b0a1e8076290b55 (diff)
new mapdev/()/mapiodev() calling convention uses "struct rom_reg *" to supply
base plus an offset new dvma routines
Diffstat (limited to 'sys/arch/sparc/include/param.h')
-rw-r--r--sys/arch/sparc/include/param.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/sys/arch/sparc/include/param.h b/sys/arch/sparc/include/param.h
index c62dfcfe3cb..da5231519df 100644
--- a/sys/arch/sparc/include/param.h
+++ b/sys/arch/sparc/include/param.h
@@ -169,16 +169,21 @@ extern int nbpg, pgofset, pgshift;
*/
#ifdef _KERNEL
#ifndef LOCORE
-extern vm_offset_t dvmabase;
+extern vm_offset_t dvma_base;
+extern vm_offset_t dvma_end;
extern struct map *dvmamap;
#endif
-#endif
/*
* The dvma resource map is defined in page units, which are numbered 1 to N.
* Use these macros to convert to/from virtual addresses.
*/
-#define rctov(n) (ctob(((n)-1))+dvmabase)
-#define vtorc(v) ((btoc((v)-dvmabase))+1)
+#define rctov(n) (ctob(((n)-1))+dvma_base)
+#define vtorc(v) ((btoc((v)-dvma_base))+1)
+
+extern caddr_t kdvma_mapin __P((caddr_t, int, int));
+extern caddr_t dvma_malloc __P((size_t, void *, int));
+extern void dvma_free __P((caddr_t, size_t, void *));
+#endif
#ifdef _KERNEL
@@ -188,9 +193,11 @@ extern struct map *dvmamap;
#endif
#ifdef _KERNEL
+#ifndef LOCORE
extern int cputyp;
extern int cpumod;
#endif
+#endif
/*
* Values for the cputyp variable.
*/