ice: report netlist version in .info_get
[platform/kernel/linux-starfive.git] / drivers / net / ethernet / intel / ice / ice_type.h
index 4ce5f92..35ea5ad 100644 (file)
@@ -259,6 +259,16 @@ struct ice_nvm_info {
 
 #define ICE_NVM_VER_LEN        32
 
+/* netlist version information */
+struct ice_netlist_ver_info {
+       u32 major;                      /* major high/low */
+       u32 minor;                      /* minor high/low */
+       u32 type;                       /* type high/low */
+       u32 rev;                        /* revision high/low */
+       u32 hash;                       /* SHA-1 hash word */
+       u16 cust_ver;                   /* customer version */
+};
+
 /* Max number of port to queue branches w.r.t topology */
 #define ICE_MAX_TRAFFIC_CLASS 8
 #define ICE_TXSCHED_MAX_BRANCHES ICE_MAX_TRAFFIC_CLASS
@@ -506,6 +516,7 @@ struct ice_hw {
        struct ice_nvm_info nvm;
        struct ice_hw_dev_caps dev_caps;        /* device capabilities */
        struct ice_hw_func_caps func_caps;      /* function capabilities */
+       struct ice_netlist_ver_info netlist_ver; /* netlist version info */
 
        struct ice_switch_info *switch_info;    /* switch filter lists */