5 * Copyright (c) 2004-2007 Atheros Communications Inc.
8 * $ATH_LICENSE_HOSTSDK0_C$
10 * This file contains definitions that may be used across both
11 * Host and Target software. Nothing here is module-dependent
12 * or platform-dependent.
16 * Generic error codes that can be used by hw, sta, ap, sim, dk
17 * and any other environments. Since these are enums, feel free to
18 * add any more codes that you need.
22 A_ERROR
= -1, /* Generic error return */
23 A_OK
= 0, /* success */
24 /* Following values start at 1 */
25 A_DEVICE_NOT_FOUND
, /* not able to find PCI device */
26 A_NO_MEMORY
, /* not able to allocate memory, not available */
27 A_MEMORY_NOT_AVAIL
, /* memory region is not free for mapping */
28 A_NO_FREE_DESC
, /* no free descriptors available */
29 A_BAD_ADDRESS
, /* address does not match descriptor */
30 A_WIN_DRIVER_ERROR
, /* used in NT_HW version, if problem at init */
31 A_REGS_NOT_MAPPED
, /* registers not correctly mapped */
32 A_EPERM
, /* Not superuser */
33 A_EACCES
, /* Access denied */
34 A_ENOENT
, /* No such entry, search failed, etc. */
35 A_EEXIST
, /* The object already exists (can't create) */
36 A_EFAULT
, /* Bad address fault */
37 A_EBUSY
, /* Object is busy */
38 A_EINVAL
, /* Invalid parameter */
39 A_EMSGSIZE
, /* Inappropriate message buffer length */
40 A_ECANCELED
, /* Operation canceled */
41 A_ENOTSUP
, /* Operation not supported */
42 A_ECOMM
, /* Communication error on send */
43 A_EPROTO
, /* Protocol error */
44 A_ENODEV
, /* No such device */
45 A_EDEVNOTUP
, /* device is not UP */
46 A_NO_RESOURCE
, /* No resources for requested operation */
47 A_HARDWARE
, /* Hardware failure */
48 A_PENDING
, /* Asynchronous routine; will send up results la
49 ter (typically in callback) */
50 A_EBADCHANNEL
, /* The channel cannot be used */
51 A_DECRYPT_ERROR
, /* Decryption error */
52 A_PHY_ERROR
, /* RX PHY error */
53 A_CONSUMED
/* Object was consumed */
56 #define A_SUCCESS(x) (x == A_OK)
57 #define A_FAILED(x) (!A_SUCCESS(x))
68 * The following definition is WLAN specific definition
71 MODE_11A
= 0, /* 11a Mode */
72 MODE_11G
= 1, /* 11g + 11b Mode */
73 MODE_11B
= 2, /* 11b Mode */
74 MODE_11GONLY
= 3, /* 11g only Mode */
80 WLAN_11A_CAPABILITY
= 1,
81 WLAN_11G_CAPABILITY
= 2,
82 WLAN_11AG_CAPABILITY
= 3,
85 #endif /* __ATHDEFS_H__ */
This page took 0.049627 seconds and 5 git commands to generate.