brcm47xx: when detecting a ssb pci device without an own sprom write the sprom data...
[openwrt.git] / target / linux / s3c24xx / files-2.6.30 / drivers / ar6000 / include / athdefs.h
1 #ifndef __ATHDEFS_H__
2 #define __ATHDEFS_H__
3
4 /*
5 * Copyright (c) 2004-2007 Atheros Communications Inc.
6 * All rights reserved.
7 *
8 * $ATH_LICENSE_HOSTSDK0_C$
9 *
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.
13 */
14
15 /*
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.
19 */
20
21 typedef enum {
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 */
54 } A_STATUS;
55
56 #define A_SUCCESS(x) (x == A_OK)
57 #define A_FAILED(x) (!A_SUCCESS(x))
58
59 #ifndef TRUE
60 #define TRUE 1
61 #endif
62
63 #ifndef FALSE
64 #define FALSE 0
65 #endif
66
67 /*
68 * The following definition is WLAN specific definition
69 */
70 typedef enum {
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 */
75 MODE_UNKNOWN = 4,
76 MODE_MAX = 4
77 } WLAN_PHY_MODE;
78
79 typedef enum {
80 WLAN_11A_CAPABILITY = 1,
81 WLAN_11G_CAPABILITY = 2,
82 WLAN_11AG_CAPABILITY = 3,
83 }WLAN_CAPABILITY;
84
85 #endif /* __ATHDEFS_H__ */
This page took 0.063858 seconds and 5 git commands to generate.