Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Jan 2002 12:56:13 +0000
From:      Josef Karthauser <joe@tao.org.uk>
To:        "M. Warner Losh" <imp@village.org>
Cc:        tmoestl@gmx.net, freebsd-arch@FreeBSD.ORG
Subject:   Re: adding more endian conversion and bus space functions
Message-ID:  <20020111125613.A68443@genius.tao.org.uk>
In-Reply-To: <20020110.204555.14845956.imp@village.org>; from imp@village.org on Thu, Jan 10, 2002 at 08:45:55PM -0700
References:  <20020111005207.GA7246@crow.dom2ip.de> <20020110.204555.14845956.imp@village.org>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
On Thu, Jan 10, 2002 at 08:45:55PM -0700, M. Warner Losh wrote:
> In message: <20020111005207.GA7246@crow.dom2ip.de>
>             Thomas Moestl <tmoestl@gmx.net> writes:
> : I'd like to propose some additions to the kernel endian conversion and
> : bus space functions to aid the sparc64 port, taken from NetBSD:
> : 
> : 1. htobe16(), htobe32(), htobe64(), htole16(), htole32(), htole64()
> :    be16toh(), be32toh(), be64toh(), le16toh(), le32toh() and le64toh(),
> :    to convert from the host byte order to big or little endian order
> :    and vice versa.
> : 2. bswap16(), bswap32() and bswap64() to swap the endianess. The above
> :    functions could be implemented using these.
> 
> I think this is an excellent idea.  We have some of the *le* functions
> defined in the wi driver now.

Yes please.  This would help out in the usb code too.

Joe

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAjw+4O0ACgkQXVIcjOaxUBYHtgCfaMjk6Xu+JglSpFANfWPb1GCc
n74AoN9TdlHp4k+7haNjO1qV5Ac3F2rA
=KSDn
-----END PGP SIGNATURE-----
home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020111125613.A68443>