📄 e1000_regs.h
字号:
/******************************************************************************* Intel PRO/1000 Linux driver Copyright(c) 1999 - 2007 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*******************************************************************************/#ifndef _E1000_REGS_H_#define _E1000_REGS_H_#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_FCAL 0x00028 /* Flow Control Address Low - RW */#define E1000_FCAH 0x0002C /* Flow Control Address High -RW */#define E1000_FEXTNVM 0x00028 /* Future Extended NVM - 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 E1000_PBA 0x01000 /* Packet Buffer Allocation - RW */#define E1000_PBS 0x01008 /* Packet Buffer Size */#define E1000_EEMNGCTL 0x01010 /* MNG EEprom Control */#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 *//* Convenience macros * * Note: "_n" is the queue number of the register to be written to. * * Example usage: * E1000_RDBAL_REG(current_rx_queue) * */#define E1000_RDBAL_REG(_n) (E1000_RDBAL + (_n << 8))#define E1000_RDBAH_REG(_n) (E1000_RDBAH + (_n << 8))#define E1000_RDLEN_REG(_n) (E1000_RDLEN + (_n << 8))#define E1000_RDH_REG(_n) (E1000_RDH + (_n << 8))#define E1000_RDT_REG(_n) (E1000_RDT + (_n << 8))#define E1000_RXDCTL_REG(_n) (E1000_RXDCTL + (_n << 8))#define E1000_TDBAL_REG(_n) (E1000_TDBAL + (_n << 8))#define E1000_TDBAH_REG(_n) (E1000_TDBAH + (_n << 8))#define E1000_TDLEN_REG(_n) (E1000_TDLEN + (_n << 8))#define E1000_TDH_REG(_n) (E1000_TDH + (_n << 8))#define E1000_TDT_REG(_n) (E1000_TDT + (_n << 8))#define E1000_TXDCTL_REG(_n) (E1000_TXDCTL + (_n << 8))#define E1000_TARC_REG(_n) (E1000_TARC0 + (_n << 8))#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 */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -