forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/net/ethernet/cavium/liquidio/octeon_device.h
....@@ -316,6 +316,8 @@
316316 * device pointer (used for OS specific calls).
317317 */
318318 int rx_on;
319
+ int fec;
320
+ int fec_boot;
319321 int napi_enabled;
320322 int gmxport;
321323 struct net_device *netdev;
....@@ -396,6 +398,8 @@
396398 u16 vf_vlantci[MAX_POSSIBLE_VFS];
397399
398400 int vf_linkstate[MAX_POSSIBLE_VFS];
401
+
402
+ bool vf_spoofchk[MAX_POSSIBLE_VFS];
399403
400404 u64 vf_drv_loaded_mask;
401405 };
....@@ -607,6 +611,9 @@
607611 u8 speed_boot;
608612 u8 speed_setting;
609613 u8 no_speed_setting;
614
+
615
+ u32 vfstats_poll;
616
+#define LIO_VFSTATS_POLL 10
610617 };
611618
612619 #define OCT_DRV_ONLINE 1
....@@ -704,18 +711,6 @@
704711 * @return octeon device id
705712 */
706713 int lio_get_device_id(void *dev);
707
-
708
-static inline u16 OCTEON_MAJOR_REV(struct octeon_device *oct)
709
-{
710
- u16 rev = (oct->rev_id & 0xC) >> 2;
711
-
712
- return (rev == 0) ? 1 : rev;
713
-}
714
-
715
-static inline u16 OCTEON_MINOR_REV(struct octeon_device *oct)
716
-{
717
- return oct->rev_id & 0x3;
718
-}
719714
720715 /** Read windowed register.
721716 * @param oct - pointer to the Octeon device.