iPXE
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 REVERSE_ENDIAN
#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(x)
#define WLAN_LOG_ERROR1(x, n)
#define WLAN_LOG_ERROR2(x, n1, n2)
#define WLAN_LOG_ERROR3(x, n1, n2, n3)
#define WLAN_LOG_ERROR4(x, n1, n2, n3, n4)
#define WLAN_LOG_WARNING0(x)
#define WLAN_LOG_WARNING1(x, n)
#define WLAN_LOG_WARNING2(x, n1, n2)
#define WLAN_LOG_WARNING3(x, n1, n2, n3)
#define WLAN_LOG_WARNING4(x, n1, n2, n3, n4)
#define WLAN_LOG_NOTICE0(x)
#define WLAN_LOG_NOTICE1(x, n)
#define WLAN_LOG_NOTICE2(x, n1, n2)
#define WLAN_LOG_NOTICE3(x, n1, n2, n3)
#define WLAN_LOG_NOTICE4(x, n1, n2, n3, n4)
#define WLAN_LOG_INFO0(x)
#define WLAN_LOG_INFO1(x, n)
#define WLAN_LOG_INFO2(x, n1, n2)
#define WLAN_LOG_INFO3(x, n1, n2, n3)
#define WLAN_LOG_INFO4(x, n1, n2, n3, n4)
#define WLAN_LOG_INFO5(x, n1, n2, n3, n4, n5)
#define WLAN_ASSERT(c)
#define WLAN_HEX_DUMP(l, s, p, n)
#define DBFENTER
#define DBFEXIT
#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)
#define wlan_tu2ticks(n)
#define WLAN_INT_DISABLE(n)
#define WLAN_INT_ENABLE(n)
#define KERNEL_VERSION(a, b, c)
#define CONFIG_NETLINK   1
#define kfree_s(a, b)
#define __wait_event_interruptible_timeout(wq, condition, timeout, ret)
#define wait_event_interruptible_timeout(wq, condition, timeout)
#define MODULE_LICENSE(m)
#define MODULE_DEVICE_TABLE(foo, bar)
#define wlan_minutes2ticks(a)
#define wlan_seconds2ticks(a)
#define ieee2host16(n)
#define ieee2host32(n)
#define host2ieee16(n)
#define host2ieee32(n)
#define wlan_inw(a)
#define wlan_inw_le16_to_cpu(a)
#define wlan_outw(v, a)
#define wlan_outw_cpu_to_le16(v, a)
#define wlan_max(a, b)
#define wlan_min(a, b)
#define wlan_isprint(c)
#define wlan_hexchar(x)
#define wlan_mkprintstr(buf, buflen, str, strlen)

Typedefs

typedef struct net_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.

◆ REVERSE_ENDIAN

#define REVERSE_ENDIAN

Definition at line 188 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 ( x)
Value:
printk(KERN_ERR "%s: " x , __FUNCTION__ );
static unsigned int x
Definition pixbuf.h:63

Definition at line 247 of file wlan_compat.h.

◆ WLAN_LOG_ERROR1

#define WLAN_LOG_ERROR1 ( x,
n )
Value:
printk(KERN_ERR "%s: " x , __FUNCTION__ , (n));

Definition at line 248 of file wlan_compat.h.

◆ WLAN_LOG_ERROR2

#define WLAN_LOG_ERROR2 ( x,
n1,
n2 )
Value:
printk(KERN_ERR "%s: " x , __FUNCTION__ , (n1), (n2));

Definition at line 249 of file wlan_compat.h.

◆ WLAN_LOG_ERROR3

#define WLAN_LOG_ERROR3 ( x,
n1,
n2,
n3 )
Value:
printk(KERN_ERR "%s: " x , __FUNCTION__, (n1), (n2), (n3));

Definition at line 250 of file wlan_compat.h.

◆ WLAN_LOG_ERROR4

#define WLAN_LOG_ERROR4 ( x,
n1,
n2,
n3,
n4 )
Value:
printk(KERN_ERR "%s: " x , __FUNCTION__, (n1), (n2), (n3), (n4));

Definition at line 251 of file wlan_compat.h.

◆ WLAN_LOG_WARNING0

#define WLAN_LOG_WARNING0 ( x)
Value:
printk(KERN_WARNING "%s: " x , __FUNCTION__);

Definition at line 253 of file wlan_compat.h.

◆ WLAN_LOG_WARNING1

#define WLAN_LOG_WARNING1 ( x,
n )
Value:
printk(KERN_WARNING "%s: " x , __FUNCTION__, (n));

Definition at line 254 of file wlan_compat.h.

◆ WLAN_LOG_WARNING2

#define WLAN_LOG_WARNING2 ( x,
n1,
n2 )
Value:
printk(KERN_WARNING "%s: " x , __FUNCTION__, (n1), (n2));

Definition at line 255 of file wlan_compat.h.

◆ WLAN_LOG_WARNING3

#define WLAN_LOG_WARNING3 ( x,
n1,
n2,
n3 )
Value:
printk(KERN_WARNING "%s: " x , __FUNCTION__, (n1), (n2), (n3));

Definition at line 256 of file wlan_compat.h.

◆ WLAN_LOG_WARNING4

#define WLAN_LOG_WARNING4 ( x,
n1,
n2,
n3,
n4 )
Value:
printk(KERN_WARNING "%s: " x , __FUNCTION__ , (n1), (n2), (n3), (n4));

Definition at line 257 of file wlan_compat.h.

◆ WLAN_LOG_NOTICE0

#define WLAN_LOG_NOTICE0 ( x)
Value:
printk(KERN_NOTICE "%s: " x , __FUNCTION__);

Definition at line 259 of file wlan_compat.h.

◆ WLAN_LOG_NOTICE1

#define WLAN_LOG_NOTICE1 ( x,
n )
Value:
printk(KERN_NOTICE "%s: " x , __FUNCTION__, (n));

Definition at line 260 of file wlan_compat.h.

◆ WLAN_LOG_NOTICE2

#define WLAN_LOG_NOTICE2 ( x,
n1,
n2 )
Value:
printk(KERN_NOTICE "%s: " x , __FUNCTION__, (n1), (n2));

Definition at line 261 of file wlan_compat.h.

◆ WLAN_LOG_NOTICE3

#define WLAN_LOG_NOTICE3 ( x,
n1,
n2,
n3 )
Value:
printk(KERN_NOTICE "%s: " x , __FUNCTION__, (n1), (n2), (n3));

Definition at line 262 of file wlan_compat.h.

◆ WLAN_LOG_NOTICE4

#define WLAN_LOG_NOTICE4 ( x,
n1,
n2,
n3,
n4 )
Value:
printk(KERN_NOTICE "%s: " x , __FUNCTION__, (n1), (n2), (n3), (n4));

Definition at line 263 of file wlan_compat.h.

◆ WLAN_LOG_INFO0

#define WLAN_LOG_INFO0 ( x)
Value:
printk(KERN_INFO x);

Definition at line 265 of file wlan_compat.h.

◆ WLAN_LOG_INFO1

#define WLAN_LOG_INFO1 ( x,
n )
Value:
printk(KERN_INFO x, (n));

Definition at line 266 of file wlan_compat.h.

◆ WLAN_LOG_INFO2

#define WLAN_LOG_INFO2 ( x,
n1,
n2 )
Value:
printk(KERN_INFO x, (n1), (n2));

Definition at line 267 of file wlan_compat.h.

◆ WLAN_LOG_INFO3

#define WLAN_LOG_INFO3 ( x,
n1,
n2,
n3 )
Value:
printk(KERN_INFO x, (n1), (n2), (n3));

Definition at line 268 of file wlan_compat.h.

◆ WLAN_LOG_INFO4

#define WLAN_LOG_INFO4 ( x,
n1,
n2,
n3,
n4 )
Value:
printk(KERN_INFO x, (n1), (n2), (n3), (n4));

Definition at line 269 of file wlan_compat.h.

◆ WLAN_LOG_INFO5

#define WLAN_LOG_INFO5 ( x,
n1,
n2,
n3,
n4,
n5 )
Value:
printk(KERN_INFO x, (n1), (n2), (n3), (n4), (n5));

Definition at line 270 of file wlan_compat.h.

◆ WLAN_ASSERT

#define WLAN_ASSERT ( c)

Definition at line 293 of file wlan_compat.h.

◆ WLAN_HEX_DUMP

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

Definition at line 294 of file wlan_compat.h.

◆ DBFENTER

#define DBFENTER

Definition at line 296 of file wlan_compat.h.

◆ DBFEXIT

#define DBFEXIT

Definition at line 297 of file wlan_compat.h.

◆ WLAN_LOG_DEBUG0

#define WLAN_LOG_DEBUG0 ( l,
s )

Definition at line 299 of file wlan_compat.h.

◆ WLAN_LOG_DEBUG1

#define WLAN_LOG_DEBUG1 ( l,
s,
n )

Definition at line 300 of file wlan_compat.h.

◆ WLAN_LOG_DEBUG2

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

Definition at line 301 of file wlan_compat.h.

◆ WLAN_LOG_DEBUG3

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

Definition at line 302 of file wlan_compat.h.

◆ WLAN_LOG_DEBUG4

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

Definition at line 303 of file wlan_compat.h.

◆ WLAN_LOG_DEBUG5

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

Definition at line 304 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)
Value:
( (n) / (wlan_ms_per_tick))
#define wlan_ms_per_tick

Definition at line 347 of file wlan_compat.h.

◆ wlan_tu2ticks

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

Definition at line 348 of file wlan_compat.h.

◆ WLAN_INT_DISABLE

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

Definition at line 349 of file wlan_compat.h.

◆ WLAN_INT_ENABLE

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

Definition at line 350 of file wlan_compat.h.

◆ KERNEL_VERSION

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

Definition at line 362 of file wlan_compat.h.

◆ CONFIG_NETLINK

#define CONFIG_NETLINK   1

Definition at line 366 of file wlan_compat.h.

◆ kfree_s

#define kfree_s ( a,
b )
Value:
kfree((a))

Definition at line 370 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.

391#define __wait_event_interruptible_timeout(wq, condition, timeout, ret) \
392do { \
393 int __ret = 0; \
394 if (!(condition)) { \
395 wait_queue_t __wait; \
396 unsigned long expire; \
397 init_waitqueue_entry(&__wait, current); \
398 \
399 expire = timeout + jiffies; \
400 add_wait_queue(&wq, &__wait); \
401 for (;;) { \
402 set_current_state(TASK_INTERRUPTIBLE); \
403 if (condition) \
404 break; \
405 if (jiffies > expire) { \
406 ret = jiffies - expire; \
407 break; \
408 } \
409 if (!signal_pending(current)) { \
410 schedule_timeout(timeout); \
411 continue; \
412 } \
413 ret = -ERESTARTSYS; \
414 break; \
415 } \
416 set_current_state(TASK_RUNNING); \
417 remove_wait_queue(&wq, &__wait); \
418 } \
419} while (0)

◆ 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; \
})

Definition at line 421 of file wlan_compat.h.

421#define wait_event_interruptible_timeout(wq, condition, timeout) \
422({ \
423 int __ret = 0; \
424 if (!(condition)) \
425 __wait_event_interruptible_timeout(wq, condition, \
426 timeout, __ret); \
427 __ret; \
428})

◆ MODULE_LICENSE

#define MODULE_LICENSE ( m)
Value:
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)
Value:
((a)*(wlan_ticks_per_sec * 60))

Definition at line 488 of file wlan_compat.h.

◆ wlan_seconds2ticks

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

Definition at line 489 of file wlan_compat.h.

◆ ieee2host16

#define ieee2host16 ( n)
Value:
#define __le16_to_cpu(x)
Definition prism2.c:77

Definition at line 495 of file wlan_compat.h.

◆ ieee2host32

#define ieee2host32 ( n)
Value:
#define __le32_to_cpu(x)
Definition prism2.c:78

Definition at line 496 of file wlan_compat.h.

◆ host2ieee16

#define host2ieee16 ( n)
Value:
#define __cpu_to_le16(x)
Definition prism2.c:79

Definition at line 497 of file wlan_compat.h.

Referenced by prism2_transmit().

◆ host2ieee32

#define host2ieee32 ( n)
Value:
#define __cpu_to_le32(x)
Definition prism2.c:80

Definition at line 498 of file wlan_compat.h.

◆ wlan_inw

#define wlan_inw ( a)
Value:
in_be16((unsigned short *)((a)+_IO_BASE))

Definition at line 501 of file wlan_compat.h.

◆ wlan_inw_le16_to_cpu

#define wlan_inw_le16_to_cpu ( a)
Value:
inw((a))
#define inw(io_addr)
Definition io.h:292

Definition at line 502 of file wlan_compat.h.

◆ wlan_outw

#define wlan_outw ( v,
a )
Value:
out_be16((unsigned short *)((a)+_IO_BASE), (v))

Definition at line 503 of file wlan_compat.h.

◆ wlan_outw_cpu_to_le16

#define wlan_outw_cpu_to_le16 ( v,
a )
Value:
outw((v),(a))
#define outw(data, io_addr)
Definition io.h:320

Definition at line 504 of file wlan_compat.h.

◆ wlan_max

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

Definition at line 516 of file wlan_compat.h.

◆ wlan_min

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

Definition at line 517 of file wlan_compat.h.

◆ wlan_isprint

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

Definition at line 519 of file wlan_compat.h.

◆ wlan_hexchar

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

Definition at line 525 of file wlan_compat.h.

525#define wlan_mkprintstr(buf, buflen, str, strlen) \
526{ \
527 int i = 0; \
528 int j = 0; \
529 memset(str, 0, (strlen)); \
530 for (i = 0; i < (buflen); i++) { \
531 if ( wlan_isprint((buf)[i]) ) { \
532 (str)[j] = (buf)[i]; \
533 j++; \
534 } else { \
535 (str)[j] = '\\'; \
536 (str)[j+1] = 'x'; \
537 (str)[j+2] = wlan_hexchar(((buf)[i] & 0xf0) >> 4); \
538 (str)[j+3] = wlan_hexchar(((buf)[i] & 0x0f)); \
539 j += 4; \
540 } \
541 } \
542}

Typedef Documentation

◆ netdevice_t

typedef struct net_device netdevice_t

Definition at line 456 of file wlan_compat.h.

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_ONLY )

Variable Documentation

◆ wlan_debug

int wlan_debug
extern

◆ wlan_ethconv

int wlan_ethconv
extern