summaryrefslogtreecommitdiff
path: root/drivers/staging/nmf-cm/cm/engine/memory/inc/chunk_mgr.h
blob: 340301a925995b57f06d3a74a626e56cf600d9a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
 * Copyright (C) ST-Ericsson SA 2010
 * Author: Jean-Philippe FASSINO <jean-philippe.fassino@stericsson.com> for ST-Ericsson.
 * License terms: GNU General Public License (GPL) version 2.
 */
/**
 * \internal
 */
#ifndef CHUNK_MGR_H_
#define CHUNK_MGR_H_

#include <cm/engine/memory/inc/remote_allocator.h>
#include <cm/engine/os_adaptation_layer/inc/os_adaptation_layer.h>

t_cm_error allocChunkPool(void);
t_cm_error fillChunkPool(void);
void freeChunkPool(void);

/***************************************************************************/
/*
 * allocChunk
 * param current  : Pointer on chunck to free
 *
 * Add a chunk in the chunck list
 *
 */
/***************************************************************************/
t_cm_chunk* allocChunk(void);

/***************************************************************************/
/*
 * freeChunk
 * param current  : Pointer on chunck to free
 *
 * Remove a chunk in the chunck list
 *
 */
/***************************************************************************/
void freeChunk(t_cm_chunk *chunk);

#endif /*CHUNK_MGR_H_*/