4 * DSP-BIOS Bridge driver support functions for TI OMAP processors.
6 * General storage memory allocator services.
8 * Copyright (C) 2005-2006 Texas Instruments, Inc.
10 * This package is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License version 2 as
12 * published by the Free Software Foundation.
14 * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
15 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
16 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
19 #include <linux/types.h>
20 /* ----------------------------------- DSP/BIOS Bridge */
21 #include <dspbridge/dbdefs.h>
23 /* ----------------------------------- This */
24 #include <dspbridge/gs.h>
26 #include <linux/slab.h>
28 /* ----------------------------------- Globals */
32 * ======== gs_alloc ========
34 * Allocates memory of the specified size.
36 void *gs_alloc(u32 size)
40 p = kzalloc(size, GFP_KERNEL);
48 * ======== gs_exit ========
50 * Discontinue the usage of the GS module.
58 * ======== gs_free ========
62 void gs_free(void *ptr)
65 /* ack! no size info */
66 /* cumsize -= size; */
70 * ======== gs_frees ========
74 void gs_frees(void *ptr, u32 size)
81 * ======== gs_init ========
83 * Initializes the GS module.