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:
25 * Dispatcher Objects(Events,Semaphores,Spin Locks and the like)
27 ***********************************************************************/
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) \
43 memcpy(dest,src, len); \
46 #define OsalZeroMemory(pDest, Len) \
48 memset(pDest,0,Len); \
51 //#define OsalMemSet(pSrc,Char,Len) memset(pSrc,Char,Len)
53 bool OsalMemCompare(void *dest
, void *src
, UINT len
);