Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
isapnp.h File Reference
#include <linux/errno.h>
#include <linux/pnp.h>

Go to the source code of this file.

Macros

#define ISAPNP_VENDOR(a, b, c)
 
#define ISAPNP_DEVICE(x)
 
#define ISAPNP_FUNCTION(x)   ISAPNP_DEVICE(x)
 

Macro Definition Documentation

#define ISAPNP_DEVICE (   x)
Value:
((((x)&0xf000)>>8)|\
(((x)&0x0f00)>>8)|\
(((x)&0x00f0)<<8)|\
(((x)&0x000f)<<8))

Definition at line 35 of file isapnp.h.

#define ISAPNP_FUNCTION (   x)    ISAPNP_DEVICE(x)

Definition at line 39 of file isapnp.h.

#define ISAPNP_VENDOR (   a,
  b,
  c 
)
Value:
(((((a)-'A'+1)&0x3f)<<2)|\
((((b)-'A'+1)&0x18)>>3)|((((b)-'A'+1)&7)<<13)|\
((((c)-'A'+1)&0x1f)<<8))

Definition at line 32 of file isapnp.h.