123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328 |
- #ifndef _CE_STAT_DESC_H_
- #define _CE_STAT_DESC_H_
- #if !defined(__ASSEMBLER__)
- #endif
- #define NUM_OF_DWORDS_CE_STAT_DESC 4
- struct ce_stat_desc {
- uint32_t ce_res_5 : 8,
- toeplitz_en : 1,
- src_swap : 1,
- dest_swap : 1,
- gather : 1,
- ce_res_6 : 4,
- length : 16;
- uint32_t toeplitz_hash_0 : 32;
- uint32_t toeplitz_hash_1 : 32;
- uint32_t fw_metadata : 16,
- ce_res_7 : 4,
- ring_id : 8,
- looping_count : 4;
- };
- #define CE_STAT_DESC_0_CE_RES_5_OFFSET 0x00000000
- #define CE_STAT_DESC_0_CE_RES_5_LSB 0
- #define CE_STAT_DESC_0_CE_RES_5_MASK 0x000000ff
- #define CE_STAT_DESC_0_TOEPLITZ_EN_OFFSET 0x00000000
- #define CE_STAT_DESC_0_TOEPLITZ_EN_LSB 8
- #define CE_STAT_DESC_0_TOEPLITZ_EN_MASK 0x00000100
- #define CE_STAT_DESC_0_SRC_SWAP_OFFSET 0x00000000
- #define CE_STAT_DESC_0_SRC_SWAP_LSB 9
- #define CE_STAT_DESC_0_SRC_SWAP_MASK 0x00000200
- #define CE_STAT_DESC_0_DEST_SWAP_OFFSET 0x00000000
- #define CE_STAT_DESC_0_DEST_SWAP_LSB 10
- #define CE_STAT_DESC_0_DEST_SWAP_MASK 0x00000400
- #define CE_STAT_DESC_0_GATHER_OFFSET 0x00000000
- #define CE_STAT_DESC_0_GATHER_LSB 11
- #define CE_STAT_DESC_0_GATHER_MASK 0x00000800
- #define CE_STAT_DESC_0_CE_RES_6_OFFSET 0x00000000
- #define CE_STAT_DESC_0_CE_RES_6_LSB 12
- #define CE_STAT_DESC_0_CE_RES_6_MASK 0x0000f000
- #define CE_STAT_DESC_0_LENGTH_OFFSET 0x00000000
- #define CE_STAT_DESC_0_LENGTH_LSB 16
- #define CE_STAT_DESC_0_LENGTH_MASK 0xffff0000
- #define CE_STAT_DESC_1_TOEPLITZ_HASH_0_OFFSET 0x00000004
- #define CE_STAT_DESC_1_TOEPLITZ_HASH_0_LSB 0
- #define CE_STAT_DESC_1_TOEPLITZ_HASH_0_MASK 0xffffffff
- #define CE_STAT_DESC_2_TOEPLITZ_HASH_1_OFFSET 0x00000008
- #define CE_STAT_DESC_2_TOEPLITZ_HASH_1_LSB 0
- #define CE_STAT_DESC_2_TOEPLITZ_HASH_1_MASK 0xffffffff
- #define CE_STAT_DESC_3_FW_METADATA_OFFSET 0x0000000c
- #define CE_STAT_DESC_3_FW_METADATA_LSB 0
- #define CE_STAT_DESC_3_FW_METADATA_MASK 0x0000ffff
- #define CE_STAT_DESC_3_CE_RES_7_OFFSET 0x0000000c
- #define CE_STAT_DESC_3_CE_RES_7_LSB 16
- #define CE_STAT_DESC_3_CE_RES_7_MASK 0x000f0000
- #define CE_STAT_DESC_3_RING_ID_OFFSET 0x0000000c
- #define CE_STAT_DESC_3_RING_ID_LSB 20
- #define CE_STAT_DESC_3_RING_ID_MASK 0x0ff00000
- #define CE_STAT_DESC_3_LOOPING_COUNT_OFFSET 0x0000000c
- #define CE_STAT_DESC_3_LOOPING_COUNT_LSB 28
- #define CE_STAT_DESC_3_LOOPING_COUNT_MASK 0xf0000000
- #endif
|