blob: 99821f206e533a38dd4aec7050efbf4f64b6670d [file] [log] [blame]
Jeff Johnson295189b2012-06-20 16:38:30 -07001/*
Kiet Lam1ed83fc2014-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.
Gopichand Nakkala92f07d82013-01-08 21:16:34 -080020 */
Kiet Lam1ed83fc2014-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
Jeff Johnson295189b2012-06-20 16:38:30 -070028#if !defined( __WLAN_QCT_PAL_STATUS_H )
29#define __WLAN_QCT_PAL_STATUS_H
30
31/**=========================================================================
32
33 \file wlan_qct_pal_status.h
34
35 \brief define status PAL exports. wpt = (Wlan Pal Type)
36
37 Definitions for platform independent.
38
Jeff Johnson295189b2012-06-20 16:38:30 -070039
40 ========================================================================*/
41
42typedef enum
43{
44 /// Request succeeded!
45 eWLAN_PAL_STATUS_SUCCESS,
46
47 /// Request failed because system resources (other than memory) to
48 /// fulfill request are not available.
49 eWLAN_PAL_STATUS_E_RESOURCES,
50
51 /// Request failed because not enough memory is available to
52 /// fulfill the request.
53 eWLAN_PAL_STATUS_E_NOMEM,
54
55 /// Request failed because there of an invalid request. This is
56 /// typically the result of invalid parameters on the request.
57 eWLAN_PAL_STATUS_E_INVAL,
58
59 /// Request failed because handling the request would cause a
60 /// system fault. This error is typically returned when an
61 /// invalid pointer to memory is detected.
62 eWLAN_PAL_STATUS_E_FAULT,
63
64 /// Request failed because device or resource is busy.
65 eWLAN_PAL_STATUS_E_BUSY,
66
67 /// Request did not complete because it was canceled.
68 eWLAN_PAL_STATUS_E_CANCELED,
69
70 /// Request did not complete because it was aborted.
71 eWLAN_PAL_STATUS_E_ABORTED,
72
73 /// Request failed because the request is valid, though not supported
74 /// by the entity processing the request.
75 eWLAN_PAL_STATUS_E_NOSUPPORT,
76
77 /// Request failed because of an empty condition
78 eWLAN_PAL_STATUS_E_EMPTY,
79
80 /// Existance failure. Operation could not be completed because
81 /// something exists or does not exist.
82 eWLAN_PAL_STATUS_E_EXISTS,
83
84 /// Operation timed out
85 eWLAN_PAL_STATUS_E_TIMEOUT,
86
87 /// Request failed for some unknown reason. Note don't use this
88 /// status unless nothing else applies
89 eWLAN_PAL_STATUS_E_FAILURE,
90} wpt_status;
91
92
93#define WLAN_PAL_IS_STATUS_SUCCESS(status) ( eWLAN_PAL_STATUS_SUCCESS == (status) )
94
95#endif // __WLAN_QCT_PAL_STATUS_H