net: lan969x: add autogenerated VCAP information
Platform VCAP data for each VCAP instance is auto-generated using an internal Microchip tool. The generated VCAP data contains information about keyfields, keyfield sets, actionfields, actionfield sets and typegroups, which in combination are used to encode and decode rules in the VCAP. Add the auto-generated VCAP file lan969x_vcap_ag_api.c and assign the two structs: lan969x_vcaps and lan969x_vcap_stats to the match data. Reviewed-by: Steen Hegelund <Steen.Hegelund@microchip.com> Reviewed-by: Jens Emil Schulz Østergaard <jensemil.schulzostergaard@microchip.com> Signed-off-by: Daniel Machon <daniel.machon@microchip.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
committed by
Paolo Abeni
parent
d4c97e39bf
commit
7ef750e490
@@ -5,7 +5,8 @@
|
||||
|
||||
obj-$(CONFIG_LAN969X_SWITCH) += lan969x-switch.o
|
||||
|
||||
lan969x-switch-y := lan969x_regs.o lan969x.o lan969x_calendar.o
|
||||
lan969x-switch-y := lan969x_regs.o lan969x.o lan969x_calendar.o \
|
||||
lan969x_vcap_ag_api.o
|
||||
|
||||
# Provide include files
|
||||
ccflags-y += -I$(srctree)/drivers/net/ethernet/microchip/fdma
|
||||
|
||||
@@ -319,6 +319,8 @@ static const struct sparx5_consts lan969x_consts = {
|
||||
.qres_max_prio_idx = 315,
|
||||
.qres_max_colour_idx = 323,
|
||||
.tod_pin = 4,
|
||||
.vcaps = lan969x_vcaps,
|
||||
.vcap_stats = &lan969x_vcap_stats,
|
||||
};
|
||||
|
||||
static const struct sparx5_ops lan969x_ops = {
|
||||
|
||||
@@ -9,10 +9,15 @@
|
||||
|
||||
#include "../sparx5/sparx5_main.h"
|
||||
#include "../sparx5/sparx5_regs.h"
|
||||
#include "../sparx5/sparx5_vcap_impl.h"
|
||||
|
||||
/* lan969x.c */
|
||||
extern const struct sparx5_match_data lan969x_desc;
|
||||
|
||||
/* lan969x_vcap_ag_api.c */
|
||||
extern const struct vcap_statistics lan969x_vcap_stats;
|
||||
extern const struct vcap_info lan969x_vcaps[];
|
||||
|
||||
/* lan969x_regs.c */
|
||||
extern const unsigned int lan969x_tsize[TSIZE_LAST];
|
||||
extern const unsigned int lan969x_raddr[RADDR_LAST];
|
||||
|
||||
3843
drivers/net/ethernet/microchip/lan969x/lan969x_vcap_ag_api.c
Normal file
3843
drivers/net/ethernet/microchip/lan969x/lan969x_vcap_ag_api.c
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user