okay.
many things about this interface don't make sense to me.
but it's hard at this point to tell if driver is obfuscated or what.
the space/time tradeoff here seems interesting. is pushing 3 more bytes
over a pci bus really slower than doing the alignment on an ad-hoc basis?
the trouble is these structures go on forever and have many
bitfields. (in one i count 46 fields, all integers of random width,
randomly intermixed.)
- erik
[EMAIL PROTECTED] writes
|
| You declare it like this:
|
| typedef struct {
| char f;
| uchar l[4];
| char g;
| uchar m[4];
| } Dac960fu;
|
| and convert l and m using the usual integer-to-bytes and
| bytes-to-integers macros or functions, presumably the little-endian
| versions. Mylex were crazy to lay the data out this way.