Add qemu 2.4.0
[kvmfornfv.git] / qemu / roms / openbios / include / arch / sparc32 / ofmem_sparc32.h
1 /*
2  *      <ofmem_sparc32.h>
3  *
4  *      OF Memory manager
5  *
6  *   Copyright (C) 1999, 2002 Samuel Rydh (samuel@ibrium.se)
7  *
8  *   This program is free software; you can redistribute it and/or
9  *   modify it under the terms of the GNU General Public License
10  *   as published by the Free Software Foundation
11  *
12  */
13
14 #ifndef _H_OFMEM_SPARC32
15 #define _H_OFMEM_SPARC32
16
17 #include "libopenbios/ofmem.h"
18
19 #define OF_CODE_START 0xffd00000
20 #define OFMEM_VIRT_TOP 0xfe000000
21
22 struct mem;
23 extern struct mem cdvmem;
24
25 extern unsigned long *l1;
26 extern unsigned long find_pte(unsigned long va, int alloc);
27
28 void mem_init(struct mem *t, char *begin, char *limit);
29 void *mem_alloc(struct mem *t, int size, int align);
30
31 #endif   /* _H_OFMEM_SPARC32 */