1
0
Fork 0

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: Joe Perches <joe@perches.com>
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
hifive-unleashed-5.1
Joe Perches 2015-05-05 10:06:09 -07:00 committed by Michael Grzeschik
parent 09dfbcd5d1
commit 9c76aa5511
1 changed files with 5 additions and 0 deletions

View File

@ -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 */