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 | #if !defined( __I_VOS_DIAG_CORE_EVENT_H ) |
| 7 | #define __I_VOS_DIAG_CORE_EVENT_H |
| 8 | |
| 9 | /**========================================================================= |
| 10 | |
| 11 | \file i_vos_diag_core_event.h |
| 12 | |
| 13 | \brief Android specific definitions for vOSS DIAG events |
| 14 | |
| 15 | Copyright 2008 (c) Qualcomm, Incorporated. All Rights Reserved. |
| 16 | |
| 17 | Qualcomm Confidential and Proprietary. |
| 18 | |
| 19 | ========================================================================*/ |
| 20 | |
| 21 | /* $Header$ */ |
| 22 | |
| 23 | /*-------------------------------------------------------------------------- |
| 24 | Include Files |
| 25 | ------------------------------------------------------------------------*/ |
| 26 | #include <vos_types.h> |
| 27 | #ifdef FEATURE_WLAN_DIAG_SUPPORT |
| 28 | #include <event_defs.h> |
| 29 | #endif |
| 30 | |
| 31 | /*-------------------------------------------------------------------------- |
| 32 | Preprocessor definitions and constants |
| 33 | ------------------------------------------------------------------------*/ |
| 34 | |
| 35 | #ifdef __cplusplus |
| 36 | extern "C" { |
| 37 | #endif /* __cplusplus */ |
| 38 | |
| 39 | #ifdef FEATURE_WLAN_DIAG_SUPPORT |
| 40 | |
| 41 | void vos_event_report_payload(v_U16_t event_Id, v_U16_t length, v_VOID_t *pPayload); |
| 42 | /*--------------------------------------------------------------------------- |
| 43 | Allocate an event payload holder |
| 44 | ---------------------------------------------------------------------------*/ |
| 45 | #define WLAN_VOS_DIAG_EVENT_DEF( payload_name, payload_type ) \ |
| 46 | payload_type(payload_name) |
| 47 | |
| 48 | /*--------------------------------------------------------------------------- |
| 49 | Report the event |
| 50 | ---------------------------------------------------------------------------*/ |
| 51 | #define WLAN_VOS_DIAG_EVENT_REPORT( payload_ptr, ev_id ) \ |
| 52 | do \ |
| 53 | { \ |
| 54 | vos_event_report_payload( ev_id, \ |
| 55 | sizeof( *(payload_ptr) ), \ |
| 56 | (void *)(payload_ptr) ); \ |
| 57 | \ |
| 58 | } while (0) |
| 59 | |
| 60 | #else /* FEATURE_WLAN_DIAG_SUPPORT */ |
| 61 | |
| 62 | #define WLAN_VOS_DIAG_EVENT_DEF( payload_name, payload_type ) |
| 63 | #define WLAN_VOS_DIAG_EVENT_REPORT( payload_ptr, ev_id ) |
| 64 | |
| 65 | #endif /* FEATURE_WLAN_DIAG_SUPPORT */ |
| 66 | |
| 67 | |
| 68 | /*------------------------------------------------------------------------- |
| 69 | Function declarations and documenation |
| 70 | ------------------------------------------------------------------------*/ |
| 71 | |
| 72 | #ifdef __cplusplus |
| 73 | } |
| 74 | #endif /* __cplusplus */ |
| 75 | |
| 76 | #endif // __I_VOS_DIAG_CORE_EVENT_H |