Commit fdd2cf9d authored by Gary R Hook's avatar Gary R Hook Committed by Herbert Xu

crypto: ccp - change bitfield type to unsigned ints

Bit fields are not sensitive to endianness, so use
a transparent standard data type
Signed-off-by: default avatarGary R Hook <gary.hook@amd.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 877f69a8
...@@ -541,23 +541,23 @@ static inline u32 ccp_addr_hi(struct ccp_dma_info *info) ...@@ -541,23 +541,23 @@ static inline u32 ccp_addr_hi(struct ccp_dma_info *info)
* word 7: upper 16 bits of key pointer; key memory type * word 7: upper 16 bits of key pointer; key memory type
*/ */
struct dword0 { struct dword0 {
__le32 soc:1; unsigned int soc:1;
__le32 ioc:1; unsigned int ioc:1;
__le32 rsvd1:1; unsigned int rsvd1:1;
__le32 init:1; unsigned int init:1;
__le32 eom:1; /* AES/SHA only */ unsigned int eom:1; /* AES/SHA only */
__le32 function:15; unsigned int function:15;
__le32 engine:4; unsigned int engine:4;
__le32 prot:1; unsigned int prot:1;
__le32 rsvd2:7; unsigned int rsvd2:7;
}; };
struct dword3 { struct dword3 {
__le32 src_hi:16; unsigned int src_hi:16;
__le32 src_mem:2; unsigned int src_mem:2;
__le32 lsb_cxt_id:8; unsigned int lsb_cxt_id:8;
__le32 rsvd1:5; unsigned int rsvd1:5;
__le32 fixed:1; unsigned int fixed:1;
}; };
union dword4 { union dword4 {
...@@ -567,18 +567,18 @@ union dword4 { ...@@ -567,18 +567,18 @@ union dword4 {
union dword5 { union dword5 {
struct { struct {
__le32 dst_hi:16; unsigned int dst_hi:16;
__le32 dst_mem:2; unsigned int dst_mem:2;
__le32 rsvd1:13; unsigned int rsvd1:13;
__le32 fixed:1; unsigned int fixed:1;
} fields; } fields;
__le32 sha_len_hi; __le32 sha_len_hi;
}; };
struct dword7 { struct dword7 {
__le32 key_hi:16; unsigned int key_hi:16;
__le32 key_mem:2; unsigned int key_mem:2;
__le32 rsvd1:14; unsigned int rsvd1:14;
}; };
struct ccp5_desc { struct ccp5_desc {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment