/* SCE CONFIDENTIAL
PLAYSTATION(R)3 Programmer Tool Runtime Library 084.006
* Copyright (C) 2006 Sony Computer Entertainment Inc.
* All Rights Reserved.
*/


#ifndef __CELL_SHEAP_KEY_SHEAP_H__
#define __CELL_SHEAP_KEY_SHEAP_H__

#include <stdint.h>
#include <cell/sheap/sheap_base.h>
#include <cell/sheap/error.h>

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */


typedef uint32_t CellSheapKey;
#define CELL_SHEAP_NUM_KEY_ENTRY 256

int
cellKeySheapInitialize(void* ea_sheap,
					   uint64_t size,
					   uint32_t spu_dma_tag);


#define cellKeySheapAllocate(ea_sheap, size) cellSheapAllocate((ea_sheap), (size)) 

#define cellKeySheapFree(ea_sheap,ptr) cellSheapFree((ea_sheap),(ptr))


#define cellKeySheapQueryMax(ea_sheap) cellSheapQueryMax(ea_sheap)

#define cellKeySheapQueryFree(ea_sheap) cellSheapQueryFree(ea_sheap)

#ifdef __cplusplus
}
#endif /* __cplusplus */


#endif /* __CELL_SHEAP_KEY_SHEAP_H__ */

