summaryrefslogtreecommitdiff
path: root/sys/arch/sgi/include
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2009-05-08 18:42:08 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2009-05-08 18:42:08 +0000
commit7b358d538e466ebcf6cfb38854d5c956a796334c (patch)
treef30b203bb8a8ac08b80af1f76efece5030048902 /sys/arch/sgi/include
parentd5d82b7603a15d62361a97e81cd7c3ab892b78f5 (diff)
Add a new page freelist, to which memory suitable for 32-bit dma on
xbridge(4) is assigned. Then, make bus_dmamem_alloc() allocate from this range only. This is transparent on O2, and makes sure the bus_dma memory address will fit in the 2GB direct map of xbridge(4) chips - this is necessary for PCI devices which do not handle 64 bit dma addresses.
Diffstat (limited to 'sys/arch/sgi/include')
-rw-r--r--sys/arch/sgi/include/vmparam.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/sgi/include/vmparam.h b/sys/arch/sgi/include/vmparam.h
index ba4d5e73e58..33f33aa2ff2 100644
--- a/sys/arch/sgi/include/vmparam.h
+++ b/sys/arch/sgi/include/vmparam.h
@@ -1,10 +1,13 @@
-/* $OpenBSD: vmparam.h,v 1.2 2008/04/07 22:41:52 miod Exp $ */
+/* $OpenBSD: vmparam.h,v 1.3 2009/05/08 18:42:04 miod Exp $ */
#ifndef _SGI_VMPARAM_H_
#define _SGI_VMPARAM_H_
#define VM_PHYSSEG_MAX 32 /* Max number of physical memory segments */
+#define VM_NFREELIST 2
+#define VM_FREELIST_DMA32 1 /* memory under 2GB suitable for DMA */
+
#include <mips64/vmparam.h>
#endif /* _SGI_VMPARAM_H_ */