summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2015-05-05 10:06:09 -0700
committerMichael Grzeschik <m.grzeschik@pengutronix.de>2015-09-23 08:44:27 +0200
commit9c76aa55110a48c0db1eab4c998a5b94d9f0f852 (patch)
treec68c51f6783e5b11911a4215c5e03280cdf34c70
parent09dfbcd5d178f8e03b5a29c9f3411687ec388c91 (diff)
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>
-rw-r--r--drivers/net/arcnet/arcdevice.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/arcnet/arcdevice.h b/drivers/net/arcnet/arcdevice.h
index 4afa32b5e9f1..a05a77de0917 100644
--- a/drivers/net/arcnet/arcdevice.h
+++ b/drivers/net/arcnet/arcdevice.h
@@ -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 */