#include <linux/types.h>
Go to the source code of this file.
Defines | |
#define | WLAN_Ix86 1 |
#define | WLAN_PPC 2 |
#define | WLAN_Ix96 3 |
#define | WLAN_ARM 4 |
#define | WLAN_ALPHA 5 |
#define | WLAN_MIPS 6 |
#define | WLAN_HPPA 7 |
#define | WLAN_SPARC 8 |
#define | WLAN_SH 9 |
#define | WLAN_x86_64 10 |
#define | WLAN_PCAT 1 |
#define | WLAN_MBX 2 |
#define | WLAN_RPX 3 |
#define | WLAN_LWARCH 4 |
#define | WLAN_PMAC 5 |
#define | WLAN_SKIFF 6 |
#define | WLAN_BITSY 7 |
#define | WLAN_ALPHAARCH 7 |
#define | WLAN_MIPSARCH 9 |
#define | WLAN_HPPAARCH 10 |
#define | WLAN_SPARCARCH 11 |
#define | WLAN_SHARCH 12 |
#define | BIT0 0x00000001 |
#define | BIT1 0x00000002 |
#define | BIT2 0x00000004 |
#define | BIT3 0x00000008 |
#define | BIT4 0x00000010 |
#define | BIT5 0x00000020 |
#define | BIT6 0x00000040 |
#define | BIT7 0x00000080 |
#define | BIT8 0x00000100 |
#define | BIT9 0x00000200 |
#define | BIT10 0x00000400 |
#define | BIT11 0x00000800 |
#define | BIT12 0x00001000 |
#define | BIT13 0x00002000 |
#define | BIT14 0x00004000 |
#define | BIT15 0x00008000 |
#define | BIT16 0x00010000 |
#define | BIT17 0x00020000 |
#define | BIT18 0x00040000 |
#define | BIT19 0x00080000 |
#define | BIT20 0x00100000 |
#define | BIT21 0x00200000 |
#define | BIT22 0x00400000 |
#define | BIT23 0x00800000 |
#define | BIT24 0x01000000 |
#define | BIT25 0x02000000 |
#define | BIT26 0x04000000 |
#define | BIT27 0x08000000 |
#define | BIT28 0x10000000 |
#define | BIT29 0x20000000 |
#define | BIT30 0x40000000 |
#define | BIT31 0x80000000 |
#define | UINT8_MAX (0xffUL) |
#define | UINT16_MAX (0xffffUL) |
#define | UINT32_MAX (0xffffffffUL) |
#define | INT8_MAX (0x7fL) |
#define | INT16_MAX (0x7fffL) |
#define | INT32_MAX (0x7fffffffL) |
#define | __WLAN_ATTRIB_PACK__ __attribute__ ((packed)) |
#define | WLAN_DBVAR wlan_debug |
#define | KERNEL_VERSION(a, b, c) (((a) << 16) + ((b) << 8) + (c)) |
#define | WLAN_LOG_ERROR(x, args...) printk(KERN_ERR "%s: " x , __FUNCTION__ , ##args); |
#define | WLAN_LOG_WARNING(x, args...) printk(KERN_WARNING "%s: " x , __FUNCTION__ , ##args); |
#define | WLAN_LOG_NOTICE(x, args...) printk(KERN_NOTICE "%s: " x , __FUNCTION__ , ##args); |
#define | WLAN_LOG_INFO(args...) printk(KERN_INFO args) |
#define | WLAN_ASSERT(c) |
#define | WLAN_HEX_DUMP(l, s, p, n) |
#define | DBFENTER |
#define | DBFEXIT |
#define | WLAN_LOG_DEBUG(l, s, args...) |
#define | ieee2host16(n) __le16_to_cpu(n) |
#define | ieee2host32(n) __le32_to_cpu(n) |
#define | host2ieee16(n) __cpu_to_le16(n) |
#define | host2ieee32(n) __cpu_to_le32(n) |
#define | wlan_inw(a) inw((a)) |
#define | wlan_inw_le16_to_cpu(a) __cpu_to_le16(inw((a))) |
#define | wlan_outw(v, a) outw((v),(a)) |
#define | wlan_outw_cpu_to_le16(v, a) outw(__cpu_to_le16((v)),(a)) |
#define | wlan_max(a, b) (((a) > (b)) ? (a) : (b)) |
#define | wlan_min(a, b) (((a) < (b)) ? (a) : (b)) |
#define | wlan_isprint(c) (((c) > (0x19)) && ((c) < (0x7f))) |
#define | wlan_hexchar(x) (((x) < 0x0a) ? ('0' + (x)) : ('a' + ((x) - 0x0a))) |
#define | wlan_mkprintstr(buf, buflen, str, strlen) |
Typedefs | |
typedef u_int8_t | UINT8 |
typedef u_int16_t | UINT16 |
typedef u_int32_t | UINT32 |
typedef int8_t | INT8 |
typedef int16_t | INT16 |
typedef int32_t | INT32 |
typedef unsigned int | UINT |
typedef signed int | INT |
typedef u_int64_t | UINT64 |
typedef int64_t | INT64 |
typedef UINT32 | phys_t |
Variables | |
int | wlan_ethconv |
#define WLAN_Ix86 1 |
Definition at line 56 of file wlan_compat.h.
#define WLAN_PPC 2 |
Definition at line 57 of file wlan_compat.h.
#define WLAN_Ix96 3 |
Definition at line 58 of file wlan_compat.h.
#define WLAN_ARM 4 |
Definition at line 59 of file wlan_compat.h.
#define WLAN_ALPHA 5 |
Definition at line 60 of file wlan_compat.h.
#define WLAN_MIPS 6 |
Definition at line 61 of file wlan_compat.h.
#define WLAN_HPPA 7 |
Definition at line 62 of file wlan_compat.h.
#define WLAN_SPARC 8 |
Definition at line 63 of file wlan_compat.h.
#define WLAN_SH 9 |
Definition at line 64 of file wlan_compat.h.
#define WLAN_x86_64 10 |
Definition at line 65 of file wlan_compat.h.
#define WLAN_PCAT 1 |
Definition at line 67 of file wlan_compat.h.
#define WLAN_MBX 2 |
Definition at line 68 of file wlan_compat.h.
#define WLAN_RPX 3 |
Definition at line 69 of file wlan_compat.h.
#define WLAN_LWARCH 4 |
Definition at line 70 of file wlan_compat.h.
#define WLAN_PMAC 5 |
Definition at line 71 of file wlan_compat.h.
#define WLAN_SKIFF 6 |
Definition at line 72 of file wlan_compat.h.
#define WLAN_BITSY 7 |
Definition at line 73 of file wlan_compat.h.
#define WLAN_ALPHAARCH 7 |
Definition at line 74 of file wlan_compat.h.
#define WLAN_MIPSARCH 9 |
Definition at line 75 of file wlan_compat.h.
#define WLAN_HPPAARCH 10 |
Definition at line 76 of file wlan_compat.h.
#define WLAN_SPARCARCH 11 |
Definition at line 77 of file wlan_compat.h.
#define WLAN_SHARCH 12 |
Definition at line 78 of file wlan_compat.h.
#define BIT0 0x00000001 |
Definition at line 158 of file wlan_compat.h.
#define BIT1 0x00000002 |
Definition at line 159 of file wlan_compat.h.
#define BIT2 0x00000004 |
Definition at line 160 of file wlan_compat.h.
#define BIT3 0x00000008 |
Definition at line 161 of file wlan_compat.h.
#define BIT4 0x00000010 |
Definition at line 162 of file wlan_compat.h.
#define BIT5 0x00000020 |
Definition at line 163 of file wlan_compat.h.
#define BIT6 0x00000040 |
Definition at line 164 of file wlan_compat.h.
#define BIT7 0x00000080 |
Definition at line 165 of file wlan_compat.h.
#define BIT8 0x00000100 |
Definition at line 166 of file wlan_compat.h.
#define BIT9 0x00000200 |
Definition at line 167 of file wlan_compat.h.
#define BIT10 0x00000400 |
Definition at line 168 of file wlan_compat.h.
#define BIT11 0x00000800 |
Definition at line 169 of file wlan_compat.h.
#define BIT12 0x00001000 |
Definition at line 170 of file wlan_compat.h.
#define BIT13 0x00002000 |
Definition at line 171 of file wlan_compat.h.
#define BIT14 0x00004000 |
Definition at line 172 of file wlan_compat.h.
#define BIT15 0x00008000 |
Definition at line 173 of file wlan_compat.h.
#define BIT16 0x00010000 |
Definition at line 174 of file wlan_compat.h.
#define BIT17 0x00020000 |
Definition at line 175 of file wlan_compat.h.
#define BIT18 0x00040000 |
Definition at line 176 of file wlan_compat.h.
#define BIT19 0x00080000 |
Definition at line 177 of file wlan_compat.h.
#define BIT20 0x00100000 |
Definition at line 178 of file wlan_compat.h.
#define BIT21 0x00200000 |
Definition at line 179 of file wlan_compat.h.
#define BIT22 0x00400000 |
Definition at line 180 of file wlan_compat.h.
#define BIT23 0x00800000 |
Definition at line 181 of file wlan_compat.h.
#define BIT24 0x01000000 |
Definition at line 182 of file wlan_compat.h.
#define BIT25 0x02000000 |
Definition at line 183 of file wlan_compat.h.
#define BIT26 0x04000000 |
Definition at line 184 of file wlan_compat.h.
#define BIT27 0x08000000 |
Definition at line 185 of file wlan_compat.h.
#define BIT28 0x10000000 |
Definition at line 186 of file wlan_compat.h.
#define BIT29 0x20000000 |
Definition at line 187 of file wlan_compat.h.
#define BIT30 0x40000000 |
Definition at line 188 of file wlan_compat.h.
#define BIT31 0x80000000 |
Definition at line 189 of file wlan_compat.h.
#define UINT8_MAX (0xffUL) |
Definition at line 208 of file wlan_compat.h.
#define UINT16_MAX (0xffffUL) |
Definition at line 209 of file wlan_compat.h.
#define UINT32_MAX (0xffffffffUL) |
Definition at line 210 of file wlan_compat.h.
#define INT8_MAX (0x7fL) |
Definition at line 212 of file wlan_compat.h.
#define INT16_MAX (0x7fffL) |
Definition at line 213 of file wlan_compat.h.
#define INT32_MAX (0x7fffffffL) |
Definition at line 214 of file wlan_compat.h.
#define __WLAN_ATTRIB_PACK__ __attribute__ ((packed)) |
Definition at line 220 of file wlan_compat.h.
#define WLAN_DBVAR wlan_debug |
Definition at line 227 of file wlan_compat.h.
#define KERNEL_VERSION | ( | a, | |||
b, | |||||
c | ) | (((a) << 16) + ((b) << 8) + (c)) |
Definition at line 231 of file wlan_compat.h.
#define WLAN_LOG_ERROR | ( | x, | |||
args... | ) | printk(KERN_ERR "%s: " x , __FUNCTION__ , ##args); |
Definition at line 245 of file wlan_compat.h.
#define WLAN_LOG_WARNING | ( | x, | |||
args... | ) | printk(KERN_WARNING "%s: " x , __FUNCTION__ , ##args); |
Definition at line 247 of file wlan_compat.h.
#define WLAN_LOG_NOTICE | ( | x, | |||
args... | ) | printk(KERN_NOTICE "%s: " x , __FUNCTION__ , ##args); |
Definition at line 249 of file wlan_compat.h.
#define WLAN_LOG_INFO | ( | args... | ) | printk(KERN_INFO args) |
Definition at line 251 of file wlan_compat.h.
#define WLAN_ASSERT | ( | c | ) |
Definition at line 267 of file wlan_compat.h.
#define WLAN_HEX_DUMP | ( | l, | |||
s, | |||||
p, | |||||
n | ) |
Definition at line 268 of file wlan_compat.h.
#define DBFENTER |
Definition at line 269 of file wlan_compat.h.
#define DBFEXIT |
Definition at line 270 of file wlan_compat.h.
#define WLAN_LOG_DEBUG | ( | l, | |||
s, | |||||
args... | ) |
Definition at line 272 of file wlan_compat.h.
#define ieee2host16 | ( | n | ) | __le16_to_cpu(n) |
Definition at line 663 of file wlan_compat.h.
#define ieee2host32 | ( | n | ) | __le32_to_cpu(n) |
Definition at line 664 of file wlan_compat.h.
#define host2ieee16 | ( | n | ) | __cpu_to_le16(n) |
Definition at line 665 of file wlan_compat.h.
#define host2ieee32 | ( | n | ) | __cpu_to_le32(n) |
Definition at line 666 of file wlan_compat.h.
#define wlan_inw | ( | a | ) | inw((a)) |
Definition at line 678 of file wlan_compat.h.
#define wlan_inw_le16_to_cpu | ( | a | ) | __cpu_to_le16(inw((a))) |
Definition at line 679 of file wlan_compat.h.
#define wlan_outw | ( | v, | |||
a | ) | outw((v),(a)) |
Definition at line 680 of file wlan_compat.h.
#define wlan_outw_cpu_to_le16 | ( | v, | |||
a | ) | outw(__cpu_to_le16((v)),(a)) |
Definition at line 681 of file wlan_compat.h.
#define wlan_max | ( | a, | |||
b | ) | (((a) > (b)) ? (a) : (b)) |
Definition at line 688 of file wlan_compat.h.
#define wlan_min | ( | a, | |||
b | ) | (((a) < (b)) ? (a) : (b)) |
Definition at line 689 of file wlan_compat.h.
#define wlan_isprint | ( | c | ) | (((c) > (0x19)) && ((c) < (0x7f))) |
Definition at line 691 of file wlan_compat.h.
#define wlan_hexchar | ( | x | ) | (((x) < 0x0a) ? ('0' + (x)) : ('a' + ((x) - 0x0a))) |
Definition at line 693 of file wlan_compat.h.
#define wlan_mkprintstr | ( | buf, | |||
buflen, | |||||
str, | |||||
strlen | ) |
Value:
{ \ int i = 0; \ int j = 0; \ memset(str, 0, (strlen)); \ for (i = 0; i < (buflen); i++) { \ if ( wlan_isprint((buf)[i]) ) { \ (str)[j] = (buf)[i]; \ j++; \ } else { \ (str)[j] = '\\'; \ (str)[j+1] = 'x'; \ (str)[j+2] = wlan_hexchar(((buf)[i] & 0xf0) >> 4); \ (str)[j+3] = wlan_hexchar(((buf)[i] & 0x0f)); \ j += 4; \ } \ } \ }
Definition at line 697 of file wlan_compat.h.
typedef u_int8_t UINT8 |
Definition at line 193 of file wlan_compat.h.
typedef u_int16_t UINT16 |
Definition at line 194 of file wlan_compat.h.
typedef u_int32_t UINT32 |
Definition at line 195 of file wlan_compat.h.
typedef int8_t INT8 |
Definition at line 197 of file wlan_compat.h.
typedef int16_t INT16 |
Definition at line 198 of file wlan_compat.h.
typedef int32_t INT32 |
Definition at line 199 of file wlan_compat.h.
typedef unsigned int UINT |
Definition at line 201 of file wlan_compat.h.
typedef signed int INT |
Definition at line 202 of file wlan_compat.h.
typedef u_int64_t UINT64 |
Definition at line 204 of file wlan_compat.h.
typedef int64_t INT64 |
Definition at line 205 of file wlan_compat.h.
Definition at line 669 of file wlan_compat.h.
int wlan_ethconv |