GUI: Fix Tomato RAF theme for all builds. Compilation typo.
[tomato.git] / release / src-rt-6.x.4708 / linux / linux-2.6.36 / include / Common / osal_misc.h
blobd1e695aa4530014e1f76b8f0ca89b7ea9a65b714
1 /*
2 * osal_misc.h
4 *Copyright (C) 2010 Beceem Communications, Inc.
6 *This program is free software: you can redistribute it and/or modify
7 *it under the terms of the GNU General Public License version 2 as
8 *published by the Free Software Foundation.
10 *This program is distributed in the hope that it will be useful,but
11 *WITHOUT ANY WARRANTY; without even the implied warranty of
12 *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 *See the GNU General Public License for more details.
15 *You should have received a copy of the GNU General Public License
16 *along with this program. If not, write to the Free Software Foundation, Inc.,
17 *51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22 /**********************************************************************
23 * Provides the OS Abstracted macros to access:
24 * Linked Lists
25 * Dispatcher Objects(Events,Semaphores,Spin Locks and the like)
26 * Files
27 ***********************************************************************/
30 #ifndef _OSAL_MISC_H_
31 #define _OSAL_MISC_H_
32 //OSAL Macros
33 //OSAL Primitives
34 typedef PUCHAR POSAL_NW_PACKET ; //Nw packets
37 #define OsalMemAlloc(n,t) kmalloc(n,GFP_KERNEL)
39 #define OsalMemFree(x,n) bcm_kfree(x)
41 #define OsalMemMove(dest, src, len) \
42 { \
43 memcpy(dest,src, len); \
46 #define OsalZeroMemory(pDest, Len) \
47 { \
48 memset(pDest,0,Len); \
51 //#define OsalMemSet(pSrc,Char,Len) memset(pSrc,Char,Len)
53 bool OsalMemCompare(void *dest, void *src, UINT len);
55 #endif