Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 965d017f authored by Malcolm Priestley's avatar Malcolm Priestley Committed by Greg Kroah-Hartman
Browse files

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: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3e66a2aa
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -40,32 +40,32 @@

#define VNSvInPortB(dwIOAddress, pbyData)				\
do {									\
	*(pbyData) = readb(dwIOAddress);				\
	*(pbyData) = ioread8(dwIOAddress);				\
} while (0)

#define VNSvInPortW(dwIOAddress, pwData)				\
do {									\
	*(pwData) = readw(dwIOAddress);					\
	*(pwData) = ioread16(dwIOAddress);				\
} while (0)

#define VNSvInPortD(dwIOAddress, pdwData)				\
do {									\
	*(pdwData) = readl(dwIOAddress);				\
	*(pdwData) = ioread32(dwIOAddress);				\
} while (0)

#define VNSvOutPortB(dwIOAddress, byData)				\
do {									\
	writeb((unsigned char)byData, dwIOAddress);			\
	iowrite8((u8)byData, dwIOAddress);				\
} while (0)

#define VNSvOutPortW(dwIOAddress, wData)				\
do {									\
	writew((unsigned short)wData, dwIOAddress);			\
	iowrite16((u16)wData, dwIOAddress);				\
} while (0)

#define VNSvOutPortD(dwIOAddress, dwData)				\
do {									\
	writel((unsigned long)dwData, dwIOAddress);			\
	iowrite32((u32)dwData, dwIOAddress);				\
} while (0)

#define PCAvDelayByIO(uDelayUnit)				\