mirror of
https://github.com/torvalds/linux.git
synced 2024-12-19 17:41:29 +00:00
staging: vt6655: upc.h replace read and write memory functions
Update to the newer memory functions readb -> ioread8 readw -> ioread16 readl -> ioread32 writeb -> iowrite8 writew -> iowrite16 writel -> iowrite32 Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
3e66a2aadd
commit
965d017f49
@ -40,32 +40,32 @@
|
|||||||
|
|
||||||
#define VNSvInPortB(dwIOAddress, pbyData) \
|
#define VNSvInPortB(dwIOAddress, pbyData) \
|
||||||
do { \
|
do { \
|
||||||
*(pbyData) = readb(dwIOAddress); \
|
*(pbyData) = ioread8(dwIOAddress); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#define VNSvInPortW(dwIOAddress, pwData) \
|
#define VNSvInPortW(dwIOAddress, pwData) \
|
||||||
do { \
|
do { \
|
||||||
*(pwData) = readw(dwIOAddress); \
|
*(pwData) = ioread16(dwIOAddress); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#define VNSvInPortD(dwIOAddress, pdwData) \
|
#define VNSvInPortD(dwIOAddress, pdwData) \
|
||||||
do { \
|
do { \
|
||||||
*(pdwData) = readl(dwIOAddress); \
|
*(pdwData) = ioread32(dwIOAddress); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#define VNSvOutPortB(dwIOAddress, byData) \
|
#define VNSvOutPortB(dwIOAddress, byData) \
|
||||||
do { \
|
do { \
|
||||||
writeb((unsigned char)byData, dwIOAddress); \
|
iowrite8((u8)byData, dwIOAddress); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#define VNSvOutPortW(dwIOAddress, wData) \
|
#define VNSvOutPortW(dwIOAddress, wData) \
|
||||||
do { \
|
do { \
|
||||||
writew((unsigned short)wData, dwIOAddress); \
|
iowrite16((u16)wData, dwIOAddress); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#define VNSvOutPortD(dwIOAddress, dwData) \
|
#define VNSvOutPortD(dwIOAddress, dwData) \
|
||||||
do { \
|
do { \
|
||||||
writel((unsigned long)dwData, dwIOAddress); \
|
iowrite32((u32)dwData, dwIOAddress); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#define PCAvDelayByIO(uDelayUnit) \
|
#define PCAvDelayByIO(uDelayUnit) \
|
||||||
|
Loading…
Reference in New Issue
Block a user