Files
openbios/include/ofmem.h
Stefan Reinauer 5c9eb9b45b initial import of openbios--main--1.0--patch-26
git-svn-id: svn://coreboot.org/openbios/openbios-devel@1 f158a5a8-5612-0410-a976-696ce0be7e32
2006-04-26 15:08:19 +00:00

39 lines
1.0 KiB
C

/*
* Creation Date: <1999/11/16 00:47:06 samuel>
* Time-stamp: <2003/10/18 13:28:14 samuel>
*
* <ofmem.h>
*
*
*
* Copyright (C) 1999, 2002 Samuel Rydh (samuel@ibrium.se)
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation
*
*/
#ifndef _H_OFMEM
#define _H_OFMEM
extern void ofmem_cleanup( void );
extern void ofmem_init( void );
extern ulong ofmem_claim( ulong addr, ulong size, ulong align );
extern ulong ofmem_claim_phys( ulong mphys, ulong size, ulong align );
extern ulong ofmem_claim_virt( ulong mvirt, ulong size, ulong align );
extern int ofmem_map( ulong phys, ulong virt, ulong size, int mode );
extern void ofmem_release( ulong virt, ulong size );
extern ulong ofmem_translate( ulong virt, ulong *ret_mode );
/* allocations from the private pool */
extern void *malloc( int size );
extern void free( void *ptr );
extern void *realloc( void *ptr, size_t size );
#endif /* _H_OFMEM */