📄 e1000_hw.h
字号:
/******************************************************************************* Intel PRO/1000 Linux driver Copyright(c) 1999 - 2006 Intel Corporation. This program is free software; you can redistribute it and/or modify it under the terms and conditions of the GNU General Public License, version 2, as published by the Free Software Foundation. This program is distributed in the hope it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. The full GNU General Public License is included in this distribution in the file called "COPYING". Contact Information: Linux NICS <linux.nics@intel.com> e1000-devel Mailing List <e1000-devel@lists.sourceforge.net> Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497*******************************************************************************//* e1000_hw.h * Structures, enums, and macros for the MAC */#ifndef _E1000_HW_H_#define _E1000_HW_H_/* PCI Device IDs */#define E1000_DEV_ID_82542 0x1000#define E1000_DEV_ID_82543GC_FIBER 0x1001#define E1000_DEV_ID_82543GC_COPPER 0x1004#define E1000_DEV_ID_82544EI_COPPER 0x1008#define E1000_DEV_ID_82544EI_FIBER 0x1009#define E1000_DEV_ID_82544GC_COPPER 0x100C#define E1000_DEV_ID_82544GC_LOM 0x100D#define E1000_DEV_ID_82540EM 0x100E#define E1000_DEV_ID_82540EM_LOM 0x1015#define E1000_DEV_ID_82540EP_LOM 0x1016#define E1000_DEV_ID_82540EP 0x1017#define E1000_DEV_ID_82540EP_LP 0x101E#define E1000_DEV_ID_82545EM_COPPER 0x100F#define E1000_DEV_ID_82545EM_FIBER 0x1011#define E1000_DEV_ID_82545GM_COPPER 0x1026#define E1000_DEV_ID_82545GM_FIBER 0x1027#define E1000_DEV_ID_82545GM_SERDES 0x1028#define E1000_DEV_ID_82546EB_COPPER 0x1010#define E1000_DEV_ID_82546EB_FIBER 0x1012#define E1000_DEV_ID_82546EB_QUAD_COPPER 0x101D#define E1000_DEV_ID_82541EI 0x1013#define E1000_DEV_ID_82541EI_MOBILE 0x1018#define E1000_DEV_ID_82541ER_LOM 0x1014#define E1000_DEV_ID_82541ER 0x1078#define E1000_DEV_ID_82547GI 0x1075#define E1000_DEV_ID_82541GI 0x1076#define E1000_DEV_ID_82541GI_MOBILE 0x1077#define E1000_DEV_ID_82541GI_LF 0x107C#define E1000_DEV_ID_82546GB_COPPER 0x1079#define E1000_DEV_ID_82546GB_FIBER 0x107A#define E1000_DEV_ID_82546GB_SERDES 0x107B#define E1000_DEV_ID_82546GB_PCIE 0x108A#define E1000_DEV_ID_82546GB_QUAD_COPPER 0x1099#define E1000_DEV_ID_82547EI 0x1019#define E1000_DEV_ID_82547EI_MOBILE 0x101A#define E1000_DEV_ID_82571EB_COPPER 0x105E#define E1000_DEV_ID_82571EB_FIBER 0x105F#define E1000_DEV_ID_82571EB_SERDES 0x1060#define E1000_DEV_ID_82571EB_QUAD_COPPER 0x10A4#define E1000_DEV_ID_82571PT_QUAD_COPPER 0x10D5#define E1000_DEV_ID_82571EB_QUAD_FIBER 0x10A5#define E1000_DEV_ID_82571EB_QUAD_COPPER_LOWPROFILE 0x10BC#define E1000_DEV_ID_82571EB_SERDES_DUAL 0x10D9#define E1000_DEV_ID_82571EB_SERDES_QUAD 0x10DA#define E1000_DEV_ID_82572EI_COPPER 0x107D#define E1000_DEV_ID_82572EI_FIBER 0x107E#define E1000_DEV_ID_82572EI_SERDES 0x107F#define E1000_DEV_ID_82572EI 0x10B9#define E1000_DEV_ID_82573E 0x108B#define E1000_DEV_ID_82573E_IAMT 0x108C#define E1000_DEV_ID_82573L 0x109A#define E1000_DEV_ID_82546GB_QUAD_COPPER_KSP3 0x10B5#define E1000_DEV_ID_80003ES2LAN_COPPER_DPT 0x1096#define E1000_DEV_ID_80003ES2LAN_SERDES_DPT 0x1098#define E1000_DEV_ID_80003ES2LAN_COPPER_SPT 0x10BA#define E1000_DEV_ID_80003ES2LAN_SERDES_SPT 0x10BB#define E1000_DEV_ID_ICH8_IGP_M_AMT 0x1049#define E1000_DEV_ID_ICH8_IGP_AMT 0x104A#define E1000_DEV_ID_ICH8_IGP_C 0x104B#define E1000_DEV_ID_ICH8_IFE 0x104C#define E1000_DEV_ID_ICH8_IFE_GT 0x10C4#define E1000_DEV_ID_ICH8_IFE_G 0x10C5#define E1000_DEV_ID_ICH8_IGP_M 0x104D/* Register Set. (82543, 82544) * * Registers are defined to be 32 bits and should be accessed as 32 bit values. * These registers are physically located on the NIC, but are mapped into the * host memory address space. * * RW - register is both readable and writable * RO - register is read only * WO - register is write only * R/clr - register is read only and is cleared when read * A - register array */#define E1000_CTRL 0x00000 /* Device Control - RW */#define E1000_CTRL_DUP 0x00004 /* Device Control Duplicate (Shadow) - RW */#define E1000_STATUS 0x00008 /* Device Status - RO */#define E1000_EECD 0x00010 /* EEPROM/Flash Control - RW */#define E1000_EERD 0x00014 /* EEPROM Read - RW */#define E1000_CTRL_EXT 0x00018 /* Extended Device Control - RW */#define E1000_FLA 0x0001C /* Flash Access - RW */#define E1000_MDIC 0x00020 /* MDI Control - RW */#define E1000_SCTL 0x00024 /* SerDes Control - RW */#define E1000_FEXTNVM 0x00028 /* Future Extended NVM register */#define E1000_FCAL 0x00028 /* Flow Control Address Low - RW */#define E1000_FCAH 0x0002C /* Flow Control Address High -RW */#define E1000_FCT 0x00030 /* Flow Control Type - RW */#define E1000_VET 0x00038 /* VLAN Ether Type - RW */#define E1000_ICR 0x000C0 /* Interrupt Cause Read - R/clr */#define E1000_ITR 0x000C4 /* Interrupt Throttling Rate - RW */#define E1000_ICS 0x000C8 /* Interrupt Cause Set - WO */#define E1000_IMS 0x000D0 /* Interrupt Mask Set - RW */#define E1000_IMC 0x000D8 /* Interrupt Mask Clear - WO */#define E1000_IAM 0x000E0 /* Interrupt Acknowledge Auto Mask */#define E1000_RCTL 0x00100 /* RX Control - RW */#define E1000_RDTR1 0x02820 /* RX Delay Timer (1) - RW */#define E1000_RDBAL1 0x02900 /* RX Descriptor Base Address Low (1) - RW */#define E1000_RDBAH1 0x02904 /* RX Descriptor Base Address High (1) - RW */#define E1000_RDLEN1 0x02908 /* RX Descriptor Length (1) - RW */#define E1000_RDH1 0x02910 /* RX Descriptor Head (1) - RW */#define E1000_RDT1 0x02918 /* RX Descriptor Tail (1) - RW */#define E1000_FCTTV 0x00170 /* Flow Control Transmit Timer Value - RW */#define E1000_TXCW 0x00178 /* TX Configuration Word - RW */#define E1000_RXCW 0x00180 /* RX Configuration Word - RO */#define E1000_TCTL 0x00400 /* TX Control - RW */#define E1000_TCTL_EXT 0x00404 /* Extended TX Control - RW */#define E1000_TIPG 0x00410 /* TX Inter-packet gap -RW */#define E1000_TBT 0x00448 /* TX Burst Timer - RW */#define E1000_AIT 0x00458 /* Adaptive Interframe Spacing Throttle - RW */#define E1000_LEDCTL 0x00E00 /* LED Control - RW */#define E1000_EXTCNF_CTRL 0x00F00 /* Extended Configuration Control */#define E1000_EXTCNF_SIZE 0x00F08 /* Extended Configuration Size */#define E1000_PHY_CTRL 0x00F10 /* PHY Control Register in CSR */#define FEXTNVM_SW_CONFIG 0x0001#define E1000_PBA 0x01000 /* Packet Buffer Allocation - RW */#define E1000_PBS 0x01008 /* Packet Buffer Size */#define E1000_EEMNGCTL 0x01010 /* MNG EEprom Control */#define E1000_FLASH_UPDATES 1000#define E1000_EEARBC 0x01024 /* EEPROM Auto Read Bus Control */#define E1000_FLASHT 0x01028 /* FLASH Timer Register */#define E1000_EEWR 0x0102C /* EEPROM Write Register - RW */#define E1000_FLSWCTL 0x01030 /* FLASH control register */#define E1000_FLSWDATA 0x01034 /* FLASH data register */#define E1000_FLSWCNT 0x01038 /* FLASH Access Counter */#define E1000_FLOP 0x0103C /* FLASH Opcode Register */#define E1000_ERT 0x02008 /* Early Rx Threshold - RW */#define E1000_FCRTL 0x02160 /* Flow Control Receive Threshold Low - RW */#define E1000_FCRTH 0x02168 /* Flow Control Receive Threshold High - RW */#define E1000_PSRCTL 0x02170 /* Packet Split Receive Control - RW */#define E1000_RDBAL 0x02800 /* RX Descriptor Base Address Low - RW */#define E1000_RDBAH 0x02804 /* RX Descriptor Base Address High - RW */#define E1000_RDLEN 0x02808 /* RX Descriptor Length - RW */#define E1000_RDH 0x02810 /* RX Descriptor Head - RW */#define E1000_RDT 0x02818 /* RX Descriptor Tail - RW */#define E1000_RDTR 0x02820 /* RX Delay Timer - RW */#define E1000_RDBAL0 E1000_RDBAL /* RX Desc Base Address Low (0) - RW */#define E1000_RDBAH0 E1000_RDBAH /* RX Desc Base Address High (0) - RW */#define E1000_RDLEN0 E1000_RDLEN /* RX Desc Length (0) - RW */#define E1000_RDH0 E1000_RDH /* RX Desc Head (0) - RW */#define E1000_RDT0 E1000_RDT /* RX Desc Tail (0) - RW */#define E1000_RDTR0 E1000_RDTR /* RX Delay Timer (0) - RW */#define E1000_RXDCTL 0x02828 /* RX Descriptor Control queue 0 - RW */#define E1000_RXDCTL1 0x02928 /* RX Descriptor Control queue 1 - RW */#define E1000_RADV 0x0282C /* RX Interrupt Absolute Delay Timer - RW */#define E1000_RSRPD 0x02C00 /* RX Small Packet Detect - RW */#define E1000_RAID 0x02C08 /* Receive Ack Interrupt Delay - RW */#define E1000_TXDMAC 0x03000 /* TX DMA Control - RW */#define E1000_KABGTXD 0x03004 /* AFE Band Gap Transmit Ref Data */#define E1000_TDFH 0x03410 /* TX Data FIFO Head - RW */#define E1000_TDFT 0x03418 /* TX Data FIFO Tail - RW */#define E1000_TDFHS 0x03420 /* TX Data FIFO Head Saved - RW */#define E1000_TDFTS 0x03428 /* TX Data FIFO Tail Saved - RW */#define E1000_TDFPC 0x03430 /* TX Data FIFO Packet Count - RW */#define E1000_TDBAL 0x03800 /* TX Descriptor Base Address Low - RW */#define E1000_TDBAH 0x03804 /* TX Descriptor Base Address High - RW */#define E1000_TDLEN 0x03808 /* TX Descriptor Length - RW */#define E1000_TDH 0x03810 /* TX Descriptor Head - RW */#define E1000_TDT 0x03818 /* TX Descripotr Tail - RW */#define E1000_TIDV 0x03820 /* TX Interrupt Delay Value - RW */#define E1000_TXDCTL 0x03828 /* TX Descriptor Control - RW */#define E1000_TADV 0x0382C /* TX Interrupt Absolute Delay Val - RW */#define E1000_TSPMT 0x03830 /* TCP Segmentation PAD & Min Threshold - RW */#define E1000_TARC0 0x03840 /* TX Arbitration Count (0) */#define E1000_TDBAL1 0x03900 /* TX Desc Base Address Low (1) - RW */#define E1000_TDBAH1 0x03904 /* TX Desc Base Address High (1) - RW */#define E1000_TDLEN1 0x03908 /* TX Desc Length (1) - RW */#define E1000_TDH1 0x03910 /* TX Desc Head (1) - RW */#define E1000_TDT1 0x03918 /* TX Desc Tail (1) - RW */#define E1000_TXDCTL1 0x03928 /* TX Descriptor Control (1) - RW */#define E1000_TARC1 0x03940 /* TX Arbitration Count (1) */#define E1000_CRCERRS 0x04000 /* CRC Error Count - R/clr */#define E1000_ALGNERRC 0x04004 /* Alignment Error Count - R/clr */#define E1000_SYMERRS 0x04008 /* Symbol Error Count - R/clr */#define E1000_RXERRC 0x0400C /* Receive Error Count - R/clr */#define E1000_MPC 0x04010 /* Missed Packet Count - R/clr */#define E1000_SCC 0x04014 /* Single Collision Count - R/clr */#define E1000_ECOL 0x04018 /* Excessive Collision Count - R/clr */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -