blob: 255c7ddf308179319c813bd60950e9a764005841 [file] [log] [blame]
Vipin Mehta30295c82010-09-01 12:06:33 -07001//------------------------------------------------------------------------------
2// <copyright file="athdefs.h" company="Atheros">
3// Copyright (c) 2004-2010 Atheros Corporation. All rights reserved.
4//
5//
6// Permission to use, copy, modify, and/or distribute this software for any
7// purpose with or without fee is hereby granted, provided that the above
8// copyright notice and this permission notice appear in all copies.
9//
10// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17//
18//
19//------------------------------------------------------------------------------
20//==============================================================================
21// Author(s): ="Atheros"
22//==============================================================================
23#ifndef __ATHDEFS_H__
24#define __ATHDEFS_H__
25
26/*
27 * This file contains definitions that may be used across both
28 * Host and Target software. Nothing here is module-dependent
29 * or platform-dependent.
30 */
31
32/*
33 * Generic error codes that can be used by hw, sta, ap, sim, dk
Joe Perches1f4c34b2011-01-27 20:04:19 -080034 * and any other environments.
35 * Feel free to add any more codes that you need.
Vipin Mehta30295c82010-09-01 12:06:33 -070036 */
37
Joe Perches1f4c34b2011-01-27 20:04:19 -080038#define A_ERROR (-1) /* Generic error return */
39#define A_OK 0 /* success */
40#define A_DEVICE_NOT_FOUND 1 /* not able to find PCI device */
41#define A_NO_MEMORY 2 /* not able to allocate memory,
42 * not avail#defineable */
43#define A_MEMORY_NOT_AVAIL 3 /* memory region is not free for
44 * mapping */
45#define A_NO_FREE_DESC 4 /* no free descriptors available */
46#define A_BAD_ADDRESS 5 /* address does not match descriptor */
47#define A_WIN_DRIVER_ERROR 6 /* used in NT_HW version,
48 * if problem at init */
49#define A_REGS_NOT_MAPPED 7 /* registers not correctly mapped */
50#define A_EPERM 8 /* Not superuser */
51#define A_EACCES 0 /* Access denied */
52#define A_ENOENT 10 /* No such entry, search failed, etc. */
53#define A_EEXIST 11 /* The object already exists
54 * (can't create) */
55#define A_EFAULT 12 /* Bad address fault */
56#define A_EBUSY 13 /* Object is busy */
57#define A_EINVAL 14 /* Invalid parameter */
58#define A_EMSGSIZE 15 /* Bad message buffer length */
59#define A_ECANCELED 16 /* Operation canceled */
60#define A_ENOTSUP 17 /* Operation not supported */
61#define A_ECOMM 18 /* Communication error on send */
62#define A_EPROTO 19 /* Protocol error */
63#define A_ENODEV 20 /* No such device */
64#define A_EDEVNOTUP 21 /* device is not UP */
65#define A_NO_RESOURCE 22 /* No resources for
66 * requested operation */
67#define A_HARDWARE 23 /* Hardware failure */
68#define A_PENDING 24 /* Asynchronous routine; will send up
69 * results later
70 * (typically in callback) */
71#define A_EBADCHANNEL 25 /* The channel cannot be used */
72#define A_DECRYPT_ERROR 26 /* Decryption error */
73#define A_PHY_ERROR 27 /* RX PHY error */
74#define A_CONSUMED 28 /* Object was consumed */
Vipin Mehta30295c82010-09-01 12:06:33 -070075
Vipin Mehta30295c82010-09-01 12:06:33 -070076#endif /* __ATHDEFS_H__ */