Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1 | /* |
Kiet Lam | aa8e15a | 2014-02-11 23:30:06 -0800 | [diff] [blame^] | 2 | * Copyright (c) 2012-2013 Qualcomm Atheros, Inc. |
| 3 | * All Rights Reserved. |
| 4 | * Qualcomm Atheros Confidential and Proprietary. |
Gopichand Nakkala | 92f07d8 | 2013-01-08 21:16:34 -0800 | [diff] [blame] | 5 | */ |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6 | /* |
| 7 | * |
| 8 | * Airgo Networks, Inc proprietary. All rights reserved |
| 9 | * aniParam.h: MAC parameter interface. |
| 10 | * Author: Kevin Nguyen |
| 11 | * Date: 09/09/2002 |
| 12 | * |
| 13 | * History:- |
| 14 | * Date Modified by Modification Information |
| 15 | * -------------------------------------------------------------------------- |
| 16 | * |
| 17 | */ |
| 18 | |
| 19 | #ifndef _ANIPARAM_H |
| 20 | #define _ANIPARAM_H |
| 21 | |
| 22 | #include "halTypes.h" |
| 23 | |
| 24 | /** |
| 25 | * -------------------------------------------------------------------------* |
| 26 | * MAC parameter structure * |
| 27 | * This structure is the only interface passed between the MAC FW and the * |
| 28 | * host driver. * |
| 29 | * * |
| 30 | * Host-to-MAC parameters: * |
| 31 | * ======================= * |
| 32 | * radioId: radio ID (1 or 2) * |
| 33 | * pPacketBufAlloc: function pointer for SKBuffer allocation * |
| 34 | * pPacketBufFree : function pointer for SKBuffer free * |
| 35 | * * |
| 36 | *------------------------------------------------------------------------- |
| 37 | */ |
| 38 | typedef struct |
| 39 | { |
| 40 | // HDD to MAC parameters |
| 41 | int radioId; |
| 42 | |
| 43 | void (*pPacketBufAlloc)(unsigned short size, void **ppBuf, |
| 44 | void **ppSkb, void *dev); |
| 45 | void (*pPacketBufFree)(void* pBuf, void *pSkb); |
| 46 | |
| 47 | int rx_tasklet; |
| 48 | |
| 49 | // block table allocated by HDD |
| 50 | void * block_table; |
| 51 | |
| 52 | tHalHandle hHalHandle; |
| 53 | |
| 54 | } tAniMacParam; |
| 55 | |
| 56 | |
| 57 | #ifdef ANI_AP_SDK |
| 58 | #define NUM_RADIO 1 |
| 59 | #else |
| 60 | #define NUM_RADIO 2 |
| 61 | #endif |
| 62 | |
| 63 | |
| 64 | #endif /* _ANIPARAM_H */ |
| 65 | |
| 66 | |