1 // SPDX-License-Identifier: GPL-2.0+
6 const struct sparx5_vcap_inst lan969x_vcap_inst_cfg
[] = {
8 .vtype
= VCAP_TYPE_IS0
, /* CLM-0 */
11 .lookups
= SPARX5_IS0_LOOKUPS
,
12 .lookups_per_instance
= SPARX5_IS0_LOOKUPS
/ 3,
13 .first_cid
= SPARX5_VCAP_CID_IS0_L0
,
14 .last_cid
= SPARX5_VCAP_CID_IS0_L2
- 1,
20 .vtype
= VCAP_TYPE_IS0
, /* CLM-1 */
23 .lookups
= SPARX5_IS0_LOOKUPS
,
24 .lookups_per_instance
= SPARX5_IS0_LOOKUPS
/ 3,
25 .first_cid
= SPARX5_VCAP_CID_IS0_L2
,
26 .last_cid
= SPARX5_VCAP_CID_IS0_L4
- 1,
32 .vtype
= VCAP_TYPE_IS0
, /* CLM-2 */
35 .lookups
= SPARX5_IS0_LOOKUPS
,
36 .lookups_per_instance
= SPARX5_IS0_LOOKUPS
/ 3,
37 .first_cid
= SPARX5_VCAP_CID_IS0_L4
,
38 .last_cid
= SPARX5_VCAP_CID_IS0_MAX
,
44 .vtype
= VCAP_TYPE_IS2
, /* IS2-0 */
47 .lookups
= SPARX5_IS2_LOOKUPS
,
48 .lookups_per_instance
= SPARX5_IS2_LOOKUPS
/ 2,
49 .first_cid
= SPARX5_VCAP_CID_IS2_L0
,
50 .last_cid
= SPARX5_VCAP_CID_IS2_L2
- 1,
56 .vtype
= VCAP_TYPE_IS2
, /* IS2-1 */
59 .lookups
= SPARX5_IS2_LOOKUPS
,
60 .lookups_per_instance
= SPARX5_IS2_LOOKUPS
/ 2,
61 .first_cid
= SPARX5_VCAP_CID_IS2_L2
,
62 .last_cid
= SPARX5_VCAP_CID_IS2_MAX
,
68 .vtype
= VCAP_TYPE_ES0
,
69 .lookups
= SPARX5_ES0_LOOKUPS
,
70 .lookups_per_instance
= SPARX5_ES0_LOOKUPS
,
71 .first_cid
= SPARX5_VCAP_CID_ES0_L0
,
72 .last_cid
= SPARX5_VCAP_CID_ES0_MAX
,
77 .vtype
= VCAP_TYPE_ES2
,
78 .lookups
= SPARX5_ES2_LOOKUPS
,
79 .lookups_per_instance
= SPARX5_ES2_LOOKUPS
,
80 .first_cid
= SPARX5_VCAP_CID_ES2_L0
,
81 .last_cid
= SPARX5_VCAP_CID_ES2_MAX
,