From: Arkadiusz M. <ar...@pl...> - 2007-01-25 18:46:02
|
struct fru_picmgext_amc_link_info { unsigned char linkInfo[3]; } __attribute__ ((packed)); unsigned char type; unsigned char ext; unsigned char grouping; unsigned char port; unsigned char enabled; d =3D (struct fru_picmgext_amc_link_info *)&(rsp->data[1 + (ind= ex*4)]); #ifndef WORDS_BIGENDIAN /* I don't know what kind of frug addict defined this record */ port =3D d->linkInfo[0] & 0x0F; type =3D ((d->linkInfo[0] & 0xF0) >> 4 )|(d->linkInfo[1] & = 0x0F ); ext =3D ((d->linkInfo[1] & 0xF0) >> 4 ); grouping =3D d->linkInfo[2]; #else #error "FIXME" #endif Does anyone know defnition for this record so we can fix bigendian? =2D-=20 Arkadiusz Mi=B6kiewicz PLD/Linux Team arekm / maven.pl http://ftp.pld-linux.org/ |