blob: 1bbe877e7fc0372e251d7bf6d2e2e01abf451924 [file] [log] [blame]
Prasanna Kumar0833aa82013-04-11 20:05:21 -07001/*
Kiet Lam988a5522014-02-19 01:15:45 -08002 * Copyright (c) 2012-2013 The Linux Foundation. All rights reserved.
3 *
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.
Prasanna Kumar0833aa82013-04-11 20:05:21 -070020 */
Kiet Lam988a5522014-02-19 01:15:45 -080021
22/*
23 * This file was originally distributed by Qualcomm Atheros, Inc.
24 * under proprietary terms before Copyright ownership was assigned
25 * to the Linux Foundation.
26 */
27
Prasanna Kumar0833aa82013-04-11 20:05:21 -070028#if !defined _WLAN_NV_TEMPLATE_API_H
29#define _WLAN_NV_TEMPLATE_API_H
30
31#include "wlan_nv_types.h"
32
33/*
34* API Prototypes
35* These are meant to be exposed to outside applications
36*/
37//extern void writeNvData(void);
38//extern VOS_STATUS nvParser(tANI_U8 *pnvEncodedBuf, tANI_U32 nvReadBufSize, sHalNv *);
39
40/*
41* Parsing control bitmap
42*/
43#define _ABORT_WHEN_MISMATCH_MASK 0x00000001 /*set: abort when mismatch, clear: continue taking matched entries*/
44#define _IGNORE_THE_APPENDED_MASK 0x00000002 /*set: ignore, clear: take*/
45
46#define _FLAG_AND_ABORT(b) (((b) & _ABORT_WHEN_MISMATCH_MASK) ? 1 : 0)
47
48#endif /*#if !defined(_WLAN_NV_TEMPLATE_API_H) */