wlan_compat.h File Reference

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_I386CORE   1
#define WLAN_PPCCORE   2
#define WLAN_I296   3
#define WLAN_ARMCORE   4
#define WLAN_ALPHACORE   5
#define WLAN_MIPSCORE   6
#define WLAN_HPPACORE   7
#define WLAN_I386PART   1
#define WLAN_MPC860   2
#define WLAN_MPC823   3
#define WLAN_I296SA   4
#define WLAN_PPCPART   5
#define WLAN_ARMPART   6
#define WLAN_ALPHAPART   7
#define WLAN_MIPSPART   8
#define WLAN_HPPAPART   9
#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_LINUX_KERNEL   1
#define WLAN_LINUX_USER   2
#define WLAN_PCMCIA   1
#define WLAN_ISA   2
#define WLAN_PCI   3
#define WLAN_USB   4
#define WLAN_PLX   5
#define WLAN_OS   WLAN_LINUX_USER
#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_PRAGMA_PACK1__
#define __WLAN_PRAGMA_PACKDFLT__
#define __WLAN_INLINE__   inline
#define WLAN_MIN_ARRAY   0
#define WLAN_DBVAR   wlan_debug
#define WLAN_LOG_ERROR0(s)
#define WLAN_LOG_ERROR1(s, n)
#define WLAN_LOG_ERROR2(s, n1, n2)
#define WLAN_LOG_ERROR3(s, n1, n2, n3)
#define WLAN_LOG_ERROR4(s, n1, n2, n3, n4)
#define WLAN_LOG_WARNING0(s)
#define WLAN_LOG_WARNING1(s, n)
#define WLAN_LOG_WARNING2(s, n1, n2)
#define WLAN_LOG_WARNING3(s, n1, n2, n3)
#define WLAN_LOG_WARNING4(s, n1, n2, n3, n4)
#define WLAN_LOG_NOTICE0(s)
#define WLAN_LOG_NOTICE1(s, n)
#define WLAN_LOG_NOTICE2(s, n1, n2)
#define WLAN_LOG_NOTICE3(s, n1, n2, n3)
#define WLAN_LOG_NOTICE4(s, n1, n2, n3, n4)
#define WLAN_ASSERT(c)
#define WLAN_HEX_DUMP(l, s, p, n)
#define DBFENTER
#define DBFEXIT
#define WLAN_LOG_INFO0(s)
#define WLAN_LOG_INFO1(s, n)
#define WLAN_LOG_INFO2(s, n1, n2)
#define WLAN_LOG_INFO3(s, n1, n2, n3)
#define WLAN_LOG_INFO4(s, n1, n2, n3, n4)
#define WLAN_LOG_INFO5(s, n1, n2, n3, n4, n5)
#define WLAN_LOG_DEBUG0(l, s)
#define WLAN_LOG_DEBUG1(l, s, n)
#define WLAN_LOG_DEBUG2(l, s, n1, n2)
#define WLAN_LOG_DEBUG3(l, s, n1, n2, n3)
#define WLAN_LOG_DEBUG4(l, s, n1, n2, n3, n4)
#define WLAN_LOG_DEBUG5(l, s, n1, n2, n3, n4, n5)
#define wlan_ms_per_tick   (1000UL / (wlan_ticks_per_sec))
#define wlan_ms_to_ticks(n)   ( (n) / (wlan_ms_per_tick))
#define wlan_tu2ticks(n)   ( (n) / (wlan_ms_per_tick))
#define WLAN_INT_DISABLE(n)   { save_flags((n)); cli(); }
#define WLAN_INT_ENABLE(n)   { sti(); restore_flags((n)); }
#define KERNEL_VERSION(a, b, c)   (((a) << 16) + ((b) << 8) + (c))
#define init_waitqueue_head(p)   (*(p) = NULL)
#define set_current_state(b)   { current->state = (b); mb(); }
#define init_waitqueue_entry(a, b)   { (a)->task = current; }
#define __wait_event_interruptible_timeout(wq, condition, timeout, ret)
#define wait_event_interruptible_timeout(wq, condition, timeout)
#define spin_lock(l)   do { } while (0)
#define spin_unlock(l)   do { } while (0)
#define spin_lock_irqsave(l, f)   do { save_flags(f); cli(); } while (0)
#define spin_unlock_irqrestore(l, f)   do { restore_flags(f); } while (0)
#define spin_lock_init(s)   do { } while (0)
#define spin_trylock(l)   (1)
#define spin_is_locked(l)   (0)
#define MODULE_PARM(a, b)   extern int __bogus_decl
#define MODULE_AUTHOR(a)   extern int __bogus_decl
#define MODULE_DESCRIPTION(a)   extern int __bogus_decl
#define MODULE_SUPPORTED_DEVICE(a)   extern int __bogus_decl
#define GET_USE_COUNT(m)   mod_use_count_
#define MODULE_LICENSE(m)   extern int __bogus_decl
#define MODULE_DEVICE_TABLE(foo, bar)
#define wlan_minutes2ticks(a)   ((a)*(wlan_ticks_per_sec * 60))
#define wlan_seconds2ticks(a)   ((a)*(wlan_ticks_per_sec))
#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 unsigned char UINT8
typedef unsigned short UINT16
typedef unsigned long UINT32
typedef signed char INT8
typedef signed short INT16
typedef signed long INT32
typedef unsigned int UINT
typedef signed int INT
typedef unsigned long long UINT64
typedef signed long long INT64
typedef struct wait_queue * wait_queue_head_t
typedef struct wait_queue wait_queue_t
typedef int spinlock_t
typedef struct device netdevice_t

Functions

 FILE_LICENCE (GPL2_ONLY)

Variables

int wlan_debug
int wlan_ethconv


Define Documentation

#define WLAN_Ix86   1

Definition at line 58 of file wlan_compat.h.

#define WLAN_PPC   2

Definition at line 59 of file wlan_compat.h.

#define WLAN_Ix96   3

Definition at line 60 of file wlan_compat.h.

#define WLAN_ARM   4

Definition at line 61 of file wlan_compat.h.

#define WLAN_ALPHA   5

Definition at line 62 of file wlan_compat.h.

#define WLAN_MIPS   6

Definition at line 63 of file wlan_compat.h.

#define WLAN_HPPA   7

Definition at line 64 of file wlan_compat.h.

#define WLAN_I386CORE   1

Definition at line 66 of file wlan_compat.h.

#define WLAN_PPCCORE   2

Definition at line 67 of file wlan_compat.h.

#define WLAN_I296   3

Definition at line 68 of file wlan_compat.h.

#define WLAN_ARMCORE   4

Definition at line 69 of file wlan_compat.h.

#define WLAN_ALPHACORE   5

Definition at line 70 of file wlan_compat.h.

#define WLAN_MIPSCORE   6

Definition at line 71 of file wlan_compat.h.

#define WLAN_HPPACORE   7

Definition at line 72 of file wlan_compat.h.

#define WLAN_I386PART   1

Definition at line 74 of file wlan_compat.h.

#define WLAN_MPC860   2

Definition at line 75 of file wlan_compat.h.

#define WLAN_MPC823   3

Definition at line 76 of file wlan_compat.h.

#define WLAN_I296SA   4

Definition at line 77 of file wlan_compat.h.

#define WLAN_PPCPART   5

Definition at line 78 of file wlan_compat.h.

#define WLAN_ARMPART   6

Definition at line 79 of file wlan_compat.h.

#define WLAN_ALPHAPART   7

Definition at line 80 of file wlan_compat.h.

#define WLAN_MIPSPART   8

Definition at line 81 of file wlan_compat.h.

#define WLAN_HPPAPART   9

Definition at line 82 of file wlan_compat.h.

#define WLAN_PCAT   1

Definition at line 84 of file wlan_compat.h.

#define WLAN_MBX   2

Definition at line 85 of file wlan_compat.h.

#define WLAN_RPX   3

Definition at line 86 of file wlan_compat.h.

#define WLAN_LWARCH   4

Definition at line 87 of file wlan_compat.h.

#define WLAN_PMAC   5

Definition at line 88 of file wlan_compat.h.

#define WLAN_SKIFF   6

Definition at line 89 of file wlan_compat.h.

#define WLAN_BITSY   7

Definition at line 90 of file wlan_compat.h.

#define WLAN_ALPHAARCH   7

Definition at line 91 of file wlan_compat.h.

#define WLAN_MIPSARCH   9

Definition at line 92 of file wlan_compat.h.

#define WLAN_HPPAARCH   10

Definition at line 93 of file wlan_compat.h.

#define WLAN_LINUX_KERNEL   1

Definition at line 95 of file wlan_compat.h.

#define WLAN_LINUX_USER   2

Definition at line 96 of file wlan_compat.h.

#define WLAN_PCMCIA   1

Definition at line 98 of file wlan_compat.h.

#define WLAN_ISA   2

Definition at line 99 of file wlan_compat.h.

#define WLAN_PCI   3

Definition at line 100 of file wlan_compat.h.

#define WLAN_USB   4

Definition at line 101 of file wlan_compat.h.

#define WLAN_PLX   5

Definition at line 102 of file wlan_compat.h.

#define WLAN_OS   WLAN_LINUX_USER

Definition at line 113 of file wlan_compat.h.

#define BIT0   0x00000001

Definition at line 196 of file wlan_compat.h.

#define BIT1   0x00000002

Definition at line 197 of file wlan_compat.h.

#define BIT2   0x00000004

Definition at line 198 of file wlan_compat.h.

#define BIT3   0x00000008

Definition at line 199 of file wlan_compat.h.

#define BIT4   0x00000010

Definition at line 200 of file wlan_compat.h.

#define BIT5   0x00000020

Definition at line 201 of file wlan_compat.h.

#define BIT6   0x00000040

Definition at line 202 of file wlan_compat.h.

#define BIT7   0x00000080

Definition at line 203 of file wlan_compat.h.

#define BIT8   0x00000100

Definition at line 204 of file wlan_compat.h.

#define BIT9   0x00000200

Definition at line 205 of file wlan_compat.h.

#define BIT10   0x00000400

Definition at line 206 of file wlan_compat.h.

#define BIT11   0x00000800

Definition at line 207 of file wlan_compat.h.

#define BIT12   0x00001000

Definition at line 208 of file wlan_compat.h.

#define BIT13   0x00002000

Definition at line 209 of file wlan_compat.h.

#define BIT14   0x00004000

Definition at line 210 of file wlan_compat.h.

#define BIT15   0x00008000

Definition at line 211 of file wlan_compat.h.

#define BIT16   0x00010000

Definition at line 212 of file wlan_compat.h.

#define BIT17   0x00020000

Definition at line 213 of file wlan_compat.h.

#define BIT18   0x00040000

Definition at line 214 of file wlan_compat.h.

#define BIT19   0x00080000

Definition at line 215 of file wlan_compat.h.

#define BIT20   0x00100000

Definition at line 216 of file wlan_compat.h.

#define BIT21   0x00200000

Definition at line 217 of file wlan_compat.h.

#define BIT22   0x00400000

Definition at line 218 of file wlan_compat.h.

#define BIT23   0x00800000

Definition at line 219 of file wlan_compat.h.

#define BIT24   0x01000000

Definition at line 220 of file wlan_compat.h.

#define BIT25   0x02000000

Definition at line 221 of file wlan_compat.h.

#define BIT26   0x04000000

Definition at line 222 of file wlan_compat.h.

#define BIT27   0x08000000

Definition at line 223 of file wlan_compat.h.

#define BIT28   0x10000000

Definition at line 224 of file wlan_compat.h.

#define BIT29   0x20000000

Definition at line 225 of file wlan_compat.h.

#define BIT30   0x40000000

Definition at line 226 of file wlan_compat.h.

#define BIT31   0x80000000

Definition at line 227 of file wlan_compat.h.

#define UINT8_MAX   (0xffUL)

Definition at line 243 of file wlan_compat.h.

#define UINT16_MAX   (0xffffUL)

Definition at line 244 of file wlan_compat.h.

#define UINT32_MAX   (0xffffffffUL)

Definition at line 245 of file wlan_compat.h.

#define INT8_MAX   (0x7fL)

Definition at line 247 of file wlan_compat.h.

#define INT16_MAX   (0x7fffL)

Definition at line 248 of file wlan_compat.h.

#define INT32_MAX   (0x7fffffffL)

Definition at line 249 of file wlan_compat.h.

#define __WLAN_ATTRIB_PACK__   __attribute__ ((packed))

Definition at line 254 of file wlan_compat.h.

#define __WLAN_PRAGMA_PACK1__

Definition at line 255 of file wlan_compat.h.

#define __WLAN_PRAGMA_PACKDFLT__

Definition at line 256 of file wlan_compat.h.

#define __WLAN_INLINE__   inline

Definition at line 257 of file wlan_compat.h.

#define WLAN_MIN_ARRAY   0

Definition at line 258 of file wlan_compat.h.

#define WLAN_DBVAR   wlan_debug

Definition at line 265 of file wlan_compat.h.

#define WLAN_LOG_ERROR0 (  ) 

Definition at line 329 of file wlan_compat.h.

#define WLAN_LOG_ERROR1 ( s,
 ) 

Definition at line 330 of file wlan_compat.h.

#define WLAN_LOG_ERROR2 ( s,
n1,
n2   ) 

Definition at line 331 of file wlan_compat.h.

#define WLAN_LOG_ERROR3 ( s,
n1,
n2,
n3   ) 

Definition at line 332 of file wlan_compat.h.

#define WLAN_LOG_ERROR4 ( s,
n1,
n2,
n3,
n4   ) 

Definition at line 333 of file wlan_compat.h.

#define WLAN_LOG_WARNING0 (  ) 

Definition at line 335 of file wlan_compat.h.

#define WLAN_LOG_WARNING1 ( s,
 ) 

Definition at line 336 of file wlan_compat.h.

#define WLAN_LOG_WARNING2 ( s,
n1,
n2   ) 

Definition at line 337 of file wlan_compat.h.

#define WLAN_LOG_WARNING3 ( s,
n1,
n2,
n3   ) 

Definition at line 338 of file wlan_compat.h.

#define WLAN_LOG_WARNING4 ( s,
n1,
n2,
n3,
n4   ) 

Definition at line 339 of file wlan_compat.h.

#define WLAN_LOG_NOTICE0 (  ) 

Definition at line 341 of file wlan_compat.h.

#define WLAN_LOG_NOTICE1 ( s,
 ) 

Definition at line 342 of file wlan_compat.h.

#define WLAN_LOG_NOTICE2 ( s,
n1,
n2   ) 

Definition at line 343 of file wlan_compat.h.

#define WLAN_LOG_NOTICE3 ( s,
n1,
n2,
n3   ) 

Definition at line 344 of file wlan_compat.h.

#define WLAN_LOG_NOTICE4 ( s,
n1,
n2,
n3,
n4   ) 

Definition at line 345 of file wlan_compat.h.

#define WLAN_ASSERT (  ) 

Definition at line 347 of file wlan_compat.h.

#define WLAN_HEX_DUMP ( l,
s,
p,
 ) 

Definition at line 348 of file wlan_compat.h.

#define DBFENTER

Definition at line 350 of file wlan_compat.h.

#define DBFEXIT

Definition at line 351 of file wlan_compat.h.

#define WLAN_LOG_INFO0 (  ) 

Definition at line 353 of file wlan_compat.h.

#define WLAN_LOG_INFO1 ( s,
 ) 

Definition at line 354 of file wlan_compat.h.

#define WLAN_LOG_INFO2 ( s,
n1,
n2   ) 

Definition at line 355 of file wlan_compat.h.

#define WLAN_LOG_INFO3 ( s,
n1,
n2,
n3   ) 

Definition at line 356 of file wlan_compat.h.

#define WLAN_LOG_INFO4 ( s,
n1,
n2,
n3,
n4   ) 

Definition at line 357 of file wlan_compat.h.

#define WLAN_LOG_INFO5 ( s,
n1,
n2,
n3,
n4,
n5   ) 

Definition at line 358 of file wlan_compat.h.

#define WLAN_LOG_DEBUG0 ( l,
 ) 

Definition at line 360 of file wlan_compat.h.

#define WLAN_LOG_DEBUG1 ( l,
s,
 ) 

Definition at line 361 of file wlan_compat.h.

#define WLAN_LOG_DEBUG2 ( l,
s,
n1,
n2   ) 

Definition at line 362 of file wlan_compat.h.

#define WLAN_LOG_DEBUG3 ( l,
s,
n1,
n2,
n3   ) 

Definition at line 363 of file wlan_compat.h.

#define WLAN_LOG_DEBUG4 ( l,
s,
n1,
n2,
n3,
n4   ) 

Definition at line 364 of file wlan_compat.h.

#define WLAN_LOG_DEBUG5 ( l,
s,
n1,
n2,
n3,
n4,
n5   ) 

Definition at line 365 of file wlan_compat.h.

#define wlan_ms_per_tick   (1000UL / (wlan_ticks_per_sec))

Definition at line 368 of file wlan_compat.h.

#define wlan_ms_to_ticks (  )     ( (n) / (wlan_ms_per_tick))

Definition at line 369 of file wlan_compat.h.

#define wlan_tu2ticks (  )     ( (n) / (wlan_ms_per_tick))

Definition at line 370 of file wlan_compat.h.

#define WLAN_INT_DISABLE (  )     { save_flags((n)); cli(); }

Definition at line 371 of file wlan_compat.h.

#define WLAN_INT_ENABLE (  )     { sti(); restore_flags((n)); }

Definition at line 372 of file wlan_compat.h.

#define KERNEL_VERSION ( a,
b,
 )     (((a) << 16) + ((b) << 8) + (c))

Definition at line 384 of file wlan_compat.h.

#define init_waitqueue_head (  )     (*(p) = NULL)

Definition at line 398 of file wlan_compat.h.

#define set_current_state (  )     { current->state = (b); mb(); }

Definition at line 404 of file wlan_compat.h.

#define init_waitqueue_entry ( a,
 )     { (a)->task = current; }

Definition at line 405 of file wlan_compat.h.

#define __wait_event_interruptible_timeout ( wq,
condition,
timeout,
ret   ) 

Value:

do {                                                                      \
        int __ret = 0;                                                    \
        if (!(condition)) {                                               \
          wait_queue_t __wait;                                            \
          unsigned long expire;                                           \
          init_waitqueue_entry(&__wait, current);                         \
                                                                          \
          expire = timeout + jiffies;                                     \
          add_wait_queue(&wq, &__wait);                                   \
          for (;;) {                                                      \
                  set_current_state(TASK_INTERRUPTIBLE);                  \
                  if (condition)                                          \
                          break;                                          \
                  if (jiffies > expire) {                                 \
                          ret = jiffies - expire;                         \
                          break;                                          \
                  }                                                       \
                  if (!signal_pending(current)) {                         \
                          schedule_timeout(timeout);                      \
                          continue;                                       \
                  }                                                       \
                  ret = -ERESTARTSYS;                                     \
                  break;                                                  \
          }                                                               \
          set_current_state(TASK_RUNNING);                                \
          remove_wait_queue(&wq, &__wait);                                \
        }                                                                 \
} while (0)

Definition at line 413 of file wlan_compat.h.

#define wait_event_interruptible_timeout ( wq,
condition,
timeout   ) 

Value:

({                                                                      \
        int __ret = 0;                                                  \
        if (!(condition))                                               \
                __wait_event_interruptible_timeout(wq, condition,       \
                                                timeout, __ret);        \
        __ret;                                                          \
})

Definition at line 443 of file wlan_compat.h.

#define spin_lock (  )     do { } while (0)

Definition at line 455 of file wlan_compat.h.

#define spin_unlock (  )     do { } while (0)

Definition at line 456 of file wlan_compat.h.

#define spin_lock_irqsave ( l,
 )     do { save_flags(f); cli(); } while (0)

Definition at line 457 of file wlan_compat.h.

#define spin_unlock_irqrestore ( l,
 )     do { restore_flags(f); } while (0)

Definition at line 458 of file wlan_compat.h.

#define spin_lock_init (  )     do { } while (0)

Definition at line 459 of file wlan_compat.h.

#define spin_trylock (  )     (1)

Definition at line 460 of file wlan_compat.h.

#define spin_is_locked (  )     (0)

Definition at line 468 of file wlan_compat.h.

#define MODULE_PARM ( a,
 )     extern int __bogus_decl

Definition at line 493 of file wlan_compat.h.

#define MODULE_AUTHOR (  )     extern int __bogus_decl

Definition at line 494 of file wlan_compat.h.

#define MODULE_DESCRIPTION (  )     extern int __bogus_decl

Definition at line 495 of file wlan_compat.h.

#define MODULE_SUPPORTED_DEVICE (  )     extern int __bogus_decl

Definition at line 496 of file wlan_compat.h.

#define GET_USE_COUNT (  )     mod_use_count_

Definition at line 498 of file wlan_compat.h.

#define MODULE_LICENSE (  )     extern int __bogus_decl

Definition at line 502 of file wlan_compat.h.

#define MODULE_DEVICE_TABLE ( foo,
bar   ) 

Definition at line 507 of file wlan_compat.h.

#define wlan_minutes2ticks (  )     ((a)*(wlan_ticks_per_sec * 60))

Definition at line 510 of file wlan_compat.h.

#define wlan_seconds2ticks (  )     ((a)*(wlan_ticks_per_sec))

Definition at line 511 of file wlan_compat.h.

#define ieee2host16 (  )     __le16_to_cpu(n)

Definition at line 517 of file wlan_compat.h.

#define ieee2host32 (  )     __le32_to_cpu(n)

Definition at line 518 of file wlan_compat.h.

#define host2ieee16 (  )     __cpu_to_le16(n)

Definition at line 519 of file wlan_compat.h.

Referenced by prism2_transmit().

#define host2ieee32 (  )     __cpu_to_le32(n)

Definition at line 520 of file wlan_compat.h.

#define wlan_inw (  )     inw((a))

Definition at line 528 of file wlan_compat.h.

#define wlan_inw_le16_to_cpu (  )     __cpu_to_le16(inw((a)))

Definition at line 529 of file wlan_compat.h.

#define wlan_outw ( v,
 )     outw((v),(a))

Definition at line 530 of file wlan_compat.h.

#define wlan_outw_cpu_to_le16 ( v,
 )     outw(__cpu_to_le16((v)),(a))

Definition at line 531 of file wlan_compat.h.

#define wlan_max ( a,
 )     (((a) > (b)) ? (a) : (b))

Definition at line 538 of file wlan_compat.h.

#define wlan_min ( a,
 )     (((a) < (b)) ? (a) : (b))

Definition at line 539 of file wlan_compat.h.

#define wlan_isprint (  )     (((c) > (0x19)) && ((c) < (0x7f)))

Definition at line 541 of file wlan_compat.h.

#define wlan_hexchar (  )     (((x) < 0x0a) ? ('0' + (x)) : ('a' + ((x) - 0x0a)))

Definition at line 543 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 547 of file wlan_compat.h.


Typedef Documentation

typedef unsigned char UINT8

Definition at line 229 of file wlan_compat.h.

typedef unsigned short UINT16

Definition at line 230 of file wlan_compat.h.

typedef unsigned long UINT32

Definition at line 231 of file wlan_compat.h.

typedef signed char INT8

Definition at line 233 of file wlan_compat.h.

typedef signed short INT16

Definition at line 234 of file wlan_compat.h.

typedef signed long INT32

Definition at line 235 of file wlan_compat.h.

typedef unsigned int UINT

Definition at line 237 of file wlan_compat.h.

typedef signed int INT

Definition at line 238 of file wlan_compat.h.

typedef unsigned long long UINT64

Definition at line 240 of file wlan_compat.h.

typedef signed long long INT64

Definition at line 241 of file wlan_compat.h.

typedef struct wait_queue* wait_queue_head_t

Definition at line 402 of file wlan_compat.h.

typedef struct wait_queue wait_queue_t

Definition at line 403 of file wlan_compat.h.

typedef int spinlock_t

Definition at line 461 of file wlan_compat.h.

typedef struct device netdevice_t

Definition at line 473 of file wlan_compat.h.


Function Documentation

FILE_LICENCE ( GPL2_ONLY   ) 


Variable Documentation


Generated on Tue Apr 6 20:01:46 2010 for gPXE by  doxygen 1.5.7.1