From 20b73e2b484578c36ca5642382c5999545e22b42 Mon Sep 17 00:00:00 2001 From: rearnsha Date: Sat, 6 Sep 2003 10:08:13 +0000 Subject: [PATCH] Add a flags field to _PhysMem structure so that we can describe attributes of memory regions (BOOT_DRAM_CAN_DMA, BOOT_DRAM_PREFER). Rearrange order of BootConfig members so that the describing how many dram regions we have preceeds the descriptions of each region. --- sys/arch/evbarm/include/bootconfig.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sys/arch/evbarm/include/bootconfig.h b/sys/arch/evbarm/include/bootconfig.h index ab1d7d2b9e12..4befbb795c78 100644 --- a/sys/arch/evbarm/include/bootconfig.h +++ b/sys/arch/evbarm/include/bootconfig.h @@ -1,4 +1,4 @@ -/* $NetBSD: bootconfig.h,v 1.1 2001/09/05 04:53:40 matt Exp $ */ +/* $NetBSD: bootconfig.h,v 1.2 2003/09/06 10:08:13 rearnsha Exp $ */ /* * Copyright (c) 1994 Mark Brinicombe. @@ -45,13 +45,16 @@ typedef struct _PhysMem { u_int address; u_int pages; + u_int flags; +#define BOOT_DRAM_CAN_DMA 1 /* Can DMA direct to this memory. */ +#define BOOT_DRAM_PREFER 2 /* UVM should prefer this memory. */ } PhysMem; -#define DRAM_BLOCKS 1 +#define DRAM_BLOCKS 2 typedef struct _BootConfig { - PhysMem dram[DRAM_BLOCKS]; u_int dramblocks; + PhysMem dram[DRAM_BLOCKS]; } BootConfig; extern BootConfig bootconfig;