Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 09 Dec 2002 21:36:09 +0100
From:      phk@freebsd.org
To:        Maxime Henrion <mux@freebsd.org>
Cc:        Nate Lawson <nate@root.org>, "M. Warner Losh" <imp@bsdimp.com>, arch@freebsd.org
Subject:   Re: le??toh, etc in userland 
Message-ID:  <76088.1039466169@critter.freebsd.dk>
In-Reply-To: Your message of "Mon, 09 Dec 2002 12:34:42 PST." <20021209203442.GB27086@elvis.mu.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <20021209203442.GB27086@elvis.mu.org>, Maxime Henrion writes:

>> Already present in CAM (sys/cam/ssi_all.h):
>> static __inline void scsi_ulto2b(u_int32_t val, u_int8_t *bytes);
>> static __inline void scsi_ulto3b(u_int32_t val, u_int8_t *bytes);
>> static __inline void scsi_ulto4b(u_int32_t val, u_int8_t *bytes);
>> static __inline u_int32_t scsi_2btoul(u_int8_t *bytes);
>> static __inline u_int32_t scsi_3btoul(u_int8_t *bytes);
>> static __inline int32_t scsi_3btol(u_int8_t *bytes);
>> static __inline u_int32_t scsi_4btoul(u_int8_t *bytes);
>> 
>> I would love to have a 64 bit version and map these to a generic host
>> version.  It should use u_int8_t instead of u_char though.
>
>It should even use uintXX_t instead of u_intXX_t, since the former is
>the standard C99 types.

I think the ones in sys/geom/geom_enc.c does the right thing, apart
from the "g_" prefix.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

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