@@ -838,12 +838,7 @@ sja1105_static_config_get_length(const struct sja1105_static_config *config)
838838/* Compatibility matrices */
839839
840840/* SJA1105E: First generation, no TTEthernet */
841- struct sja1105_table_ops sja1105e_table_ops [BLK_IDX_MAX ] = {
842- [BLK_IDX_SCHEDULE ] = {0 },
843- [BLK_IDX_SCHEDULE_ENTRY_POINTS ] = {0 },
844- [BLK_IDX_VL_LOOKUP ] = {0 },
845- [BLK_IDX_VL_POLICING ] = {0 },
846- [BLK_IDX_VL_FORWARDING ] = {0 },
841+ const struct sja1105_table_ops sja1105e_table_ops [BLK_IDX_MAX ] = {
847842 [BLK_IDX_L2_LOOKUP ] = {
848843 .packing = sja1105et_l2_lookup_entry_packing ,
849844 .unpacked_entry_size = sizeof (struct sja1105_l2_lookup_entry ),
@@ -874,9 +869,6 @@ struct sja1105_table_ops sja1105e_table_ops[BLK_IDX_MAX] = {
874869 .packed_entry_size = SJA1105ET_SIZE_MAC_CONFIG_ENTRY ,
875870 .max_entry_count = SJA1105_MAX_MAC_CONFIG_COUNT ,
876871 },
877- [BLK_IDX_SCHEDULE_PARAMS ] = {0 },
878- [BLK_IDX_SCHEDULE_ENTRY_POINTS_PARAMS ] = {0 },
879- [BLK_IDX_VL_FORWARDING_PARAMS ] = {0 },
880872 [BLK_IDX_L2_LOOKUP_PARAMS ] = {
881873 .packing = sja1105et_l2_lookup_params_entry_packing ,
882874 .unpacked_entry_size = sizeof (struct sja1105_l2_lookup_params_entry ),
@@ -916,7 +908,7 @@ struct sja1105_table_ops sja1105e_table_ops[BLK_IDX_MAX] = {
916908};
917909
918910/* SJA1105T: First generation, TTEthernet */
919- struct sja1105_table_ops sja1105t_table_ops [BLK_IDX_MAX ] = {
911+ const struct sja1105_table_ops sja1105t_table_ops [BLK_IDX_MAX ] = {
920912 [BLK_IDX_SCHEDULE ] = {
921913 .packing = sja1105_schedule_entry_packing ,
922914 .unpacked_entry_size = sizeof (struct sja1105_schedule_entry ),
@@ -1034,12 +1026,7 @@ struct sja1105_table_ops sja1105t_table_ops[BLK_IDX_MAX] = {
10341026};
10351027
10361028/* SJA1105P: Second generation, no TTEthernet, no SGMII */
1037- struct sja1105_table_ops sja1105p_table_ops [BLK_IDX_MAX ] = {
1038- [BLK_IDX_SCHEDULE ] = {0 },
1039- [BLK_IDX_SCHEDULE_ENTRY_POINTS ] = {0 },
1040- [BLK_IDX_VL_LOOKUP ] = {0 },
1041- [BLK_IDX_VL_POLICING ] = {0 },
1042- [BLK_IDX_VL_FORWARDING ] = {0 },
1029+ const struct sja1105_table_ops sja1105p_table_ops [BLK_IDX_MAX ] = {
10431030 [BLK_IDX_L2_LOOKUP ] = {
10441031 .packing = sja1105pqrs_l2_lookup_entry_packing ,
10451032 .unpacked_entry_size = sizeof (struct sja1105_l2_lookup_entry ),
@@ -1070,9 +1057,6 @@ struct sja1105_table_ops sja1105p_table_ops[BLK_IDX_MAX] = {
10701057 .packed_entry_size = SJA1105PQRS_SIZE_MAC_CONFIG_ENTRY ,
10711058 .max_entry_count = SJA1105_MAX_MAC_CONFIG_COUNT ,
10721059 },
1073- [BLK_IDX_SCHEDULE_PARAMS ] = {0 },
1074- [BLK_IDX_SCHEDULE_ENTRY_POINTS_PARAMS ] = {0 },
1075- [BLK_IDX_VL_FORWARDING_PARAMS ] = {0 },
10761060 [BLK_IDX_L2_LOOKUP_PARAMS ] = {
10771061 .packing = sja1105pqrs_l2_lookup_params_entry_packing ,
10781062 .unpacked_entry_size = sizeof (struct sja1105_l2_lookup_params_entry ),
@@ -1112,7 +1096,7 @@ struct sja1105_table_ops sja1105p_table_ops[BLK_IDX_MAX] = {
11121096};
11131097
11141098/* SJA1105Q: Second generation, TTEthernet, no SGMII */
1115- struct sja1105_table_ops sja1105q_table_ops [BLK_IDX_MAX ] = {
1099+ const struct sja1105_table_ops sja1105q_table_ops [BLK_IDX_MAX ] = {
11161100 [BLK_IDX_SCHEDULE ] = {
11171101 .packing = sja1105_schedule_entry_packing ,
11181102 .unpacked_entry_size = sizeof (struct sja1105_schedule_entry ),
@@ -1230,12 +1214,7 @@ struct sja1105_table_ops sja1105q_table_ops[BLK_IDX_MAX] = {
12301214};
12311215
12321216/* SJA1105R: Second generation, no TTEthernet, SGMII */
1233- struct sja1105_table_ops sja1105r_table_ops [BLK_IDX_MAX ] = {
1234- [BLK_IDX_SCHEDULE ] = {0 },
1235- [BLK_IDX_SCHEDULE_ENTRY_POINTS ] = {0 },
1236- [BLK_IDX_VL_LOOKUP ] = {0 },
1237- [BLK_IDX_VL_POLICING ] = {0 },
1238- [BLK_IDX_VL_FORWARDING ] = {0 },
1217+ const struct sja1105_table_ops sja1105r_table_ops [BLK_IDX_MAX ] = {
12391218 [BLK_IDX_L2_LOOKUP ] = {
12401219 .packing = sja1105pqrs_l2_lookup_entry_packing ,
12411220 .unpacked_entry_size = sizeof (struct sja1105_l2_lookup_entry ),
@@ -1266,9 +1245,6 @@ struct sja1105_table_ops sja1105r_table_ops[BLK_IDX_MAX] = {
12661245 .packed_entry_size = SJA1105PQRS_SIZE_MAC_CONFIG_ENTRY ,
12671246 .max_entry_count = SJA1105_MAX_MAC_CONFIG_COUNT ,
12681247 },
1269- [BLK_IDX_SCHEDULE_PARAMS ] = {0 },
1270- [BLK_IDX_SCHEDULE_ENTRY_POINTS_PARAMS ] = {0 },
1271- [BLK_IDX_VL_FORWARDING_PARAMS ] = {0 },
12721248 [BLK_IDX_L2_LOOKUP_PARAMS ] = {
12731249 .packing = sja1105pqrs_l2_lookup_params_entry_packing ,
12741250 .unpacked_entry_size = sizeof (struct sja1105_l2_lookup_params_entry ),
@@ -1308,7 +1284,7 @@ struct sja1105_table_ops sja1105r_table_ops[BLK_IDX_MAX] = {
13081284};
13091285
13101286/* SJA1105S: Second generation, TTEthernet, SGMII */
1311- struct sja1105_table_ops sja1105s_table_ops [BLK_IDX_MAX ] = {
1287+ const struct sja1105_table_ops sja1105s_table_ops [BLK_IDX_MAX ] = {
13121288 [BLK_IDX_SCHEDULE ] = {
13131289 .packing = sja1105_schedule_entry_packing ,
13141290 .unpacked_entry_size = sizeof (struct sja1105_schedule_entry ),
0 commit comments