From owner-freebsd-arch Fri Jan 11 4:56:30 2002 Delivered-To: freebsd-arch@freebsd.org Received: from tao.org.uk (genius.tao.org.uk [212.135.162.51]) by hub.freebsd.org (Postfix) with ESMTP id A3B7B37B404 for ; Fri, 11 Jan 2002 04:56:24 -0800 (PST) Received: by tao.org.uk (Postfix, from userid 100) id 9B326483; Fri, 11 Jan 2002 12:56:13 +0000 (GMT) Date: Fri, 11 Jan 2002 12:56:13 +0000 From: Josef Karthauser To: "M. Warner Losh" 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> References: <20020111005207.GA7246@crow.dom2ip.de> <20020110.204555.14845956.imp@village.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="3MwIy2ne0vdjdPXF" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020110.204555.14845956.imp@village.org>; from imp@village.org on Thu, Jan 10, 2002 at 08:45:55PM -0700 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --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 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