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

Commit 9c76aa55 authored by Joe Perches's avatar Joe Perches Committed by Michael Grzeschik
Browse files

arcnet: arcdevice.h: Add arcnet_readb and arcnet_writeb



Use the same indirection as the other arcnet_<I/O> macros.
Neither of these new macros add the BUS_ALIGN use for 8 bit devices
on 16 bit busses.

Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarMichael Grzeschik <m.grzeschik@pengutronix.de>
parent 09dfbcd5
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -373,5 +373,10 @@ void arcnet_timeout(struct net_device *dev);
#define arcnet_outsw(addr, offset, buffer, count)			\
	outsw((addr) + BUS_ALIGN * (offset), buffer, count)

#define arcnet_readb(addr, offset)					\
	readb((addr) + (offset))
#define arcnet_writeb(value, addr, offset)				\
	writeb(value, (addr) + (offset))

#endif				/* __KERNEL__ */
#endif				/* _LINUX_ARCDEVICE_H */