From b84aceb90dcfff2787e858df9a2a7123f31ea420 Mon Sep 17 00:00:00 2001 From: ad Date: Sat, 25 Mar 2000 13:38:35 +0000 Subject: The bus_space stuff handles byte order conversions for us. --- sys/dev/ic/dptreg.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sys/dev/ic') 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 @@ -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 */ -- cgit