Commit 031d3996 authored by Joe Perches's avatar Joe Perches Committed by Greg Kroah-Hartman

staging:vt6655:upc: Whitespace cleanups

Neatening only.
git diff -w shows no differences.
Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 76dffe64
...@@ -41,32 +41,32 @@ ...@@ -41,32 +41,32 @@
#ifdef IO_MAP #ifdef IO_MAP
#define VNSvInPortB(dwIOAddress, pbyData) { \ #define VNSvInPortB(dwIOAddress, pbyData) { \
*(pbyData) = inb(dwIOAddress); \ *(pbyData) = inb(dwIOAddress); \
} }
#define VNSvInPortW(dwIOAddress, pwData) { \ #define VNSvInPortW(dwIOAddress, pwData) { \
*(pwData) = inw(dwIOAddress); \ *(pwData) = inw(dwIOAddress); \
} }
#define VNSvInPortD(dwIOAddress, pdwData) { \ #define VNSvInPortD(dwIOAddress, pdwData) { \
*(pdwData) = inl(dwIOAddress); \ *(pdwData) = inl(dwIOAddress); \
} }
#define VNSvOutPortB(dwIOAddress, byData) { \ #define VNSvOutPortB(dwIOAddress, byData) { \
outb(byData, dwIOAddress); \ outb(byData, dwIOAddress); \
} }
#define VNSvOutPortW(dwIOAddress, wData) { \ #define VNSvOutPortW(dwIOAddress, wData) { \
outw(wData, dwIOAddress); \ outw(wData, dwIOAddress); \
} }
#define VNSvOutPortD(dwIOAddress, dwData) { \ #define VNSvOutPortD(dwIOAddress, dwData) { \
outl(dwData, dwIOAddress); \ outl(dwData, dwIOAddress); \
} }
#else #else
...@@ -75,38 +75,38 @@ ...@@ -75,38 +75,38 @@
// //
#define VNSvInPortB(dwIOAddress, pbyData) { \ #define VNSvInPortB(dwIOAddress, pbyData) { \
volatile unsigned char * pbyAddr = ((unsigned char *)(dwIOAddress)); \ volatile unsigned char *pbyAddr = ((unsigned char *)(dwIOAddress)); \
*(pbyData) = readb(pbyAddr); \ *(pbyData) = readb(pbyAddr); \
} }
#define VNSvInPortW(dwIOAddress, pwData) { \ #define VNSvInPortW(dwIOAddress, pwData) { \
volatile unsigned short *pwAddr = ((unsigned short *)(dwIOAddress)); \ volatile unsigned short *pwAddr = ((unsigned short *)(dwIOAddress)); \
*(pwData) = readw(pwAddr); \ *(pwData) = readw(pwAddr); \
} }
#define VNSvInPortD(dwIOAddress, pdwData) { \ #define VNSvInPortD(dwIOAddress, pdwData) { \
volatile unsigned long *pdwAddr = ((unsigned long *)(dwIOAddress)); \ volatile unsigned long *pdwAddr = ((unsigned long *)(dwIOAddress)); \
*(pdwData) = readl(pdwAddr); \ *(pdwData) = readl(pdwAddr); \
} }
#define VNSvOutPortB(dwIOAddress, byData) { \ #define VNSvOutPortB(dwIOAddress, byData) { \
volatile unsigned char * pbyAddr = ((unsigned char *)(dwIOAddress)); \ volatile unsigned char *pbyAddr = ((unsigned char *)(dwIOAddress)); \
writeb((unsigned char)byData, pbyAddr); \ writeb((unsigned char)byData, pbyAddr); \
} }
#define VNSvOutPortW(dwIOAddress, wData) { \ #define VNSvOutPortW(dwIOAddress, wData) { \
volatile unsigned short *pwAddr = ((unsigned short *)(dwIOAddress)); \ volatile unsigned short *pwAddr = ((unsigned short *)(dwIOAddress)); \
writew((unsigned short)wData, pwAddr); \ writew((unsigned short)wData, pwAddr); \
} }
#define VNSvOutPortD(dwIOAddress, dwData) { \ #define VNSvOutPortD(dwIOAddress, dwData) { \
volatile unsigned long *pdwAddr = ((unsigned long *)(dwIOAddress)); \ volatile unsigned long *pdwAddr = ((unsigned long *)(dwIOAddress)); \
writel((unsigned long)dwData, pdwAddr); \ writel((unsigned long)dwData, pdwAddr); \
} }
#endif #endif
...@@ -115,42 +115,42 @@ ...@@ -115,42 +115,42 @@
// ALWAYS IO-Mapped IO when in 16-bit/32-bit environment // ALWAYS IO-Mapped IO when in 16-bit/32-bit environment
// //
#define PCBvInPortB(dwIOAddress, pbyData) { \ #define PCBvInPortB(dwIOAddress, pbyData) { \
*(pbyData) = inb(dwIOAddress); \ *(pbyData) = inb(dwIOAddress); \
} }
#define PCBvInPortW(dwIOAddress, pwData) { \ #define PCBvInPortW(dwIOAddress, pwData) { \
*(pwData) = inw(dwIOAddress); \ *(pwData) = inw(dwIOAddress); \
} }
#define PCBvInPortD(dwIOAddress, pdwData) { \ #define PCBvInPortD(dwIOAddress, pdwData) { \
*(pdwData) = inl(dwIOAddress); \ *(pdwData) = inl(dwIOAddress); \
} }
#define PCBvOutPortB(dwIOAddress, byData) { \ #define PCBvOutPortB(dwIOAddress, byData) { \
outb(byData, dwIOAddress); \ outb(byData, dwIOAddress); \
} }
#define PCBvOutPortW(dwIOAddress, wData) { \ #define PCBvOutPortW(dwIOAddress, wData) { \
outw(wData, dwIOAddress); \ outw(wData, dwIOAddress); \
} }
#define PCBvOutPortD(dwIOAddress, dwData) { \ #define PCBvOutPortD(dwIOAddress, dwData) { \
outl(dwData, dwIOAddress); \ outl(dwData, dwIOAddress); \
} }
#define PCAvDelayByIO(uDelayUnit) { \ #define PCAvDelayByIO(uDelayUnit) { \
unsigned char byData; \ unsigned char byData; \
unsigned long ii; \ unsigned long ii; \
\ \
if (uDelayUnit <= 50) { \ if (uDelayUnit <= 50) { \
udelay(uDelayUnit); \ udelay(uDelayUnit); \
} \ } \
else { \ else { \
for (ii = 0; ii < (uDelayUnit); ii++) \ for (ii = 0; ii < (uDelayUnit); ii++) \
byData = inb(0x61); \ byData = inb(0x61); \
} \ } \
} }
/*--------------------- Export Classes ----------------------------*/ /*--------------------- Export Classes ----------------------------*/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment