diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2001-01-15 23:23:59 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2001-01-15 23:23:59 +0000 |
commit | 9b9c0d634967c42e5b81e9c9b46ba809557df246 (patch) | |
tree | eb57c95b01b3e1b1bfdc1025f0111271563950c1 /sys/arch/sparc/include/param.h | |
parent | 454375a7daad282cb21678b6667087b4b6fc078d (diff) |
- increase the amount of space mapped for dvma on sun4m
- use a flag to specify allocations for 24 bit devices
- compatibility macros to deal with the 32 bit devices
This fixes the 'le at sbus' on sun4m problem (with the extent fixes
earlier), and allows the Artecon ethernet cards to work in sun4m machines.
Diffstat (limited to 'sys/arch/sparc/include/param.h')
-rw-r--r-- | sys/arch/sparc/include/param.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/sparc/include/param.h b/sys/arch/sparc/include/param.h index 08894b43793..f0f3ff99afa 100644 --- a/sys/arch/sparc/include/param.h +++ b/sys/arch/sparc/include/param.h @@ -1,4 +1,4 @@ -/* $OpenBSD: param.h,v 1.15 2000/03/08 22:13:23 deraadt Exp $ */ +/* $OpenBSD: param.h,v 1.16 2001/01/15 23:23:58 jason Exp $ */ /* $NetBSD: param.h,v 1.29 1997/03/10 22:50:37 pk Exp $ */ /* @@ -180,8 +180,9 @@ extern vaddr_t dvma_end; extern struct extent *dvmamap_extent; extern caddr_t kdvma_mapin __P((caddr_t, int, int)); -extern caddr_t dvma_malloc __P((size_t, void *, int)); +extern caddr_t dvma_malloc_space __P((size_t, void *, int, int)); extern void dvma_free __P((caddr_t, size_t, void *)); +#define dvma_malloc(len,kaddr,flags) dvma_malloc_space(len,kaddr,flags,0) extern void delay __P((unsigned int)); #define DELAY(n) delay(n) |