iPXE
Macros | Typedefs | Functions | Variables
wlan_compat.h File Reference

Go to the source code of this file.

Macros

#define _WLAN_COMPAT_H
 
#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 __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 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
 

Macro Definition Documentation

◆ _WLAN_COMPAT_H

#define _WLAN_COMPAT_H

Definition at line 51 of file wlan_compat.h.

◆ WLAN_Ix86

#define WLAN_Ix86   1

Definition at line 58 of file wlan_compat.h.

◆ WLAN_PPC

#define WLAN_PPC   2

Definition at line 59 of file wlan_compat.h.

◆ WLAN_Ix96

#define WLAN_Ix96   3

Definition at line 60 of file wlan_compat.h.

◆ WLAN_ARM

#define WLAN_ARM   4

Definition at line 61 of file wlan_compat.h.

◆ WLAN_ALPHA

#define WLAN_ALPHA   5

Definition at line 62 of file wlan_compat.h.

◆ WLAN_MIPS

#define WLAN_MIPS   6

Definition at line 63 of file wlan_compat.h.

◆ WLAN_HPPA

#define WLAN_HPPA   7

Definition at line 64 of file wlan_compat.h.

◆ WLAN_I386CORE

#define WLAN_I386CORE   1

Definition at line 66 of file wlan_compat.h.

◆ WLAN_PPCCORE

#define WLAN_PPCCORE   2

Definition at line 67 of file wlan_compat.h.

◆ WLAN_I296

#define WLAN_I296   3

Definition at line 68 of file wlan_compat.h.

◆ WLAN_ARMCORE

#define WLAN_ARMCORE   4

Definition at line 69 of file wlan_compat.h.

◆ WLAN_ALPHACORE

#define WLAN_ALPHACORE   5

Definition at line 70 of file wlan_compat.h.

◆ WLAN_MIPSCORE

#define WLAN_MIPSCORE   6

Definition at line 71 of file wlan_compat.h.

◆ WLAN_HPPACORE

#define WLAN_HPPACORE   7

Definition at line 72 of file wlan_compat.h.

◆ WLAN_I386PART

#define WLAN_I386PART   1

Definition at line 74 of file wlan_compat.h.

◆ WLAN_MPC860

#define WLAN_MPC860   2

Definition at line 75 of file wlan_compat.h.

◆ WLAN_MPC823

#define WLAN_MPC823   3

Definition at line 76 of file wlan_compat.h.

◆ WLAN_I296SA

#define WLAN_I296SA   4

Definition at line 77 of file wlan_compat.h.

◆ WLAN_PPCPART

#define WLAN_PPCPART   5

Definition at line 78 of file wlan_compat.h.

◆ WLAN_ARMPART

#define WLAN_ARMPART   6

Definition at line 79 of file wlan_compat.h.

◆ WLAN_ALPHAPART

#define WLAN_ALPHAPART   7

Definition at line 80 of file wlan_compat.h.

◆ WLAN_MIPSPART

#define WLAN_MIPSPART   8

Definition at line 81 of file wlan_compat.h.

◆ WLAN_HPPAPART

#define WLAN_HPPAPART   9

Definition at line 82 of file wlan_compat.h.

◆ WLAN_PCAT

#define WLAN_PCAT   1

Definition at line 84 of file wlan_compat.h.

◆ WLAN_MBX

#define WLAN_MBX   2

Definition at line 85 of file wlan_compat.h.

◆ WLAN_RPX

#define WLAN_RPX   3

Definition at line 86 of file wlan_compat.h.

◆ WLAN_LWARCH

#define WLAN_LWARCH   4

Definition at line 87 of file wlan_compat.h.

◆ WLAN_PMAC

#define WLAN_PMAC   5

Definition at line 88 of file wlan_compat.h.

◆ WLAN_SKIFF

#define WLAN_SKIFF   6

Definition at line 89 of file wlan_compat.h.

◆ WLAN_BITSY

#define WLAN_BITSY   7

Definition at line 90 of file wlan_compat.h.

◆ WLAN_ALPHAARCH

#define WLAN_ALPHAARCH   7

Definition at line 91 of file wlan_compat.h.

◆ WLAN_MIPSARCH

#define WLAN_MIPSARCH   9

Definition at line 92 of file wlan_compat.h.

◆ WLAN_HPPAARCH

#define WLAN_HPPAARCH   10

Definition at line 93 of file wlan_compat.h.

◆ WLAN_LINUX_KERNEL

#define WLAN_LINUX_KERNEL   1

Definition at line 95 of file wlan_compat.h.

◆ WLAN_LINUX_USER

#define WLAN_LINUX_USER   2

Definition at line 96 of file wlan_compat.h.

◆ WLAN_PCMCIA

#define WLAN_PCMCIA   1

Definition at line 98 of file wlan_compat.h.

◆ WLAN_ISA

#define WLAN_ISA   2

Definition at line 99 of file wlan_compat.h.

◆ WLAN_PCI

#define WLAN_PCI   3

Definition at line 100 of file wlan_compat.h.

◆ WLAN_USB

#define WLAN_USB   4

Definition at line 101 of file wlan_compat.h.

◆ WLAN_PLX

#define WLAN_PLX   5

Definition at line 102 of file wlan_compat.h.

◆ WLAN_OS

#define WLAN_OS   WLAN_LINUX_USER

Definition at line 113 of file wlan_compat.h.

◆ BIT0

#define BIT0   0x00000001

Definition at line 196 of file wlan_compat.h.

◆ BIT1

#define BIT1   0x00000002

Definition at line 197 of file wlan_compat.h.

◆ BIT2

#define BIT2   0x00000004

Definition at line 198 of file wlan_compat.h.

◆ BIT3

#define BIT3   0x00000008

Definition at line 199 of file wlan_compat.h.

◆ BIT4

#define BIT4   0x00000010

Definition at line 200 of file wlan_compat.h.

◆ BIT5

#define BIT5   0x00000020

Definition at line 201 of file wlan_compat.h.

◆ BIT6

#define BIT6   0x00000040

Definition at line 202 of file wlan_compat.h.

◆ BIT7

#define BIT7   0x00000080

Definition at line 203 of file wlan_compat.h.

◆ BIT8

#define BIT8   0x00000100

Definition at line 204 of file wlan_compat.h.

◆ BIT9

#define BIT9   0x00000200

Definition at line 205 of file wlan_compat.h.

◆ BIT10

#define BIT10   0x00000400

Definition at line 206 of file wlan_compat.h.

◆ BIT11

#define BIT11   0x00000800

Definition at line 207 of file wlan_compat.h.

◆ BIT12

#define BIT12   0x00001000

Definition at line 208 of file wlan_compat.h.

◆ BIT13

#define BIT13   0x00002000

Definition at line 209 of file wlan_compat.h.

◆ BIT14

#define BIT14   0x00004000

Definition at line 210 of file wlan_compat.h.

◆ BIT15

#define BIT15   0x00008000

Definition at line 211 of file wlan_compat.h.

◆ BIT16

#define BIT16   0x00010000

Definition at line 212 of file wlan_compat.h.

◆ BIT17

#define BIT17   0x00020000

Definition at line 213 of file wlan_compat.h.

◆ BIT18

#define BIT18   0x00040000

Definition at line 214 of file wlan_compat.h.

◆ BIT19

#define BIT19   0x00080000

Definition at line 215 of file wlan_compat.h.

◆ BIT20

#define BIT20   0x00100000

Definition at line 216 of file wlan_compat.h.

◆ BIT21

#define BIT21   0x00200000

Definition at line 217 of file wlan_compat.h.

◆ BIT22

#define BIT22   0x00400000

Definition at line 218 of file wlan_compat.h.

◆ BIT23

#define BIT23   0x00800000

Definition at line 219 of file wlan_compat.h.

◆ BIT24

#define BIT24   0x01000000

Definition at line 220 of file wlan_compat.h.

◆ BIT25

#define BIT25   0x02000000

Definition at line 221 of file wlan_compat.h.

◆ BIT26

#define BIT26   0x04000000

Definition at line 222 of file wlan_compat.h.

◆ BIT27

#define BIT27   0x08000000

Definition at line 223 of file wlan_compat.h.

◆ BIT28

#define BIT28   0x10000000

Definition at line 224 of file wlan_compat.h.

◆ BIT29

#define BIT29   0x20000000

Definition at line 225 of file wlan_compat.h.

◆ BIT30

#define BIT30   0x40000000

Definition at line 226 of file wlan_compat.h.

◆ BIT31

#define BIT31   0x80000000

Definition at line 227 of file wlan_compat.h.

◆ __WLAN_ATTRIB_PACK__

#define __WLAN_ATTRIB_PACK__   __attribute__ ((packed))

Definition at line 232 of file wlan_compat.h.

◆ __WLAN_PRAGMA_PACK1__

#define __WLAN_PRAGMA_PACK1__

Definition at line 233 of file wlan_compat.h.

◆ __WLAN_PRAGMA_PACKDFLT__

#define __WLAN_PRAGMA_PACKDFLT__

Definition at line 234 of file wlan_compat.h.

◆ __WLAN_INLINE__

#define __WLAN_INLINE__   inline

Definition at line 235 of file wlan_compat.h.

◆ WLAN_MIN_ARRAY

#define WLAN_MIN_ARRAY   0

Definition at line 236 of file wlan_compat.h.

◆ WLAN_DBVAR

#define WLAN_DBVAR   wlan_debug

Definition at line 243 of file wlan_compat.h.

◆ WLAN_LOG_ERROR0

#define WLAN_LOG_ERROR0 (   s)

Definition at line 307 of file wlan_compat.h.

◆ WLAN_LOG_ERROR1

#define WLAN_LOG_ERROR1 (   s,
  n 
)

Definition at line 308 of file wlan_compat.h.

◆ WLAN_LOG_ERROR2

#define WLAN_LOG_ERROR2 (   s,
  n1,
  n2 
)

Definition at line 309 of file wlan_compat.h.

◆ WLAN_LOG_ERROR3

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

Definition at line 310 of file wlan_compat.h.

◆ WLAN_LOG_ERROR4

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

Definition at line 311 of file wlan_compat.h.

◆ WLAN_LOG_WARNING0

#define WLAN_LOG_WARNING0 (   s)

Definition at line 313 of file wlan_compat.h.

◆ WLAN_LOG_WARNING1

#define WLAN_LOG_WARNING1 (   s,
  n 
)

Definition at line 314 of file wlan_compat.h.

◆ WLAN_LOG_WARNING2

#define WLAN_LOG_WARNING2 (   s,
  n1,
  n2 
)

Definition at line 315 of file wlan_compat.h.

◆ WLAN_LOG_WARNING3

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

Definition at line 316 of file wlan_compat.h.

◆ WLAN_LOG_WARNING4

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

Definition at line 317 of file wlan_compat.h.

◆ WLAN_LOG_NOTICE0

#define WLAN_LOG_NOTICE0 (   s)

Definition at line 319 of file wlan_compat.h.

◆ WLAN_LOG_NOTICE1

#define WLAN_LOG_NOTICE1 (   s,
  n 
)

Definition at line 320 of file wlan_compat.h.

◆ WLAN_LOG_NOTICE2

#define WLAN_LOG_NOTICE2 (   s,
  n1,
  n2 
)

Definition at line 321 of file wlan_compat.h.

◆ WLAN_LOG_NOTICE3

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

Definition at line 322 of file wlan_compat.h.

◆ WLAN_LOG_NOTICE4

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

Definition at line 323 of file wlan_compat.h.

◆ WLAN_ASSERT

#define WLAN_ASSERT (   c)

Definition at line 325 of file wlan_compat.h.

◆ WLAN_HEX_DUMP

#define WLAN_HEX_DUMP (   l,
  s,
  p,
  n 
)

Definition at line 326 of file wlan_compat.h.

◆ DBFENTER

#define DBFENTER

Definition at line 328 of file wlan_compat.h.

◆ DBFEXIT

#define DBFEXIT

Definition at line 329 of file wlan_compat.h.

◆ WLAN_LOG_INFO0

#define WLAN_LOG_INFO0 (   s)

Definition at line 331 of file wlan_compat.h.

◆ WLAN_LOG_INFO1

#define WLAN_LOG_INFO1 (   s,
  n 
)

Definition at line 332 of file wlan_compat.h.

◆ WLAN_LOG_INFO2

#define WLAN_LOG_INFO2 (   s,
  n1,
  n2 
)

Definition at line 333 of file wlan_compat.h.

◆ WLAN_LOG_INFO3

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

Definition at line 334 of file wlan_compat.h.

◆ WLAN_LOG_INFO4

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

Definition at line 335 of file wlan_compat.h.

◆ WLAN_LOG_INFO5

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

Definition at line 336 of file wlan_compat.h.

◆ WLAN_LOG_DEBUG0

#define WLAN_LOG_DEBUG0 (   l,
 
)

Definition at line 338 of file wlan_compat.h.

◆ WLAN_LOG_DEBUG1

#define WLAN_LOG_DEBUG1 (   l,
  s,
  n 
)

Definition at line 339 of file wlan_compat.h.

◆ WLAN_LOG_DEBUG2

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

Definition at line 340 of file wlan_compat.h.

◆ WLAN_LOG_DEBUG3

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

Definition at line 341 of file wlan_compat.h.

◆ WLAN_LOG_DEBUG4

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

Definition at line 342 of file wlan_compat.h.

◆ WLAN_LOG_DEBUG5

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

Definition at line 343 of file wlan_compat.h.

◆ wlan_ms_per_tick

#define wlan_ms_per_tick   (1000UL / (wlan_ticks_per_sec))

Definition at line 346 of file wlan_compat.h.

◆ wlan_ms_to_ticks

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

Definition at line 347 of file wlan_compat.h.

◆ wlan_tu2ticks

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

Definition at line 348 of file wlan_compat.h.

◆ WLAN_INT_DISABLE

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

Definition at line 349 of file wlan_compat.h.

◆ WLAN_INT_ENABLE

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

Definition at line 350 of file wlan_compat.h.

◆ KERNEL_VERSION

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

Definition at line 362 of file wlan_compat.h.

◆ init_waitqueue_head

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

Definition at line 376 of file wlan_compat.h.

◆ set_current_state

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

Definition at line 382 of file wlan_compat.h.

◆ init_waitqueue_entry

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

Definition at line 383 of file wlan_compat.h.

◆ __wait_event_interruptible_timeout

#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)
void timeout(int)

Definition at line 391 of file wlan_compat.h.

◆ wait_event_interruptible_timeout

#define wait_event_interruptible_timeout (   wq,
  condition,
  timeout 
)
Value:
({ \
int __ret = 0; \
if (!(condition)) \
__wait_event_interruptible_timeout(wq, condition, \
timeout, __ret); \
__ret; \
})
void timeout(int)

Definition at line 421 of file wlan_compat.h.

◆ spin_lock

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

Definition at line 433 of file wlan_compat.h.

◆ spin_unlock

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

Definition at line 434 of file wlan_compat.h.

◆ spin_lock_irqsave

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

Definition at line 435 of file wlan_compat.h.

◆ spin_unlock_irqrestore

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

Definition at line 436 of file wlan_compat.h.

◆ spin_lock_init

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

Definition at line 437 of file wlan_compat.h.

◆ spin_trylock

#define spin_trylock (   l)    (1)

Definition at line 438 of file wlan_compat.h.

◆ spin_is_locked

#define spin_is_locked (   l)    (0)

Definition at line 446 of file wlan_compat.h.

◆ MODULE_PARM

#define MODULE_PARM (   a,
  b 
)    extern int __bogus_decl

Definition at line 471 of file wlan_compat.h.

◆ MODULE_AUTHOR

#define MODULE_AUTHOR (   a)    extern int __bogus_decl

Definition at line 472 of file wlan_compat.h.

◆ MODULE_DESCRIPTION

#define MODULE_DESCRIPTION (   a)    extern int __bogus_decl

Definition at line 473 of file wlan_compat.h.

◆ MODULE_SUPPORTED_DEVICE

#define MODULE_SUPPORTED_DEVICE (   a)    extern int __bogus_decl

Definition at line 474 of file wlan_compat.h.

◆ GET_USE_COUNT

#define GET_USE_COUNT (   m)    mod_use_count_

Definition at line 476 of file wlan_compat.h.

◆ MODULE_LICENSE

#define MODULE_LICENSE (   m)    extern int __bogus_decl

Definition at line 480 of file wlan_compat.h.

◆ MODULE_DEVICE_TABLE

#define MODULE_DEVICE_TABLE (   foo,
  bar 
)

Definition at line 485 of file wlan_compat.h.

◆ wlan_minutes2ticks

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

Definition at line 488 of file wlan_compat.h.

◆ wlan_seconds2ticks

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

Definition at line 489 of file wlan_compat.h.

◆ ieee2host16

#define ieee2host16 (   n)    __le16_to_cpu(n)

Definition at line 495 of file wlan_compat.h.

◆ ieee2host32

#define ieee2host32 (   n)    __le32_to_cpu(n)

Definition at line 496 of file wlan_compat.h.

◆ host2ieee16

#define host2ieee16 (   n)    __cpu_to_le16(n)

Definition at line 497 of file wlan_compat.h.

◆ host2ieee32

#define host2ieee32 (   n)    __cpu_to_le32(n)

Definition at line 498 of file wlan_compat.h.

◆ wlan_inw

#define wlan_inw (   a)    inw((a))

Definition at line 506 of file wlan_compat.h.

◆ wlan_inw_le16_to_cpu

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

Definition at line 507 of file wlan_compat.h.

◆ wlan_outw

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

Definition at line 508 of file wlan_compat.h.

◆ wlan_outw_cpu_to_le16

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

Definition at line 509 of file wlan_compat.h.

◆ wlan_max

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

Definition at line 516 of file wlan_compat.h.

◆ wlan_min

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

Definition at line 517 of file wlan_compat.h.

◆ wlan_isprint

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

Definition at line 519 of file wlan_compat.h.

◆ wlan_hexchar

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

Definition at line 521 of file wlan_compat.h.

◆ wlan_mkprintstr

#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; \
} \
} \
}
#define wlan_isprint(c)
Definition: wlan_compat.h:519
size_t strlen(const char *src)
Get length of string.
Definition: string.c:228
#define wlan_hexchar(x)
Definition: wlan_compat.h:521

Definition at line 525 of file wlan_compat.h.

Typedef Documentation

◆ wait_queue_head_t

typedef struct wait_queue* wait_queue_head_t

Definition at line 380 of file wlan_compat.h.

◆ wait_queue_t

typedef struct wait_queue wait_queue_t

Definition at line 381 of file wlan_compat.h.

◆ spinlock_t

typedef int spinlock_t

Definition at line 439 of file wlan_compat.h.

◆ netdevice_t

typedef struct device netdevice_t

Definition at line 451 of file wlan_compat.h.

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_ONLY  )

Variable Documentation

◆ wlan_debug

int wlan_debug

◆ wlan_ethconv

int wlan_ethconv