Go to the documentation of this file.
44 #define VNSvInPortB(dwIOAddress, pbyData) { \
45 *(pbyData) = inb(dwIOAddress); \
49 #define VNSvInPortW(dwIOAddress, pwData) { \
50 *(pwData) = inw(dwIOAddress); \
53 #define VNSvInPortD(dwIOAddress, pdwData) { \
54 *(pdwData) = inl(dwIOAddress); \
58 #define VNSvOutPortB(dwIOAddress, byData) { \
59 outb(byData, dwIOAddress); \
63 #define VNSvOutPortW(dwIOAddress, wData) { \
64 outw(wData, dwIOAddress); \
67 #define VNSvOutPortD(dwIOAddress, dwData) { \
68 outl(dwData, dwIOAddress); \
78 #define VNSvInPortB(dwIOAddress, pbyData) { \
79 volatile unsigned char * pbyAddr = ((unsigned char *)(dwIOAddress)); \
80 *(pbyData) = readb(pbyAddr); \
84 #define VNSvInPortW(dwIOAddress, pwData) { \
85 volatile unsigned short *pwAddr = ((unsigned short *)(dwIOAddress)); \
86 *(pwData) = readw(pwAddr); \
89 #define VNSvInPortD(dwIOAddress, pdwData) { \
90 volatile unsigned long *pdwAddr = ((unsigned long *)(dwIOAddress)); \
91 *(pdwData) = readl(pdwAddr); \
95 #define VNSvOutPortB(dwIOAddress, byData) { \
96 volatile unsigned char * pbyAddr = ((unsigned char *)(dwIOAddress)); \
97 writeb((unsigned char)byData, pbyAddr); \
101 #define VNSvOutPortW(dwIOAddress, wData) { \
102 volatile unsigned short *pwAddr = ((unsigned short *)(dwIOAddress)); \
103 writew((unsigned short)wData, pwAddr); \
106 #define VNSvOutPortD(dwIOAddress, dwData) { \
107 volatile unsigned long *pdwAddr = ((unsigned long *)(dwIOAddress)); \
108 writel((unsigned long)dwData, pdwAddr); \
117 #define PCBvInPortB(dwIOAddress, pbyData) { \
118 *(pbyData) = inb(dwIOAddress); \
121 #define PCBvInPortW(dwIOAddress, pwData) { \
122 *(pwData) = inw(dwIOAddress); \
125 #define PCBvInPortD(dwIOAddress, pdwData) { \
126 *(pdwData) = inl(dwIOAddress); \
129 #define PCBvOutPortB(dwIOAddress, byData) { \
130 outb(byData, dwIOAddress); \
133 #define PCBvOutPortW(dwIOAddress, wData) { \
134 outw(wData, dwIOAddress); \
137 #define PCBvOutPortD(dwIOAddress, dwData) { \
138 outl(dwData, dwIOAddress); \
142 #define PCAvDelayByIO(uDelayUnit) { \
143 unsigned char byData; \
146 if (uDelayUnit <= 50) { \
147 udelay(uDelayUnit); \
150 for (ii = 0; ii < (uDelayUnit); ii++) \
151 byData = inb(0x61); \