diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-11-28 16:43:58 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-11-28 16:43:58 +0000 |
commit | c9e4f9c4cdbdf140d4de20021d07037f8d590bfd (patch) | |
tree | 06c9f4f12c5567fde5d4cc1c6d896ed6bc7bb792 /sys/arch/i386/isa/isa_machdep.h | |
parent | e8819b77bfb041f813ffbf6e8c1ad7f334adc333 (diff) |
i386 isa bounce buffers by hannken@eis.cs.tu-bs.de
Diffstat (limited to 'sys/arch/i386/isa/isa_machdep.h')
-rw-r--r-- | sys/arch/i386/isa/isa_machdep.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/sys/arch/i386/isa/isa_machdep.h b/sys/arch/i386/isa/isa_machdep.h index a118e7fc17a..495653d9b65 100644 --- a/sys/arch/i386/isa/isa_machdep.h +++ b/sys/arch/i386/isa/isa_machdep.h @@ -97,17 +97,23 @@ struct intrhand { * XXX should be made partially machine- and bus-mapping-independent. * * DMA_BOUNCE is the number of pages of low-addressed physical memory - * to acquire for ISA bounce buffers. + * to acquire for ISA bounce buffers. If physical memory below 16 MB + * then DMA_BOUNCE_LOW will be used. * - * isaphysmem is the location of those bounce buffers. (They are currently - * assumed to be contiguous. + * isaphysmem is the address of this physical contiguous low memory. + * isaphysmempgs is the number of pages allocated. */ #ifndef DMA_BOUNCE -#define DMA_BOUNCE 8 /* one buffer per channel */ +#define DMA_BOUNCE 48 /* number of pages if memory > 16M */ +#endif + +#ifndef DMA_BOUNCE_LOW +#define DMA_BOUNCE_LOW 16 /* number of pages if memory <= 16M */ #endif extern vm_offset_t isaphysmem; +extern int isaphysmempgs; /* |