[NETFILTER]: PPTP conntrack: simplify expectation handling
[hh.org.git] / arch / ppc / boot / simple / cpc700_memory.c
blobd75420a45a59b8355fb3ab5ebf43f4efd29cb5e9
1 /*
2 * Find memory based upon settings in the CPC700 bridge
4 * Author: Dan Cox
6 * 2001-2002 (c) MontaVista, Software, Inc. This file is licensed under
7 * the terms of the GNU General Public License version 2. This program
8 * is licensed "as is" without any warranty of any kind, whether express
9 * or implied.
12 #include <asm/types.h>
13 #include <asm/io.h>
14 #include "cpc700.h"
16 unsigned long
17 cpc700_get_mem_size(void)
19 int i;
20 unsigned long len, amt;
22 /* Start at MB1EA, since MB0EA will most likely be the ending address
23 for ROM space. */
24 for(len = 0, i = CPC700_MB1EA; i <= CPC700_MB4EA; i+=4) {
25 amt = cpc700_read_memreg(i);
26 if (amt == 0)
27 break;
28 len = amt;
31 return len;