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>

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

--3MwIy2ne0vdjdPXF
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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:
> :=20
> : 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.
>=20
> 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

--3MwIy2ne0vdjdPXF
Content-Type: application/pgp-signature
Content-Disposition: inline

-----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-----

--3MwIy2ne0vdjdPXF--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




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