From: Denis V. <vd...@il...> - 2006-03-27 07:03:35
|
On Saturday 25 March 2006 22:01, Carlos Martin wrote: > Up to now, we were using ACX_PACKED after every field. I've finally > found out how to use only one at the end of each struct whilst > maintaining the typedef where it is now. Thanks Martin. Please resend the patch in attachment or in any other way make sure that it doesn't get damaged bt "quoted-printable" encoding: - u16 rate111 ACX_PACKED; /* 0x2a */ - } r2 ACX_PACKED; - } u ACX_PACKED; - u32 queue_info ACX_PACKED; /* 0x2c (acx100, reserved on acx111) */ -}; /* size : 48 =3D 0x30 */ + u16 rate111; /* 0x2a */ + } ACX_PACKED r2; + } u; + u32 queue_info; /* 0x2c (acx100, reserved on acx111) */ +} ACX_PACKED; /* size : 48 =3D 0x30 */ /* NB: acx111 txdesc structure is 4 byte larger */ /* All these 4 extra bytes are reserved. tx alloc code takes them into a= ccount */ =20 struct rxdesc { See those =20, =3D? -- vda |