162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
262306a36Sopenharmony_ci/* Copyright(c) 2007 - 2018 Intel Corporation. */
362306a36Sopenharmony_ci
462306a36Sopenharmony_ci#ifndef _E1000_82575_H_
562306a36Sopenharmony_ci#define _E1000_82575_H_
662306a36Sopenharmony_ci
762306a36Sopenharmony_civoid igb_shutdown_serdes_link_82575(struct e1000_hw *hw);
862306a36Sopenharmony_civoid igb_power_up_serdes_link_82575(struct e1000_hw *hw);
962306a36Sopenharmony_civoid igb_power_down_phy_copper_82575(struct e1000_hw *hw);
1062306a36Sopenharmony_civoid igb_rx_fifo_flush_82575(struct e1000_hw *hw);
1162306a36Sopenharmony_cis32 igb_read_i2c_byte(struct e1000_hw *hw, u8 byte_offset, u8 dev_addr,
1262306a36Sopenharmony_ci		      u8 *data);
1362306a36Sopenharmony_cis32 igb_write_i2c_byte(struct e1000_hw *hw, u8 byte_offset, u8 dev_addr,
1462306a36Sopenharmony_ci		       u8 data);
1562306a36Sopenharmony_ci
1662306a36Sopenharmony_ci#define ID_LED_DEFAULT_82575_SERDES ((ID_LED_DEF1_DEF2 << 12) | \
1762306a36Sopenharmony_ci				     (ID_LED_DEF1_DEF2 <<  8) | \
1862306a36Sopenharmony_ci				     (ID_LED_DEF1_DEF2 <<  4) | \
1962306a36Sopenharmony_ci				     (ID_LED_OFF1_ON2))
2062306a36Sopenharmony_ci
2162306a36Sopenharmony_ci#define E1000_RAR_ENTRIES_82575        16
2262306a36Sopenharmony_ci#define E1000_RAR_ENTRIES_82576        24
2362306a36Sopenharmony_ci#define E1000_RAR_ENTRIES_82580        24
2462306a36Sopenharmony_ci#define E1000_RAR_ENTRIES_I350         32
2562306a36Sopenharmony_ci
2662306a36Sopenharmony_ci#define E1000_SW_SYNCH_MB              0x00000100
2762306a36Sopenharmony_ci#define E1000_STAT_DEV_RST_SET         0x00100000
2862306a36Sopenharmony_ci#define E1000_CTRL_DEV_RST             0x20000000
2962306a36Sopenharmony_ci
3062306a36Sopenharmony_ci/* SRRCTL bit definitions */
3162306a36Sopenharmony_ci#define E1000_SRRCTL_BSIZEPKT_SHIFT                     10 /* Shift _right_ */
3262306a36Sopenharmony_ci#define E1000_SRRCTL_BSIZEHDRSIZE_SHIFT                 2  /* Shift _left_ */
3362306a36Sopenharmony_ci#define E1000_SRRCTL_DESCTYPE_ADV_ONEBUF                0x02000000
3462306a36Sopenharmony_ci#define E1000_SRRCTL_DESCTYPE_HDR_SPLIT_ALWAYS          0x0A000000
3562306a36Sopenharmony_ci#define E1000_SRRCTL_DROP_EN                            0x80000000
3662306a36Sopenharmony_ci#define E1000_SRRCTL_TIMESTAMP                          0x40000000
3762306a36Sopenharmony_ci
3862306a36Sopenharmony_ci
3962306a36Sopenharmony_ci#define E1000_MRQC_ENABLE_RSS_MQ            0x00000002
4062306a36Sopenharmony_ci#define E1000_MRQC_ENABLE_VMDQ              0x00000003
4162306a36Sopenharmony_ci#define E1000_MRQC_RSS_FIELD_IPV4_UDP       0x00400000
4262306a36Sopenharmony_ci#define E1000_MRQC_ENABLE_VMDQ_RSS_MQ       0x00000005
4362306a36Sopenharmony_ci#define E1000_MRQC_RSS_FIELD_IPV6_UDP       0x00800000
4462306a36Sopenharmony_ci#define E1000_MRQC_RSS_FIELD_IPV6_UDP_EX    0x01000000
4562306a36Sopenharmony_ci
4662306a36Sopenharmony_ci#define E1000_EICR_TX_QUEUE ( \
4762306a36Sopenharmony_ci	E1000_EICR_TX_QUEUE0 |    \
4862306a36Sopenharmony_ci	E1000_EICR_TX_QUEUE1 |    \
4962306a36Sopenharmony_ci	E1000_EICR_TX_QUEUE2 |    \
5062306a36Sopenharmony_ci	E1000_EICR_TX_QUEUE3)
5162306a36Sopenharmony_ci
5262306a36Sopenharmony_ci#define E1000_EICR_RX_QUEUE ( \
5362306a36Sopenharmony_ci	E1000_EICR_RX_QUEUE0 |    \
5462306a36Sopenharmony_ci	E1000_EICR_RX_QUEUE1 |    \
5562306a36Sopenharmony_ci	E1000_EICR_RX_QUEUE2 |    \
5662306a36Sopenharmony_ci	E1000_EICR_RX_QUEUE3)
5762306a36Sopenharmony_ci
5862306a36Sopenharmony_ci/* Immediate Interrupt Rx (A.K.A. Low Latency Interrupt) */
5962306a36Sopenharmony_ci#define E1000_IMIREXT_SIZE_BP     0x00001000  /* Packet size bypass */
6062306a36Sopenharmony_ci#define E1000_IMIREXT_CTRL_BP     0x00080000  /* Bypass check of ctrl bits */
6162306a36Sopenharmony_ci
6262306a36Sopenharmony_ci/* Receive Descriptor - Advanced */
6362306a36Sopenharmony_ciunion e1000_adv_rx_desc {
6462306a36Sopenharmony_ci	struct {
6562306a36Sopenharmony_ci		__le64 pkt_addr;             /* Packet buffer address */
6662306a36Sopenharmony_ci		__le64 hdr_addr;             /* Header buffer address */
6762306a36Sopenharmony_ci	} read;
6862306a36Sopenharmony_ci	struct {
6962306a36Sopenharmony_ci		struct {
7062306a36Sopenharmony_ci			struct {
7162306a36Sopenharmony_ci				__le16 pkt_info;   /* RSS type, Packet type */
7262306a36Sopenharmony_ci				__le16 hdr_info;   /* Split Head, buf len */
7362306a36Sopenharmony_ci			} lo_dword;
7462306a36Sopenharmony_ci			union {
7562306a36Sopenharmony_ci				__le32 rss;          /* RSS Hash */
7662306a36Sopenharmony_ci				struct {
7762306a36Sopenharmony_ci					__le16 ip_id;    /* IP id */
7862306a36Sopenharmony_ci					__le16 csum;     /* Packet Checksum */
7962306a36Sopenharmony_ci				} csum_ip;
8062306a36Sopenharmony_ci			} hi_dword;
8162306a36Sopenharmony_ci		} lower;
8262306a36Sopenharmony_ci		struct {
8362306a36Sopenharmony_ci			__le32 status_error;     /* ext status/error */
8462306a36Sopenharmony_ci			__le16 length;           /* Packet length */
8562306a36Sopenharmony_ci			__le16 vlan;             /* VLAN tag */
8662306a36Sopenharmony_ci		} upper;
8762306a36Sopenharmony_ci	} wb;  /* writeback */
8862306a36Sopenharmony_ci};
8962306a36Sopenharmony_ci
9062306a36Sopenharmony_ci#define E1000_RXDADV_HDRBUFLEN_MASK      0x7FE0
9162306a36Sopenharmony_ci#define E1000_RXDADV_HDRBUFLEN_SHIFT     5
9262306a36Sopenharmony_ci#define E1000_RXDADV_STAT_TS             0x10000 /* Pkt was time stamped */
9362306a36Sopenharmony_ci#define E1000_RXDADV_STAT_TSIP           0x08000 /* timestamp in packet */
9462306a36Sopenharmony_ci
9562306a36Sopenharmony_ci/* Transmit Descriptor - Advanced */
9662306a36Sopenharmony_ciunion e1000_adv_tx_desc {
9762306a36Sopenharmony_ci	struct {
9862306a36Sopenharmony_ci		__le64 buffer_addr;    /* Address of descriptor's data buf */
9962306a36Sopenharmony_ci		__le32 cmd_type_len;
10062306a36Sopenharmony_ci		__le32 olinfo_status;
10162306a36Sopenharmony_ci	} read;
10262306a36Sopenharmony_ci	struct {
10362306a36Sopenharmony_ci		__le64 rsvd;       /* Reserved */
10462306a36Sopenharmony_ci		__le32 nxtseq_seed;
10562306a36Sopenharmony_ci		__le32 status;
10662306a36Sopenharmony_ci	} wb;
10762306a36Sopenharmony_ci};
10862306a36Sopenharmony_ci
10962306a36Sopenharmony_ci/* Adv Transmit Descriptor Config Masks */
11062306a36Sopenharmony_ci#define E1000_ADVTXD_MAC_TSTAMP   0x00080000 /* IEEE1588 Timestamp packet */
11162306a36Sopenharmony_ci#define E1000_ADVTXD_DTYP_CTXT    0x00200000 /* Advanced Context Descriptor */
11262306a36Sopenharmony_ci#define E1000_ADVTXD_DTYP_DATA    0x00300000 /* Advanced Data Descriptor */
11362306a36Sopenharmony_ci#define E1000_ADVTXD_DCMD_EOP     0x01000000 /* End of Packet */
11462306a36Sopenharmony_ci#define E1000_ADVTXD_DCMD_IFCS    0x02000000 /* Insert FCS (Ethernet CRC) */
11562306a36Sopenharmony_ci#define E1000_ADVTXD_DCMD_RS      0x08000000 /* Report Status */
11662306a36Sopenharmony_ci#define E1000_ADVTXD_DCMD_DEXT    0x20000000 /* Descriptor extension (1=Adv) */
11762306a36Sopenharmony_ci#define E1000_ADVTXD_DCMD_VLE     0x40000000 /* VLAN pkt enable */
11862306a36Sopenharmony_ci#define E1000_ADVTXD_DCMD_TSE     0x80000000 /* TCP Seg enable */
11962306a36Sopenharmony_ci#define E1000_ADVTXD_PAYLEN_SHIFT    14 /* Adv desc PAYLEN shift */
12062306a36Sopenharmony_ci
12162306a36Sopenharmony_ci/* Context descriptors */
12262306a36Sopenharmony_cistruct e1000_adv_tx_context_desc {
12362306a36Sopenharmony_ci	__le32 vlan_macip_lens;
12462306a36Sopenharmony_ci	__le32 seqnum_seed;
12562306a36Sopenharmony_ci	__le32 type_tucmd_mlhl;
12662306a36Sopenharmony_ci	__le32 mss_l4len_idx;
12762306a36Sopenharmony_ci};
12862306a36Sopenharmony_ci
12962306a36Sopenharmony_ci#define E1000_ADVTXD_MACLEN_SHIFT    9  /* Adv ctxt desc mac len shift */
13062306a36Sopenharmony_ci#define E1000_ADVTXD_TUCMD_L4T_UDP 0x00000000  /* L4 Packet TYPE of UDP */
13162306a36Sopenharmony_ci#define E1000_ADVTXD_TUCMD_IPV4    0x00000400  /* IP Packet Type: 1=IPv4 */
13262306a36Sopenharmony_ci#define E1000_ADVTXD_TUCMD_L4T_TCP 0x00000800  /* L4 Packet TYPE of TCP */
13362306a36Sopenharmony_ci#define E1000_ADVTXD_TUCMD_L4T_SCTP 0x00001000 /* L4 packet TYPE of SCTP */
13462306a36Sopenharmony_ci/* IPSec Encrypt Enable for ESP */
13562306a36Sopenharmony_ci#define E1000_ADVTXD_L4LEN_SHIFT     8  /* Adv ctxt L4LEN shift */
13662306a36Sopenharmony_ci#define E1000_ADVTXD_MSS_SHIFT      16  /* Adv ctxt MSS shift */
13762306a36Sopenharmony_ci/* Adv ctxt IPSec SA IDX mask */
13862306a36Sopenharmony_ci/* Adv ctxt IPSec ESP len mask */
13962306a36Sopenharmony_ci
14062306a36Sopenharmony_ci/* Additional Transmit Descriptor Control definitions */
14162306a36Sopenharmony_ci#define E1000_TXDCTL_QUEUE_ENABLE  0x02000000 /* Enable specific Tx Queue */
14262306a36Sopenharmony_ci/* Tx Queue Arbitration Priority 0=low, 1=high */
14362306a36Sopenharmony_ci
14462306a36Sopenharmony_ci/* Additional Receive Descriptor Control definitions */
14562306a36Sopenharmony_ci#define E1000_RXDCTL_QUEUE_ENABLE  0x02000000 /* Enable specific Rx Queue */
14662306a36Sopenharmony_ci
14762306a36Sopenharmony_ci/* Direct Cache Access (DCA) definitions */
14862306a36Sopenharmony_ci#define E1000_DCA_CTRL_DCA_MODE_DISABLE 0x01 /* DCA Disable */
14962306a36Sopenharmony_ci#define E1000_DCA_CTRL_DCA_MODE_CB2     0x02 /* DCA Mode CB2 */
15062306a36Sopenharmony_ci
15162306a36Sopenharmony_ci#define E1000_DCA_RXCTRL_CPUID_MASK 0x0000001F /* Rx CPUID Mask */
15262306a36Sopenharmony_ci#define E1000_DCA_RXCTRL_DESC_DCA_EN BIT(5) /* DCA Rx Desc enable */
15362306a36Sopenharmony_ci#define E1000_DCA_RXCTRL_HEAD_DCA_EN BIT(6) /* DCA Rx Desc header enable */
15462306a36Sopenharmony_ci#define E1000_DCA_RXCTRL_DATA_DCA_EN BIT(7) /* DCA Rx Desc payload enable */
15562306a36Sopenharmony_ci#define E1000_DCA_RXCTRL_DESC_RRO_EN BIT(9) /* DCA Rx rd Desc Relax Order */
15662306a36Sopenharmony_ci
15762306a36Sopenharmony_ci#define E1000_DCA_TXCTRL_CPUID_MASK 0x0000001F /* Tx CPUID Mask */
15862306a36Sopenharmony_ci#define E1000_DCA_TXCTRL_DESC_DCA_EN BIT(5) /* DCA Tx Desc enable */
15962306a36Sopenharmony_ci#define E1000_DCA_TXCTRL_DESC_RRO_EN BIT(9) /* Tx rd Desc Relax Order */
16062306a36Sopenharmony_ci#define E1000_DCA_TXCTRL_TX_WB_RO_EN BIT(11) /* Tx Desc writeback RO bit */
16162306a36Sopenharmony_ci#define E1000_DCA_TXCTRL_DATA_RRO_EN BIT(13) /* Tx rd data Relax Order */
16262306a36Sopenharmony_ci
16362306a36Sopenharmony_ci/* Additional DCA related definitions, note change in position of CPUID */
16462306a36Sopenharmony_ci#define E1000_DCA_TXCTRL_CPUID_MASK_82576 0xFF000000 /* Tx CPUID Mask */
16562306a36Sopenharmony_ci#define E1000_DCA_RXCTRL_CPUID_MASK_82576 0xFF000000 /* Rx CPUID Mask */
16662306a36Sopenharmony_ci#define E1000_DCA_TXCTRL_CPUID_SHIFT 24 /* Tx CPUID now in the last byte */
16762306a36Sopenharmony_ci#define E1000_DCA_RXCTRL_CPUID_SHIFT 24 /* Rx CPUID now in the last byte */
16862306a36Sopenharmony_ci
16962306a36Sopenharmony_ci/* ETQF register bit definitions */
17062306a36Sopenharmony_ci#define E1000_ETQF_FILTER_ENABLE   BIT(26)
17162306a36Sopenharmony_ci#define E1000_ETQF_1588            BIT(30)
17262306a36Sopenharmony_ci#define E1000_ETQF_IMM_INT         BIT(29)
17362306a36Sopenharmony_ci#define E1000_ETQF_QUEUE_ENABLE    BIT(31)
17462306a36Sopenharmony_ci#define E1000_ETQF_QUEUE_SHIFT     16
17562306a36Sopenharmony_ci#define E1000_ETQF_QUEUE_MASK      0x00070000
17662306a36Sopenharmony_ci#define E1000_ETQF_ETYPE_MASK      0x0000FFFF
17762306a36Sopenharmony_ci
17862306a36Sopenharmony_ci/* FTQF register bit definitions */
17962306a36Sopenharmony_ci#define E1000_FTQF_VF_BP               0x00008000
18062306a36Sopenharmony_ci#define E1000_FTQF_1588_TIME_STAMP     0x08000000
18162306a36Sopenharmony_ci#define E1000_FTQF_MASK                0xF0000000
18262306a36Sopenharmony_ci#define E1000_FTQF_MASK_PROTO_BP       0x10000000
18362306a36Sopenharmony_ci#define E1000_FTQF_MASK_SOURCE_PORT_BP 0x80000000
18462306a36Sopenharmony_ci
18562306a36Sopenharmony_ci#define E1000_NVM_APME_82575          0x0400
18662306a36Sopenharmony_ci#define MAX_NUM_VFS                   8
18762306a36Sopenharmony_ci
18862306a36Sopenharmony_ci#define E1000_DTXSWC_MAC_SPOOF_MASK   0x000000FF /* Per VF MAC spoof control */
18962306a36Sopenharmony_ci#define E1000_DTXSWC_VLAN_SPOOF_MASK  0x0000FF00 /* Per VF VLAN spoof control */
19062306a36Sopenharmony_ci#define E1000_DTXSWC_LLE_MASK         0x00FF0000 /* Per VF Local LB enables */
19162306a36Sopenharmony_ci#define E1000_DTXSWC_VLAN_SPOOF_SHIFT 8
19262306a36Sopenharmony_ci#define E1000_DTXSWC_VMDQ_LOOPBACK_EN BIT(31)  /* global VF LB enable */
19362306a36Sopenharmony_ci
19462306a36Sopenharmony_ci/* Easy defines for setting default pool, would normally be left a zero */
19562306a36Sopenharmony_ci#define E1000_VT_CTL_DEFAULT_POOL_SHIFT 7
19662306a36Sopenharmony_ci#define E1000_VT_CTL_DEFAULT_POOL_MASK  (0x7 << E1000_VT_CTL_DEFAULT_POOL_SHIFT)
19762306a36Sopenharmony_ci
19862306a36Sopenharmony_ci/* Other useful VMD_CTL register defines */
19962306a36Sopenharmony_ci#define E1000_VT_CTL_IGNORE_MAC         BIT(28)
20062306a36Sopenharmony_ci#define E1000_VT_CTL_DISABLE_DEF_POOL   BIT(29)
20162306a36Sopenharmony_ci#define E1000_VT_CTL_VM_REPL_EN         BIT(30)
20262306a36Sopenharmony_ci
20362306a36Sopenharmony_ci/* Per VM Offload register setup */
20462306a36Sopenharmony_ci#define E1000_VMOLR_RLPML_MASK 0x00003FFF /* Long Packet Maximum Length mask */
20562306a36Sopenharmony_ci#define E1000_VMOLR_LPE        0x00010000 /* Accept Long packet */
20662306a36Sopenharmony_ci#define E1000_VMOLR_RSSE       0x00020000 /* Enable RSS */
20762306a36Sopenharmony_ci#define E1000_VMOLR_AUPE       0x01000000 /* Accept untagged packets */
20862306a36Sopenharmony_ci#define E1000_VMOLR_ROMPE      0x02000000 /* Accept overflow multicast */
20962306a36Sopenharmony_ci#define E1000_VMOLR_ROPE       0x04000000 /* Accept overflow unicast */
21062306a36Sopenharmony_ci#define E1000_VMOLR_BAM        0x08000000 /* Accept Broadcast packets */
21162306a36Sopenharmony_ci#define E1000_VMOLR_MPME       0x10000000 /* Multicast promiscuous mode */
21262306a36Sopenharmony_ci#define E1000_VMOLR_STRVLAN    0x40000000 /* Vlan stripping enable */
21362306a36Sopenharmony_ci#define E1000_VMOLR_STRCRC     0x80000000 /* CRC stripping enable */
21462306a36Sopenharmony_ci
21562306a36Sopenharmony_ci#define E1000_DVMOLR_HIDEVLAN  0x20000000 /* Hide vlan enable */
21662306a36Sopenharmony_ci#define E1000_DVMOLR_STRVLAN   0x40000000 /* Vlan stripping enable */
21762306a36Sopenharmony_ci#define E1000_DVMOLR_STRCRC    0x80000000 /* CRC stripping enable */
21862306a36Sopenharmony_ci
21962306a36Sopenharmony_ci#define E1000_VLVF_ARRAY_SIZE     32
22062306a36Sopenharmony_ci#define E1000_VLVF_VLANID_MASK    0x00000FFF
22162306a36Sopenharmony_ci#define E1000_VLVF_POOLSEL_SHIFT  12
22262306a36Sopenharmony_ci#define E1000_VLVF_POOLSEL_MASK   (0xFF << E1000_VLVF_POOLSEL_SHIFT)
22362306a36Sopenharmony_ci#define E1000_VLVF_LVLAN          0x00100000
22462306a36Sopenharmony_ci#define E1000_VLVF_VLANID_ENABLE  0x80000000
22562306a36Sopenharmony_ci
22662306a36Sopenharmony_ci#define E1000_VMVIR_VLANA_DEFAULT      0x40000000 /* Always use default VLAN */
22762306a36Sopenharmony_ci#define E1000_VMVIR_VLANA_NEVER        0x80000000 /* Never insert VLAN tag */
22862306a36Sopenharmony_ci
22962306a36Sopenharmony_ci#define E1000_IOVCTL 0x05BBC
23062306a36Sopenharmony_ci#define E1000_IOVCTL_REUSE_VFQ 0x00000001
23162306a36Sopenharmony_ci
23262306a36Sopenharmony_ci#define E1000_RPLOLR_STRVLAN   0x40000000
23362306a36Sopenharmony_ci#define E1000_RPLOLR_STRCRC    0x80000000
23462306a36Sopenharmony_ci
23562306a36Sopenharmony_ci#define E1000_DTXCTL_8023LL     0x0004
23662306a36Sopenharmony_ci#define E1000_DTXCTL_VLAN_ADDED 0x0008
23762306a36Sopenharmony_ci#define E1000_DTXCTL_OOS_ENABLE 0x0010
23862306a36Sopenharmony_ci#define E1000_DTXCTL_MDP_EN     0x0020
23962306a36Sopenharmony_ci#define E1000_DTXCTL_SPOOF_INT  0x0040
24062306a36Sopenharmony_ci
24162306a36Sopenharmony_ci#define E1000_EEPROM_PCS_AUTONEG_DISABLE_BIT	BIT(14)
24262306a36Sopenharmony_ci
24362306a36Sopenharmony_ci#define ALL_QUEUES   0xFFFF
24462306a36Sopenharmony_ci
24562306a36Sopenharmony_ci/* RX packet buffer size defines */
24662306a36Sopenharmony_ci#define E1000_RXPBS_SIZE_MASK_82576  0x0000007F
24762306a36Sopenharmony_civoid igb_vmdq_set_anti_spoofing_pf(struct e1000_hw *, bool, int);
24862306a36Sopenharmony_civoid igb_vmdq_set_loopback_pf(struct e1000_hw *, bool);
24962306a36Sopenharmony_civoid igb_vmdq_set_replication_pf(struct e1000_hw *, bool);
25062306a36Sopenharmony_ciu16 igb_rxpbs_adjust_82580(u32 data);
25162306a36Sopenharmony_cis32 igb_read_emi_reg(struct e1000_hw *, u16 addr, u16 *data);
25262306a36Sopenharmony_cis32 igb_set_eee_i350(struct e1000_hw *, bool adv1G, bool adv100M);
25362306a36Sopenharmony_cis32 igb_set_eee_i354(struct e1000_hw *, bool adv1G, bool adv100M);
25462306a36Sopenharmony_cis32 igb_get_eee_status_i354(struct e1000_hw *hw, bool *status);
25562306a36Sopenharmony_ci
25662306a36Sopenharmony_ci#define E1000_I2C_THERMAL_SENSOR_ADDR	0xF8
25762306a36Sopenharmony_ci#define E1000_EMC_INTERNAL_DATA		0x00
25862306a36Sopenharmony_ci#define E1000_EMC_INTERNAL_THERM_LIMIT	0x20
25962306a36Sopenharmony_ci#define E1000_EMC_DIODE1_DATA		0x01
26062306a36Sopenharmony_ci#define E1000_EMC_DIODE1_THERM_LIMIT	0x19
26162306a36Sopenharmony_ci#define E1000_EMC_DIODE2_DATA		0x23
26262306a36Sopenharmony_ci#define E1000_EMC_DIODE2_THERM_LIMIT	0x1A
26362306a36Sopenharmony_ci#define E1000_EMC_DIODE3_DATA		0x2A
26462306a36Sopenharmony_ci#define E1000_EMC_DIODE3_THERM_LIMIT	0x30
26562306a36Sopenharmony_ci#endif
266