📄 dec21140.h
字号:
#define LAN_CSR0_PBL16 0x00001000 /* Programmable Burst Length =16*/
#define LAN_CSR0_PBL32 0x00002000 /* Programmable Burst Length =32*/
#define LAN_CSR0_CAL 0x00000000 /* Cache Alignment */
#define LAN_CSR0_CAL08L (1 << 14) /* Cache Alignment - 8 ULONGs */
#define LAN_CSR0_CAL16L (2 << 14) /* Cache Alignment - 16 ULONGs */
#define LAN_CSR0_CAL32L (3 << 14) /* Cache Alignment - 32 ULONGs */
#define LAN_CSR0_DAS 0x00010000 /* Diagnostic Address Space */
#define LAN_CSR0_TAP 0x00060000 /* Transmit Auto Polling */
#define LAN_CSR0_TAP00 0x00000000 /* Transmit Auto Polling */
#define LAN_CSR0_TAP02 0x00020000 /* Transmit Auto Polling */
#define LAN_CSR0_TAP08 0x00040000 /* Transmit Auto Polling */
#define LAN_CSR0_TAP16 0x00060000 /* Transmit Auto Polling */
#define LAN_CSR0_DBO 0x00100000 /* Descriptor Byte Ordering */
#define LAN_CSR0_RME (1 << 21) /* Read Multiple */
/*---------------------------------------------------------------------*/
/* Control & Status Register 3 - Descriptor List Address - Receive */
/*---------------------------------------------------------------------*/
#define LAN_CSR3_DSARCV 0xFFFFFFFC /* Valid bits */
/*---------------------------------------------------------------------*/
/* Control & Status Register 4 - Descriptor List Address - Transmit */
/*---------------------------------------------------------------------*/
#define LAN_CSR4_DSAXMIT 0xFFFFFFFC /* Valid bits */
/*---------------------------------------------------------------------*/
/* Control & Status Register 5 - Status Register */
/*---------------------------------------------------------------------*/
#define LAN_CSR5_TI 0x00000001 /* Transmitter Interrupt */
#define LAN_CSR5_TPS 0x00000002 /* Transmit Process Stopped */
#define LAN_CSR5_TU 0x00000004 /* Transmit Buffer Unavailable */
#define LAN_CSR5_TJT 0x00000008 /* Transmit Jabber Time */
#define LAN_CSR5_UNF 0x00000020 /* Transmit Underflow */
#define LAN_CSR5_RI 0x00000040 /* Receive Interrupt */
#define LAN_CSR5_RU 0x00000080 /* Receive Buffer Unavailable */
#define LAN_CSR5_RPS 0x00000100 /* Receive Process Stopped */
#define LAN_CSR5_RWT 0x00000200 /* Receive WatchDog Timeout */
#define LAN_CSR5_GTE (1 << 11) /* general purpose timer exp */
#define LAN_CSR5_LNF 0x00001000 /* Link Fail */
#define LAN_CSR5_SE 0x00002000 /* System Fail */
#define LAN_CSR5_AIS 0x00008000 /* Abnormal Interrupt Summary */
#define LAN_CSR5_NIS 0x00010000 /* Normal Interrupt Summary */
#define LAN_CSR5_RS_MASK 0x000E0000 /* Receive Process State */
#define LAN_CSR5_RS_STOP 0x00000000 /* Stopped - RESET or STOP RCV */
#define LAN_CSR5_RS_FRD 0x00020000 /* Running - Fetch Rcv Descrip */
#define LAN_CSR5_RS_CEOR 0x00040000 /* Running - Check for Rcv desc */
#define LAN_CSR5_RS_WRPK 0x00060000 /* Running - Wait for RCV Packet*/
#define LAN_CSR5_RS_URB 0x00080000 /* Suspnded- Unavail Rcv Buffer */
#define LAN_CSR5_RS_CRD 0x000A0000 /* Running - Close Rcv Descrip */
#define LAN_CSR5_RS_FRF 0x000C0000 /* Running - Flush current frame*/
#define LAN_CSR5_RS_QUE 0x000E0000 /* Running - Queue Rcv Frame */
#define LAN_CSR5_TS_MASK 0x00700000 /* Transmission Process State */
#define LAN_CSR5_TS_STOP 0x00000000 /* Stopped - Reset Cmd or Xmit J*/
#define LAN_CSR5_TS_FTD 0x00100000 /* Running - Fetch Xmit Descrip */
#define LAN_CSR5_TS_WET 0x00200000 /* Running - Wait for End of Xmt*/
#define LAN_CSR5_TS_QUE 0x00300000 /* Running - Que buffer from Mem*/
#define LAN_CSR5_TS_RSVD 0x00400000 /* Reserved */
#define LAN_CSR5_TS_SPKT 0x00500000 /* Running - Setup packet */
#define LAN_CSR5_TS_UTD 0x00600000 /* Suspnded- Xmit desc unavail */
#define LAN_CSR5_TS_CTD 0x00700000 /* Running - Close Xmit Descrip */
#define LAN_CSR5_EB_MASK 0x03800000 /* Error Bits */
#define LAN_CSR5_EB_PRTY 0x00000000 /* Error - Parity */
#define LAN_CSR5_EB_MABT 0x00800000 /* Error - Master Abort */
#define LAN_CSR5_EB_TABT 0x01000000 /* Error - Target Abort */
/*---------------------------------------------------------------------*/
/* Control & Status Register 6 - Operating Mode Register */
/*---------------------------------------------------------------------*/
#define LAN_CSR6_HP 0x00000001 /* Hash/Perfect Filtering Mode */
#define LAN_CSR6_SR (1 << 1) /* Start/Stop Receive */
#define LAN_CSR6_HO 0x00000004 /* Hash Only Filtering Mode */
#define LAN_CSR6_PB 0x00000008 /* Pass Bad Frames */
#define LAN_CSR6_IF 0x00000010 /* Inverse Filtering */
#define LAN_CSR6_SB 0x00000020 /* Start Stop Backoff Counter */
#define LAN_CSR6_PR 0x00000040 /* Promiscuous Mode */
#define LAN_CSR6_PM 0x00000080 /* Pass All Multicast */
#define LAN_CSR6_FKD 0x00000100 /* Flaky Oscillator Disable */
#define LAN_CSR6_FD 0x00000200 /* Full Duplex */
#define LAN_CSR6_OM 0x00000C00 /* Operating Mode Mask */
#define LAN_CSR6_FC 0x00001000 /* Force Collision */
#define LAN_CSR6_ST (1 << 13) /* Start/Stop Transmission Cmd */
#define LAN_CSR6_TR 0x0000C000 /* Threshold Control Bits */
#define LAN_CSR6_TR_72 0x00000000 /* Threshold Control 72 Bytes */
#define LAN_CSR6_TR_96 0x00004000 /* Threshold Control 96 Bytes */
#define LAN_CSR6_TR_128 0x00008000 /* Threshold Control 128 Bytes */
#define LAN_CSR6_TR_160 0x0000C000 /* Threshold Control 160 Bytes */
#define LAN_CSR6_BP 0x00010000 /* Back Pressure */
#define LAN_CSR6_CA 0x00020000 /* Capture Effect Enable */
#define LAN_CSR6_PS 0x00040000 /* Port Select */
#define LAN_CSR6_HBD 0x00080000 /* Heartbeat Disable */
#define LAN_CSR6_SF 0x00200000 /* Store and Forward */
#define LAN_CSR6_TTM 0x00400000 /* Transmit threshold mode */
#define LAN_CSR6_TTM_10M 0x00400000 /* 10Mb/s Transmit threshold */
#define LAN_CSR6_TTM_100M 0x00000000 /* 100Mb/s Transmit threshold */
#define LAN_CSR6_PCS 0x00800000 /* PCS function */
#define LAN_CSR6_SCR 0x01000000 /* Scrambler Mode */
#define LAN_CSR6_MBO 0x02000000 /* Must be 1 */
#define LAN_CSR6_RA 0x40000000 /* Receive ALL Mode */
#define LAN_CSR6_SC 0x80000000 /* Special Capture Effect En */
/*---------------------------------------------------------------------*/
/* Control & Status Register 7 - Interrupt Mask Register */
/*---------------------------------------------------------------------*/
#define LAN_CSR7_TI (1 << 0) /* Transmit Interrupt Mask */
#define LAN_CSR7_TS (1 << 1) /* Transmit Stopped */
#define LAN_CSR7_TU (1 << 2) /* Transmit Buffer Unavailable */
#define LAN_CSR7_TJ (1 << 3) /* Transmit Jabber Time Out */
#define LAN_CSR7_UN (1 << 5) /* Underflow Interrupt */
#define LAN_CSR7_RI (1 << 6) /* Receive Interrupt */
#define LAN_CSR7_RU (1 << 7) /* Receive Buffer Unavailable */
#define LAN_CSR7_RS (1 << 8) /* Receive Stopped */
#define LAN_CSR7_RW (1 << 9) /* Receive Watchdog Time Out */
#define LAN_CSR7_GPT (1 << 11) /* general purpose timer */
#define LAN_CSR7_FBE (1 << 13) /* fatal bus error */
#define LAN_CSR7_AI (1 << 15) /* Abnormal Interrupt Summary */
#define LAN_CSR7_NI (1 << 16) /* Normal Interrupt Summary */
/*---------------------------------------------------------------------*/
/* Control & Status Register 8 - Missed Frame Counter */
/*---------------------------------------------------------------------*/
#define LAN_CSR8_CNTR 0x0000FFFF /* Counter */
#define LAN_CSR8_OFLOW 0x00010000 /* Overflow */
/*---------------------------------------------------------------------*/
/* Control & Status Register 9 - Ethernet Address ROM Register */
/*---------------------------------------------------------------------*/
#define LAN_CSR9_DT 0x000000FF /* Data bits */
#define LAN_CSR9_DN 0x10000000 /* Data not valid */
#define LAN_CSR9_MDI 0x00080000 /* MII Management Data_In */
#define LAN_CSR9_MII 0x00040000 /* MII Management Write 1 */
#define LAN_CSR9_MD0 0x00020000 /* MII Management Read */
#define LAN_CSR9_MDC 0x00010000 /* MII Management Clock */
#define LAN_CSR9_RD 0x00004000 /* Serial ROM Read Operation */
#define LAN_CSR9_WR 0x00002000 /* Serial ROM Write Operation */
#define LAN_CSR9_SR 0x00000800 /* Select Serial ROM */
#define LAN_CSR9_SDO 0x00000008 /* Serial ROM Data_Out */
#define LAN_CSR9_SDI 0x00000004 /* Serial ROM Data_In */
#define LAN_CSR9_SDLK 0x00000002 /* Serial ROM Serial Clock */
#define LAN_CSR9_SDS 0x00000001 /* Serial ROM Chip Select */
/*---------------------------------------------------------------------*/
/* Control & Status Register 11 - Full Duplex Register */
/*---------------------------------------------------------------------*/
#define LAN_CSR11_FDACV 0x0000FFFF /* FD Auto Configuration Value */
/*---------------------------------------------------------------------*/
/* Control & Status Register 12 - SIA Status Register */
/*---------------------------------------------------------------------*/
#define LAN_CSR12_PAUI 0x00000001 /* Pin AUI_TP Indication */
#define LAN_CSR12_NCR 0x00000002 /* Network Connection Error */
#define LAN_CSR12_LKF 0x00000004 /* Link Fail Status */
#define LAN_CSR12_APS 0x00000008 /* Auto Polarity State */
#define LAN_CSR12_DSD 0x00000010 /* PLL Self Test Done */
#define LAN_CSR12_DSP 0x00000020 /* PLL Self Test Pass */
#define LAN_CSR12_DAZ 0x00000040 /* PLL All Zero */
#define LAN_CSR12_DAO 0x00000080 /* PLL All One */
/*---------------------------------------------------------------------*/
/* Control & Status Register 13 - Connectivity Register */
/*---------------------------------------------------------------------*/
#define LAN_CSR13_SRL 0x00000001 /* SIA Reset */
#define LAN_CSR13_PS 0x00000002 /* Pin AUI/TP Select */
#define LAN_CSR13_CAC 0x00000004 /* CSR Auto Configuration */
#define LAN_CSR13_AUI 0x00000008 /* 10 BASE-T or AUI */
#define LAN_CSR13_EDP 0x00000010 /* SIA PLL External Input Enable*/
#define LAN_CSR13_ENI 0x00000020 /* Encoder Input Multiplexer */
#define LAN_CSR13_SIM 0x00000040 /* Serial Interface Input Mult */
#define LAN_CSR13_ASE 0x00000080 /* APLL Start Enable */
#define LAN_CSR13_SEL 0x00000F00 /* External Port Output Mult */
#define LAN_CSR13_IE 0x00001000 /* Input Enable */
#define LAN_CSR13_OE13 0x00002000 /* Output Enable 13 */
#define LAN_CSR13_OE24 0x00004000 /* Output Enable 24 */
#define LAN_CSR13_OE57 0x00008000 /* Output Enable 57 */
/*---------------------------------------------------------------------*/
/* Control & Status Register 14 - SIA Transmit & Receive Register */
/*---------------------------------------------------------------------*/
#define LAN_CSR14_ECEN 0x00000001 /* Encoder Enable */
#define LAN_CSR14_LBK 0x00000002 /* Loopback Enable */
#define LAN_CSR14_DREN 0x00000004 /* Driver Enable */
#define LAN_CSR14_LSE 0x00000008 /* Link Pulse Send Enable */
#define LAN_CSR14_CPENMSK 0x00000030 /* Compensation Enable */
#define LAN_CSR14_CPDIS0 0x00000000 /* Compensation Disabled */
#define LAN_CSR14_CPDIS1 0x00000010 /* Compensation Disabled */
#define LAN_CSR14_CPENHI 0x00000020 /* Compensation High Powered */
#define LAN_CSR14_CPNORM 0x00000030 /* Compensation Normal */
#define LAN_CSR14_RSQ 0x00000100 /* Receive Squelch Enable */
#define LAN_CSR14_CSQ 0x00000200 /* Collision Squelch Enable */
#define LAN_CSR14_CLD 0x00000400 /* Collision Detect Enable */
#define LAN_CSR14_SQE 0x00000800 /* Signal Quality */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -