Subject: Re: Question
To: Todd Vierling <tv@pobox.com>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: port-alpha
Date: 12/10/1998 09:50:19
On Thu, 10 Dec 1998 10:04:32 -0500 (EST) 
 Todd Vierling <tv@pobox.com> wrote:

 > Hmmm... I wonder if __attribute__((packed)) will do what you want.  Not that
 > it's a good solution, by any means... it's probably going to hit performance
 > in a big way.  The correct solution is, of course, to align *everything* -
 > especially if you ever want to see USB on a sparc-line box via a PCI-to-USB
 > interface or somesuch.

Packing the structure is one thing.  If there are members in the descriptor
which are not naturally aligned, you're going to lose.

Probably the best idea here is to take the incoming descriptors and convert
them into some chained software representation.

Jason R. Thorpe                                       thorpej@nas.nasa.gov
NASA Ames Research Center                            Home: +1 408 866 1912
NAS: M/S 258-5                                       Work: +1 650 604 0935
Moffett Field, CA 94035                             Pager: +1 650 940 5942