1 /* SPDX-License-Identifier: Apache-2.0
2 * Copyright (c) 2023 Cisco Systems, Inc.
5 #ifndef _OCT_HW_DEFS_H_
6 #define _OCT_HW_DEFS_H_
8 #include <vppinfra/clib.h>
9 #include <base/roc_api.h>
23 } oct_nix_lf_cq_op_status_t;
25 STATIC_ASSERT_SIZEOF (oct_nix_lf_cq_op_status_t, 8);
38 } oct_npa_lf_aura_batch_free0_t;
40 STATIC_ASSERT_SIZEOF (oct_npa_lf_aura_batch_free0_t, 8);
44 oct_npa_lf_aura_batch_free0_t w0;
46 } oct_npa_lf_aura_batch_free_line_t;
48 STATIC_ASSERT_SIZEOF (oct_npa_lf_aura_batch_free_line_t, 128);
52 struct npa_batch_alloc_compare_s compare_s;
54 } oct_npa_batch_alloc_compare_t;
60 union nix_send_hdr_w0_u hdr_w0;
61 union nix_send_hdr_w1_u hdr_w1;
62 union nix_send_sg_s sg[8];
67 STATIC_ASSERT_SIZEOF (oct_tx_desc_t, 80);
75 STATIC_ASSERT_SIZEOF (lmt_line_t, 1 << ROC_LMT_LINE_SIZE_LOG2);
79 union nix_rx_parse_u f;
83 STATIC_ASSERT_SIZEOF (oct_nix_rx_parse_t, 56);
87 CLIB_ALIGN_MARK (desc, 128);
88 struct nix_cqe_hdr_s hdr;
89 oct_nix_rx_parse_t parse;
90 struct nix_rx_sg_s sg0;
92 struct nix_rx_sg_s sg1;
94 } oct_nix_rx_cqe_desc_t;
96 STATIC_ASSERT_SIZEOF (oct_nix_rx_cqe_desc_t, 128);
98 #endif /* _OCT_HW_DEFS_H_ */