Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
upc.h File Reference
#include "device.h"
#include "ttype.h"

Go to the source code of this file.

Macros

#define VNSvInPortB(dwIOAddress, pbyData)
 
#define VNSvInPortW(dwIOAddress, pwData)
 
#define VNSvInPortD(dwIOAddress, pdwData)
 
#define VNSvOutPortB(dwIOAddress, byData)
 
#define VNSvOutPortW(dwIOAddress, wData)
 
#define VNSvOutPortD(dwIOAddress, dwData)
 
#define PCBvInPortB(dwIOAddress, pbyData)
 
#define PCBvInPortW(dwIOAddress, pwData)
 
#define PCBvInPortD(dwIOAddress, pdwData)
 
#define PCBvOutPortB(dwIOAddress, byData)
 
#define PCBvOutPortW(dwIOAddress, wData)
 
#define PCBvOutPortD(dwIOAddress, dwData)
 
#define PCAvDelayByIO(uDelayUnit)
 

Macro Definition Documentation

#define PCAvDelayByIO (   uDelayUnit)
Value:
{ \
unsigned char byData; \
unsigned long ii; \
if (uDelayUnit <= 50) { \
udelay(uDelayUnit); \
} \
else { \
for (ii = 0; ii < (uDelayUnit); ii++) \
byData = inb(0x61); \
} \
}

Definition at line 142 of file upc.h.

#define PCBvInPortB (   dwIOAddress,
  pbyData 
)
Value:
{ \
*(pbyData) = inb(dwIOAddress); \
}

Definition at line 117 of file upc.h.

#define PCBvInPortD (   dwIOAddress,
  pdwData 
)
Value:
{ \
*(pdwData) = inl(dwIOAddress); \
}

Definition at line 125 of file upc.h.

#define PCBvInPortW (   dwIOAddress,
  pwData 
)
Value:
{ \
*(pwData) = inw(dwIOAddress); \
}

Definition at line 121 of file upc.h.

#define PCBvOutPortB (   dwIOAddress,
  byData 
)
Value:
{ \
outb(byData, dwIOAddress); \
}

Definition at line 129 of file upc.h.

#define PCBvOutPortD (   dwIOAddress,
  dwData 
)
Value:
{ \
outl(dwData, dwIOAddress); \
}

Definition at line 137 of file upc.h.

#define PCBvOutPortW (   dwIOAddress,
  wData 
)
Value:
{ \
outw(wData, dwIOAddress); \
}

Definition at line 133 of file upc.h.

#define VNSvInPortB (   dwIOAddress,
  pbyData 
)
Value:
{ \
volatile unsigned char * pbyAddr = ((unsigned char *)(dwIOAddress)); \
*(pbyData) = readb(pbyAddr); \
}

Definition at line 78 of file upc.h.

#define VNSvInPortD (   dwIOAddress,
  pdwData 
)
Value:
{ \
volatile unsigned long *pdwAddr = ((unsigned long *)(dwIOAddress)); \
*(pdwData) = readl(pdwAddr); \
}

Definition at line 89 of file upc.h.

#define VNSvInPortW (   dwIOAddress,
  pwData 
)
Value:
{ \
volatile unsigned short *pwAddr = ((unsigned short *)(dwIOAddress)); \
*(pwData) = readw(pwAddr); \
}

Definition at line 84 of file upc.h.

#define VNSvOutPortB (   dwIOAddress,
  byData 
)
Value:
{ \
volatile unsigned char * pbyAddr = ((unsigned char *)(dwIOAddress)); \
writeb((unsigned char)byData, pbyAddr); \
}

Definition at line 95 of file upc.h.

#define VNSvOutPortD (   dwIOAddress,
  dwData 
)
Value:
{ \
volatile unsigned long *pdwAddr = ((unsigned long *)(dwIOAddress)); \
writel((unsigned long)dwData, pdwAddr); \
}

Definition at line 106 of file upc.h.

#define VNSvOutPortW (   dwIOAddress,
  wData 
)
Value:
{ \
volatile unsigned short *pwAddr = ((unsigned short *)(dwIOAddress)); \
writew((unsigned short)wData, pwAddr); \
}

Definition at line 101 of file upc.h.