#include "device.h"
#include "ttype.h"
Go to the source code of this file.
|
#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) |
|
#define PCAvDelayByIO |
( |
|
uDelayUnit | ) |
|
Value:
if (uDelayUnit <= 50) { \
udelay(uDelayUnit); \
} \
else { \
for (ii = 0; ii < (uDelayUnit); ii++) \
} \
}
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
BYTE* pbyAddr = ((
PBYTE)(dwIOAddress)); \
*(pbyData) =
readb(pbyAddr); \
}
Definition at line 78 of file upc.h.
#define VNSvInPortD |
( |
|
dwIOAddress, |
|
|
|
pdwData |
|
) |
| |
Value:{ \
*(pdwData) =
readl(pdwAddr); \
}
Definition at line 89 of file upc.h.
#define VNSvInPortW |
( |
|
dwIOAddress, |
|
|
|
pwData |
|
) |
| |
Value:{ \
volatile
WORD* pwAddr = ((
PWORD)(dwIOAddress)); \
*(pwData) =
readw(pwAddr); \
}
Definition at line 84 of file upc.h.
#define VNSvOutPortB |
( |
|
dwIOAddress, |
|
|
|
byData |
|
) |
| |
Value:{ \
volatile
BYTE* pbyAddr = ((
PBYTE)(dwIOAddress)); \
writeb((
BYTE)byData, pbyAddr); \
}
Definition at line 95 of file upc.h.
#define VNSvOutPortD |
( |
|
dwIOAddress, |
|
|
|
dwData |
|
) |
| |
Value:{ \
writel((
DWORD)dwData, pdwAddr); \
}
Definition at line 106 of file upc.h.
#define VNSvOutPortW |
( |
|
dwIOAddress, |
|
|
|
wData |
|
) |
| |
Value:{ \
volatile
WORD* pwAddr = ((
PWORD)(dwIOAddress)); \
}
Definition at line 101 of file upc.h.