hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/drivers/net/ethernet/intel/e1000e/e1000.h
....@@ -13,7 +13,6 @@
1313 #include <linux/io.h>
1414 #include <linux/netdevice.h>
1515 #include <linux/pci.h>
16
-#include <linux/pci-aspm.h>
1716 #include <linux/crc32.h>
1817 #include <linux/if_vlan.h>
1918 #include <linux/timecounter.h>
....@@ -114,7 +113,8 @@
114113 board_pch2lan,
115114 board_pch_lpt,
116115 board_pch_spt,
117
- board_pch_cnp
116
+ board_pch_cnp,
117
+ board_pch_tgp
118118 };
119119
120120 struct e1000_ps_page {
....@@ -437,6 +437,7 @@
437437 #define FLAG2_DFLT_CRC_STRIPPING BIT(12)
438438 #define FLAG2_CHECK_RX_HWTSTAMP BIT(13)
439439 #define FLAG2_CHECK_SYSTIM_OVERFLOW BIT(14)
440
+#define FLAG2_ENABLE_S0IX_FLOWS BIT(15)
440441
441442 #define E1000_RX_DESC_PS(R, i) \
442443 (&(((union e1000_rx_desc_packet_split *)((R).desc))[i]))
....@@ -461,7 +462,6 @@
461462 };
462463
463464 extern char e1000e_driver_name[];
464
-extern const char e1000e_driver_version[];
465465
466466 void e1000e_check_options(struct e1000_adapter *adapter);
467467 void e1000e_set_ethtool_ops(struct net_device *netdev);
....@@ -500,11 +500,15 @@
500500 extern const struct e1000_info e1000_pch_lpt_info;
501501 extern const struct e1000_info e1000_pch_spt_info;
502502 extern const struct e1000_info e1000_pch_cnp_info;
503
+extern const struct e1000_info e1000_pch_tgp_info;
503504 extern const struct e1000_info e1000_es2_info;
504505
505506 void e1000e_ptp_init(struct e1000_adapter *adapter);
506507 void e1000e_ptp_remove(struct e1000_adapter *adapter);
507508
509
+u64 e1000e_read_systim(struct e1000_adapter *adapter,
510
+ struct ptp_system_timestamp *sts);
511
+
508512 static inline s32 e1000_phy_hw_reset(struct e1000_hw *hw)
509513 {
510514 return hw->phy.ops.reset(hw);