1 //------------------------------------------------------------------------------
2 // <copyright file="athdefs.h" company="Atheros">
3 // Copyright (c) 2004-2010 Atheros Corporation. All rights reserved.
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.
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.
19 //------------------------------------------------------------------------------
20 //==============================================================================
21 // Author(s): ="Atheros"
22 //==============================================================================
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.
33 * Generic error codes that can be used by hw, sta, ap, sim, dk
34 * and any other environments.
35 * Feel free to add any more non-zero codes that you need.
38 #define A_ERROR (-1) /* Generic error return */
39 #define A_DEVICE_NOT_FOUND 1 /* not able to find PCI device */
40 #define A_NO_MEMORY 2 /* not able to allocate memory,
41 * not avail#defineable */
42 #define A_MEMORY_NOT_AVAIL 3 /* memory region is not free for
44 #define A_NO_FREE_DESC 4 /* no free descriptors available */
45 #define A_BAD_ADDRESS 5 /* address does not match descriptor */
46 #define A_WIN_DRIVER_ERROR 6 /* used in NT_HW version,
47 * if problem at init */
48 #define A_REGS_NOT_MAPPED 7 /* registers not correctly mapped */
49 #define A_EPERM 8 /* Not superuser */
50 #define A_EACCES 0 /* Access denied */
51 #define A_ENOENT 10 /* No such entry, search failed, etc. */
52 #define A_EEXIST 11 /* The object already exists
54 #define A_EFAULT 12 /* Bad address fault */
55 #define A_EBUSY 13 /* Object is busy */
56 #define A_EINVAL 14 /* Invalid parameter */
57 #define A_EMSGSIZE 15 /* Bad message buffer length */
58 #define A_ECANCELED 16 /* Operation canceled */
59 #define A_ENOTSUP 17 /* Operation not supported */
60 #define A_ECOMM 18 /* Communication error on send */
61 #define A_EPROTO 19 /* Protocol error */
62 #define A_ENODEV 20 /* No such device */
63 #define A_EDEVNOTUP 21 /* device is not UP */
64 #define A_NO_RESOURCE 22 /* No resources for
65 * requested operation */
66 #define A_HARDWARE 23 /* Hardware failure */
67 #define A_PENDING 24 /* Asynchronous routine; will send up
69 * (typically in callback) */
70 #define A_EBADCHANNEL 25 /* The channel cannot be used */
71 #define A_DECRYPT_ERROR 26 /* Decryption error */
72 #define A_PHY_ERROR 27 /* RX PHY error */
73 #define A_CONSUMED 28 /* Object was consumed */
75 #endif /* __ATHDEFS_H__ */