OSDN Git Service

arcnet: arcdevice.h: Add arcnet_readb and arcnet_writeb
authorJoe Perches <joe@perches.com>
Tue, 5 May 2015 17:06:09 +0000 (10:06 -0700)
committerMichael Grzeschik <m.grzeschik@pengutronix.de>
Wed, 23 Sep 2015 06:44:27 +0000 (08:44 +0200)
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>
drivers/net/arcnet/arcdevice.h

index 4afa32b..a05a77d 100644 (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 */