GUI: Fix Tomato RAF theme for all builds. Compilation typo.
[tomato.git] / release / src-rt-6.x.4708 / linux / linux-2.6.36 / drivers / staging / tidspbridge / include / dspbridge / gs.h
blobf32d8d9af415965c8e60936c0168e7f08eb55f6c
1 /*
2 * gs.h
4 * DSP-BIOS Bridge driver support functions for TI OMAP processors.
6 * Memory allocation/release wrappers. This module allows clients to
7 * avoid OS spacific issues related to memory allocation. It also provides
8 * simple diagnostic capabilities to assist in the detection of memory
9 * leaks.
11 * Copyright (C) 2005-2006 Texas Instruments, Inc.
13 * This package is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License version 2 as
15 * published by the Free Software Foundation.
17 * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
18 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
19 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
22 #ifndef GS_
23 #define GS_
26 * ======== gs_alloc ========
27 * Alloc size bytes of space. Returns pointer to space
28 * allocated, otherwise NULL.
30 extern void *gs_alloc(u32 size);
33 * ======== gs_exit ========
34 * Module exit. Do not change to "#define gs_init()"; in
35 * some environments this operation must actually do some work!
37 extern void gs_exit(void);
40 * ======== gs_free ========
41 * Free space allocated by gs_alloc() or GS_calloc().
43 extern void gs_free(void *ptr);
46 * ======== gs_frees ========
47 * Free space allocated by gs_alloc() or GS_calloc() and assert that
48 * the size of the allocation is size bytes.
50 extern void gs_frees(void *ptr, u32 size);
53 * ======== gs_init ========
54 * Module initialization. Do not change to "#define gs_init()"; in
55 * some environments this operation must actually do some work!
57 extern void gs_init(void);
59 #endif /*GS_ */