diff options
-rw-r--r-- | drivers/net/wan/sbni.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/drivers/net/wan/sbni.h b/drivers/net/wan/sbni.h index 27715e7..8426451 100644 --- a/drivers/net/wan/sbni.h +++ b/drivers/net/wan/sbni.h @@ -44,9 +44,15 @@ enum { #define PR_RES 0x80 struct sbni_csr1 { - unsigned rxl : 5; - unsigned rate : 2; - unsigned : 1; +#ifdef __LITTLE_ENDIAN_BITFIELD + u8 rxl : 5; + u8 rate : 2; + u8 : 1; +#else + u8 : 1; + u8 rate : 2; + u8 rxl : 5; +#endif }; /* fields in frame header */ |