summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorad <ad@NetBSD.org>2000-03-25 13:38:35 +0000
committerad <ad@NetBSD.org>2000-03-25 13:38:35 +0000
commitb84aceb90dcfff2787e858df9a2a7123f31ea420 (patch)
treec9b669bd93289a40504ae8738bde0c6c66055e10 /sys/dev/ic
parent61609b54e2b3242093fb7755e9c79f19e885ae36 (diff)
The bus_space stuff handles byte order conversions for us.
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/dptreg.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/ic/dptreg.h b/sys/dev/ic/dptreg.h
index 951a4914cfd..a601fab4d54 100644
--- a/sys/dev/ic/dptreg.h
+++ b/sys/dev/ic/dptreg.h
@@ -1,4 +1,4 @@
-/* $NetBSD: dptreg.h,v 1.7 2000/02/24 18:47:55 ad Exp $ */
+/* $NetBSD: dptreg.h,v 1.8 2000/03/25 13:38:35 ad Exp $ */
/*
* Copyright (c) 1999 Andy Doran <ad@NetBSD.org>
@@ -48,16 +48,16 @@
#define dpt_inb(x, o) \
bus_space_read_1((x)->sc_iot, (x)->sc_ioh, (o))
#define dpt_inw(x, o) \
- le16toh(bus_space_read_2((x)->sc_iot, (x)->sc_ioh, (o)))
+ bus_space_read_2((x)->sc_iot, (x)->sc_ioh, (o))
#define dpt_inl(x, o) \
- le32toh(bus_space_read_4((x)->sc_iot, (x)->sc_ioh, (o)))
+ bus_space_read_4((x)->sc_iot, (x)->sc_ioh, (o))
#define dpt_outb(x, o, d) \
bus_space_write_1((x)->sc_iot, (x)->sc_ioh, (o), (d))
#define dpt_outw(x, o, d) \
- bus_space_write_2((x)->sc_iot, (x)->sc_ioh, (o), htole16(d))
+ bus_space_write_2((x)->sc_iot, (x)->sc_ioh, (o), (d))
#define dpt_outl(x, o, d) \
- bus_space_write_4((x)->sc_iot, (x)->sc_ioh, (o), htole32(d))
+ bus_space_write_4((x)->sc_iot, (x)->sc_ioh, (o), (d))
#endif /* _KERNEL */