Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Aug 2010 03:10:42 -0500
From:      Jim Bryant <kc5vdj.freebsd@gmail.com>
To:        Hans Petter Selasky <hselasky@c2i.net>
Cc:        freebsd-usb@freebsd.org
Subject:   Re: imon vfd driver complexity question
Message-ID:  <4C777302.7070108@gmail.com>
In-Reply-To: <201008270918.58584.hselasky@c2i.net>
References:  <4C776684.6000707@gmail.com> <201008270918.58584.hselasky@c2i.net>

next in thread | previous in thread | raw e-mail | index | archive | help
will do, thanks.

as far as alignment, i'll try to align on 64 for more efficient intel/amd.

and there shall be no holy wars, all values are broken down to bytes or 
nybbles, peace shall prevail.  buffer lengths are fixed at 8 bytes.

Hans Petter Selasky wrote:
> On Friday 27 August 2010 09:17:24 Jim Bryant wrote:
>   
>> unsigned char
>>     
>
> Try to use the:
>
> uint8_t
> uint16_t
> uint32_t
>
> int8_t
> int16_t
> int32_t 
>
> types when describing data types. Also think about endianness and that 32-bit 
> reads/writes must be 32-bit aligned. Else use UGETDW() and similar functions.
>
> --HPS
>
>   



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