blob: 0244861ba98369646f2a0c7d2e63cf5580ccefb6 [file] [log] [blame]
Jeff Johnson295189b2012-06-20 16:38:30 -07001/*
Jeff Johnson32d95a32012-09-10 13:15:23 -07002 * Copyright (c) 2012, The Linux Foundation. All rights reserved.
Jeff Johnson295189b2012-06-20 16:38:30 -07003 *
4 * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
5 *
6 *
7 * Permission to use, copy, modify, and/or distribute this software for
8 * any purpose with or without fee is hereby granted, provided that the
9 * above copyright notice and this permission notice appear in all
10 * copies.
11 *
12 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
13 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
14 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
15 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
16 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
17 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
18 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19 * PERFORMANCE OF THIS SOFTWARE.
20 */
21
22#if !defined( __WLAN_QCT_PAL_MSG_H )
23#define __WLAN_QCT_PAL_MSG_H
24
25/**=========================================================================
26
27 \file wlan_qct_pal_msg.h
28
29 \brief define general message APIs PAL exports to support legacy UMAC.
30 wpt = (Wlan Pal Type) wpal = (Wlan PAL)
31
32 Definitions for platform dependent. Only work with legacy UMAC.
33
34 Copyright 2010 (c) Qualcomm, Incorporated. All Rights Reserved.
35
36 Qualcomm Confidential and Proprietary.
37
38 ========================================================================*/
39
40#include "wlan_qct_pal_type.h"
41#include "wlan_qct_pal_status.h"
42
43typedef struct swpt_msg wpt_msg;
44
45typedef void (*wpal_msg_callback)(wpt_msg *pMsg);
46
47struct swpt_msg
48{
49 wpt_uint16 type;
50 wpt_uint16 reserved;
51 void *ptr;
52 wpt_uint32 val;
53 wpal_msg_callback callback;
54 void *pContext;
55};
56
57
58/*---------------------------------------------------------------------------
59 wpalPostCtrlMsg – Post a message to control context so it can
60 be processed in that context.
61 Param:
62 pPalContext – A PAL context
63 pMsg – a pointer to called allocated object; Caller retain the ownership
64 after this API returns.
65---------------------------------------------------------------------------*/
66wpt_status wpalPostCtrlMsg(void *pPalContext, wpt_msg *pMsg);
67
68
69/*---------------------------------------------------------------------------
70 wpalPostTxMsg – Post a message to TX context so it can be processed in that context.
71 Param:
72 pPalContext – A PAL context
73 pMsg – a pointer to called allocated object; Caller retain the ownership
74 after this API returns.
75---------------------------------------------------------------------------*/
76wpt_status wpalPostTxMsg(void *pPalContext, wpt_msg *pMsg);
77
78/*---------------------------------------------------------------------------
79 wpalPostRxMsg – Post a message to RX context so it can be processed in that context.
80 Param:
81 pPalContext – A PAL context
82 pMsg – a pointer to called allocated object; Caller retain the ownership
83 after this API returns.
84---------------------------------------------------------------------------*/
85wpt_status wpalPostRxMsg(void *pPalContext, wpt_msg *pMsg);
86
87
88
89#endif // __WLAN_QCT_PAL_API_H