⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xmac_ii.h

📁 优龙2410linux2.6.8内核源代码
💻 H
📖 第 1 页 / 共 5 页
字号:
#define PHY_X_EX_FD		(1<<15)	/* Bit 15:	Device Supports Full Duplex */#define PHY_X_EX_HD		(1<<14)	/* Bit 14:	Device Supports Half Duplex */								/* Bit 13..0:	reserved *//*****  PHY_XMAC_RES_ABI	16 bit r/o	PHY Resolved Ability *****/								/* Bit 15..9:	reserved */#define PHY_X_RS_PAUSE	(3<<7)	/* Bit  8..7:	selected Pause Mode */#define PHY_X_RS_HD		(1<<6)	/* Bit  6:	Half Duplex Mode selected */#define PHY_X_RS_FD		(1<<5)	/* Bit  5:	Full Duplex Mode selected */#define PHY_X_RS_ABLMIS (1<<4)	/* Bit  4:	duplex or pause cap mismatch */#define PHY_X_RS_PAUMIS (1<<3)	/* Bit  3:	pause capability mismatch */								/* Bit  2..0:	reserved *//* * Remote Fault Bits (PHY_X_AN_RFB) encoding */#define X_RFB_OK		(0<<12)	/* Bit 13..12	No errors, Link OK */#define X_RFB_LF		(1<<12)	/* Bit 13..12	Link Failure */#define X_RFB_OFF		(2<<12)	/* Bit 13..12	Offline */#define X_RFB_AN_ERR	(3<<12)	/* Bit 13..12	Auto-Negotiation Error *//* * Pause Bits (PHY_X_AN_PAUSE and PHY_X_RS_PAUSE) encoding */#define PHY_X_P_NO_PAUSE	(0<<7)	/* Bit  8..7:	no Pause Mode */#define PHY_X_P_SYM_MD		(1<<7)	/* Bit  8..7:	symmetric Pause Mode */#define PHY_X_P_ASYM_MD		(2<<7)	/* Bit  8..7:	asymmetric Pause Mode */#define PHY_X_P_BOTH_MD		(3<<7)	/* Bit  8..7:	both Pause Mode *//* * Broadcom-Specific *//*****  PHY_BCOM_1000T_CTRL	16 bit r/w	1000Base-T Control Reg *****/#define PHY_B_1000C_TEST	(7<<13)	/* Bit 15..13:	Test Modes */#define PHY_B_1000C_MSE		(1<<12)	/* Bit 12:	Master/Slave Enable */#define PHY_B_1000C_MSC		(1<<11)	/* Bit 11:	M/S Configuration */#define PHY_B_1000C_RD		(1<<10)	/* Bit 10:	Repeater/DTE */#define PHY_B_1000C_AFD		(1<<9)	/* Bit  9:	Advertise Full Duplex */#define PHY_B_1000C_AHD		(1<<8)	/* Bit  8:	Advertise Half Duplex */									/* Bit  7..0:	reserved *//*****  PHY_BCOM_1000T_STAT	16 bit r/o	1000Base-T Status Reg *****//*****  PHY_MARV_1000T_STAT	16 bit r/o	1000Base-T Status Reg *****/#define PHY_B_1000S_MSF		(1<<15)	/* Bit 15:	Master/Slave Fault */#define PHY_B_1000S_MSR		(1<<14)	/* Bit 14:	Master/Slave Result */#define PHY_B_1000S_LRS		(1<<13)	/* Bit 13:	Local Receiver Status */#define PHY_B_1000S_RRS		(1<<12)	/* Bit 12:	Remote Receiver Status */#define PHY_B_1000S_LP_FD	(1<<11)	/* Bit 11:	Link Partner can FD */#define PHY_B_1000S_LP_HD	(1<<10)	/* Bit 10:	Link Partner can HD */									/* Bit  9..8:	reserved */#define PHY_B_1000S_IEC		0xff	/* Bit  7..0:	Idle Error Count *//*****  PHY_BCOM_EXT_STAT	16 bit r/o	Extended Status Register *****/#define PHY_B_ES_X_FD_CAP	(1<<15)	/* Bit 15:	1000Base-X FD capable */#define PHY_B_ES_X_HD_CAP	(1<<14)	/* Bit 14:	1000Base-X HD capable */#define PHY_B_ES_T_FD_CAP	(1<<13)	/* Bit 13:	1000Base-T FD capable */#define PHY_B_ES_T_HD_CAP	(1<<12)	/* Bit 12:	1000Base-T HD capable */									/* Bit 11..0:	reserved *//*****  PHY_BCOM_P_EXT_CTRL	16 bit r/w	PHY Extended Control Reg *****/#define PHY_B_PEC_MAC_PHY	(1<<15)	/* Bit 15:	10BIT/GMI-Interface */#define PHY_B_PEC_DIS_CROSS	(1<<14)	/* Bit 14:	Disable MDI Crossover */#define PHY_B_PEC_TX_DIS	(1<<13)	/* Bit 13:	Tx output Disabled */#define PHY_B_PEC_INT_DIS	(1<<12)	/* Bit 12:	Interrupts Disabled */#define PHY_B_PEC_F_INT		(1<<11)	/* Bit 11:	Force Interrupt */#define PHY_B_PEC_BY_45		(1<<10)	/* Bit 10:	Bypass 4B5B-Decoder */#define PHY_B_PEC_BY_SCR	(1<<9)	/* Bit  9:	Bypass Scrambler */#define PHY_B_PEC_BY_MLT3	(1<<8)	/* Bit  8:	Bypass MLT3 Encoder */#define PHY_B_PEC_BY_RXA	(1<<7)	/* Bit  7:	Bypass Rx Alignm. */#define PHY_B_PEC_RES_SCR	(1<<6)	/* Bit  6:	Reset Scrambler */#define PHY_B_PEC_EN_LTR	(1<<5)	/* Bit  5:	Ena LED Traffic Mode */#define PHY_B_PEC_LED_ON	(1<<4)	/* Bit  4:	Force LED's on */#define PHY_B_PEC_LED_OFF	(1<<3)	/* Bit  3:	Force LED's off */#define PHY_B_PEC_EX_IPG	(1<<2)	/* Bit  2:	Extend Tx IPG Mode */#define PHY_B_PEC_3_LED		(1<<1)	/* Bit  1:	Three Link LED mode */#define PHY_B_PEC_HIGH_LA	(1<<0)	/* Bit  0:	GMII FIFO Elasticy *//*****  PHY_BCOM_P_EXT_STAT	16 bit r/o	PHY Extended Status Reg *****/									/* Bit 15..14:	reserved */#define PHY_B_PES_CROSS_STAT	(1<<13)	/* Bit 13:	MDI Crossover Status */#define PHY_B_PES_INT_STAT	(1<<12)	/* Bit 12:	Interrupt Status */#define PHY_B_PES_RRS		(1<<11)	/* Bit 11:	Remote Receiver Stat. */#define PHY_B_PES_LRS		(1<<10)	/* Bit 10:	Local Receiver Stat. */#define PHY_B_PES_LOCKED	(1<<9)	/* Bit  9:	Locked */#define PHY_B_PES_LS		(1<<8)	/* Bit  8:	Link Status */#define PHY_B_PES_RF		(1<<7)	/* Bit  7:	Remote Fault */#define PHY_B_PES_CE_ER		(1<<6)	/* Bit  6:	Carrier Ext Error */#define PHY_B_PES_BAD_SSD	(1<<5)	/* Bit  5:	Bad SSD */#define PHY_B_PES_BAD_ESD	(1<<4)	/* Bit  4:	Bad ESD */#define PHY_B_PES_RX_ER		(1<<3)	/* Bit  3:	Receive Error */#define PHY_B_PES_TX_ER		(1<<2)	/* Bit  2:	Transmit Error */#define PHY_B_PES_LOCK_ER	(1<<1)	/* Bit  1:	Lock Error */#define PHY_B_PES_MLT3_ER	(1<<0)	/* Bit  0:	MLT3 code Error *//*****  PHY_BCOM_FC_CTR		16 bit r/w	False Carrier Counter *****/									/* Bit 15..8:	reserved */#define PHY_B_FC_CTR		0xff	/* Bit  7..0:	False Carrier Counter *//*****  PHY_BCOM_RNO_CTR	16 bit r/w	Receive NOT_OK Counter *****/#define PHY_B_RC_LOC_MSK	0xff00	/* Bit 15..8:	Local Rx NOT_OK cnt */#define PHY_B_RC_REM_MSK	0x00ff	/* Bit  7..0:	Remote Rx NOT_OK cnt *//*****  PHY_BCOM_AUX_CTRL	16 bit r/w	Auxiliary Control Reg *****/#define PHY_B_AC_L_SQE		(1<<15)	/* Bit 15:	Low Squelch */#define PHY_B_AC_LONG_PACK	(1<<14)	/* Bit 14:	Rx Long Packets */#define PHY_B_AC_ER_CTRL	(3<<12)	/* Bit 13..12:	Edgerate Control */									/* Bit 11:	reserved */#define PHY_B_AC_TX_TST		(1<<10) /* Bit 10:	Tx test bit, always 1 */									/* Bit  9.. 8:	reserved */#define PHY_B_AC_DIS_PRF	(1<<7)	/* Bit  7:	dis part resp filter */									/* Bit  6:	reserved */#define PHY_B_AC_DIS_PM		(1<<5)	/* Bit  5:	dis power management */									/* Bit  4:	reserved */#define PHY_B_AC_DIAG		(1<<3)	/* Bit  3:	Diagnostic Mode */									/* Bit  2.. 0:	reserved *//*****  PHY_BCOM_AUX_STAT	16 bit r/o	Auxiliary Status Reg *****/#define PHY_B_AS_AN_C		(1<<15)	/* Bit 15:	AutoNeg complete */#define PHY_B_AS_AN_CA		(1<<14)	/* Bit 14:	AN Complete Ack */#define PHY_B_AS_ANACK_D	(1<<13)	/* Bit 13:	AN Ack Detect */#define PHY_B_AS_ANAB_D		(1<<12)	/* Bit 12:	AN Ability Detect */#define PHY_B_AS_NPW		(1<<11)	/* Bit 11:	AN Next Page Wait */#define PHY_B_AS_AN_RES_MSK	(7<<8)	/* Bit 10..8:	AN HDC */#define PHY_B_AS_PDF		(1<<7)	/* Bit  7:	Parallel Detect. Fault */#define PHY_B_AS_RF			(1<<6)	/* Bit  6:	Remote Fault */#define PHY_B_AS_ANP_R		(1<<5)	/* Bit  5:	AN Page Received */#define PHY_B_AS_LP_ANAB	(1<<4)	/* Bit  4:	LP AN Ability */#define PHY_B_AS_LP_NPAB	(1<<3)	/* Bit  3:	LP Next Page Ability */#define PHY_B_AS_LS			(1<<2)	/* Bit  2:	Link Status */#define PHY_B_AS_PRR		(1<<1)	/* Bit  1:	Pause Resolution-Rx */#define PHY_B_AS_PRT		(1<<0)	/* Bit  0:	Pause Resolution-Tx */#define PHY_B_AS_PAUSE_MSK	(PHY_B_AS_PRR | PHY_B_AS_PRT)/*****  PHY_BCOM_INT_STAT	16 bit r/o	Interrupt Status Reg *****//*****  PHY_BCOM_INT_MASK	16 bit r/w	Interrupt Mask Reg *****/									/* Bit 15:	reserved */#define PHY_B_IS_PSE		(1<<14)	/* Bit 14:	Pair Swap Error */#define PHY_B_IS_MDXI_SC	(1<<13)	/* Bit 13:	MDIX Status Change */#define PHY_B_IS_HCT		(1<<12)	/* Bit 12:	counter above 32k */#define PHY_B_IS_LCT		(1<<11)	/* Bit 11:	counter above 128 */#define PHY_B_IS_AN_PR		(1<<10)	/* Bit 10:	Page Received */#define PHY_B_IS_NO_HDCL	(1<<9)	/* Bit  9:	No HCD Link */#define PHY_B_IS_NO_HDC		(1<<8)	/* Bit  8:	No HCD */#define PHY_B_IS_NEG_USHDC	(1<<7)	/* Bit  7:	Negotiated Unsup. HCD */#define PHY_B_IS_SCR_S_ER	(1<<6)	/* Bit  6:	Scrambler Sync Error */#define PHY_B_IS_RRS_CHANGE	(1<<5)	/* Bit  5:	Remote Rx Stat Change */#define PHY_B_IS_LRS_CHANGE	(1<<4)	/* Bit  4:	Local Rx Stat Change */#define PHY_B_IS_DUP_CHANGE	(1<<3)	/* Bit  3:	Duplex Mode Change */#define PHY_B_IS_LSP_CHANGE	(1<<2)	/* Bit  2:	Link Speed Change */#define PHY_B_IS_LST_CHANGE	(1<<1)	/* Bit  1:	Link Status Changed */#define PHY_B_IS_CRC_ER		(1<<0)	/* Bit  0:	CRC Error */#define PHY_B_DEF_MSK	(~(PHY_B_IS_AN_PR | PHY_B_IS_LST_CHANGE))/* Pause Bits (PHY_B_AN_ASP and PHY_B_AN_PC) encoding */#define PHY_B_P_NO_PAUSE	(0<<10)	/* Bit 11..10:	no Pause Mode */#define PHY_B_P_SYM_MD		(1<<10)	/* Bit 11..10:	symmetric Pause Mode */#define PHY_B_P_ASYM_MD		(2<<10)	/* Bit 11..10:	asymmetric Pause Mode */#define PHY_B_P_BOTH_MD		(3<<10)	/* Bit 11..10:	both Pause Mode *//* * Resolved Duplex mode and Capabilities (Aux Status Summary Reg) */#define PHY_B_RES_1000FD	(7<<8)	/* Bit 10..8:	1000Base-T Full Dup. */#define PHY_B_RES_1000HD	(6<<8)	/* Bit 10..8:	1000Base-T Half Dup. *//* others: 100/10: invalid for us *//* * Level One-Specific *//*****  PHY_LONE_1000T_CTRL	16 bit r/w	1000Base-T Control Reg *****/#define PHY_L_1000C_TEST	(7<<13)	/* Bit 15..13:	Test Modes */#define PHY_L_1000C_MSE		(1<<12)	/* Bit 12:	Master/Slave Enable */#define PHY_L_1000C_MSC		(1<<11)	/* Bit 11:	M/S Configuration */#define PHY_L_1000C_RD		(1<<10)	/* Bit 10:	Repeater/DTE */#define PHY_L_1000C_AFD		(1<<9)	/* Bit  9:	Advertise Full Duplex */#define PHY_L_1000C_AHD		(1<<8)	/* Bit  8:	Advertise Half Duplex */									/* Bit  7..0:	reserved *//*****  PHY_LONE_1000T_STAT	16 bit r/o	1000Base-T Status Reg *****/#define PHY_L_1000S_MSF		(1<<15)	/* Bit 15:	Master/Slave Fault */#define PHY_L_1000S_MSR		(1<<14)	/* Bit 14:	Master/Slave Result */#define PHY_L_1000S_LRS		(1<<13)	/* Bit 13:	Local Receiver Status */#define PHY_L_1000S_RRS		(1<<12)	/* Bit 12:	Remote Receiver Status */#define PHY_L_1000S_LP_FD	(1<<11)	/* Bit 11:	Link Partner can FD */#define PHY_L_1000S_LP_HD	(1<<10)	/* Bit 10:	Link Partner can HD */									/* Bit  9..8:	reserved */#define PHY_B_1000S_IEC		0xff	/* Bit  7..0:	Idle Error Count *//*****  PHY_LONE_EXT_STAT	16 bit r/o	Extended Status Register *****/#define PHY_L_ES_X_FD_CAP	(1<<15)	/* Bit 15:	1000Base-X FD capable */#define PHY_L_ES_X_HD_CAP	(1<<14)	/* Bit 14:	1000Base-X HD capable */#define PHY_L_ES_T_FD_CAP	(1<<13)	/* Bit 13:	1000Base-T FD capable */#define PHY_L_ES_T_HD_CAP	(1<<12)	/* Bit 12:	1000Base-T HD capable */									/* Bit 11..0:	reserved *//*****  PHY_LONE_PORT_CFG	16 bit r/w	Port Configuration Reg *****/#define PHY_L_PC_REP_MODE	(1<<15)	/* Bit 15:	Repeater Mode */									/* Bit 14:	reserved */#define PHY_L_PC_TX_DIS		(1<<13)	/* Bit 13:	Tx output Disabled */#define PHY_L_PC_BY_SCR		(1<<12)	/* Bit 12:	Bypass Scrambler */#define PHY_L_PC_BY_45		(1<<11)	/* Bit 11:	Bypass 4B5B-Decoder */#define PHY_L_PC_JAB_DIS	(1<<10)	/* Bit 10:	Jabber Disabled */#define PHY_L_PC_SQE		(1<<9)	/* Bit  9:	Enable Heartbeat */#define PHY_L_PC_TP_LOOP	(1<<8)	/* Bit  8:	TP Loopback */#define PHY_L_PC_SSS		(1<<7)	/* Bit  7:	Smart Speed Selection */#define PHY_L_PC_FIFO_SIZE	(1<<6)	/* Bit  6:	FIFO Size */#define PHY_L_PC_PRE_EN		(1<<5)	/* Bit  5:	Preamble Enable */#define PHY_L_PC_CIM		(1<<4)	/* Bit  4:	Carrier Integrity Mon */#define PHY_L_PC_10_SER		(1<<3)	/* Bit  3:	Use Serial Output */#define PHY_L_PC_ANISOL		(1<<2)	/* Bit  2:	Unisolate Port */#define PHY_L_PC_TEN_BIT	(1<<1)	/* Bit  1:	10bit iface mode on */#define PHY_L_PC_ALTCLOCK	(1<<0)	/* Bit  0: (ro)	ALTCLOCK Mode on *//*****  PHY_LONE_Q_STAT		16 bit r/o	Quick Status Reg *****/#define PHY_L_QS_D_RATE		(3<<14)	/* Bit 15..14:	Data Rate */#define PHY_L_QS_TX_STAT	(1<<13)	/* Bit 13:	Transmitting */#define PHY_L_QS_RX_STAT	(1<<12)	/* Bit 12:	Receiving */#define PHY_L_QS_COL_STAT	(1<<11)	/* Bit 11:	Collision */#define PHY_L_QS_L_STAT		(1<<10)	/* Bit 10:	Link is up */#define PHY_L_QS_DUP_MOD	(1<<9)	/* Bit  9:	Full/Half Duplex */#define PHY_L_QS_AN			(1<<8)	/* Bit  8:	AutoNeg is On */#define PHY_L_QS_AN_C		(1<<7)	/* Bit  7:	AN is Complete */#define PHY_L_QS_LLE		(7<<4)	/* Bit  6:	Line Length Estim. */#define PHY_L_QS_PAUSE		(1<<3)	/* Bit  3:	LP advertised Pause */#define PHY_L_QS_AS_PAUSE	(1<<2)	/* Bit  2:	LP adv. asym. Pause */#define PHY_L_QS_ISOLATE	(1<<1)	/* Bit  1:	CIM Isolated */#define PHY_L_QS_EVENT		(1<<0)	/* Bit  0:	Event has occurred *//*****  PHY_LONE_INT_ENAB	16 bit r/w	Interrupt Enable Reg *****//*****  PHY_LONE_INT_STAT	16 bit r/o	Interrupt Status Reg *****/									/* Bit 15..14:	reserved */#define PHY_L_IS_AN_F		(1<<13)	/* Bit 13:	Auto-Negotiation fault */									/* Bit 12:	not described */#define PHY_L_IS_CROSS		(1<<11)	/* Bit 11:	Crossover used */#define PHY_L_IS_POL		(1<<10)	/* Bit 10:	Polarity correct. used */#define PHY_L_IS_SS			(1<<9)	/* Bit  9:	Smart Speed Downgrade */#define PHY_L_IS_CFULL		(1<<8)	/* Bit  8:	Counter Full */#define PHY_L_IS_AN_C		(1<<7)	/* Bit  7:	AutoNeg Complete */#define PHY_L_IS_SPEED		(1<<6)	/* Bit  6:	Speed Changed */#define PHY_L_IS_DUP		(1<<5)	/* Bit  5:	Duplex Changed */#define PHY_L_IS_LS			(1<<4)	/* Bit  4:	Link Status Changed */#define PHY_L_IS_ISOL		(1<<3)	/* Bit  3:	Isolate Occured */#define PHY_L_IS_MDINT		(1<<2)	/* Bit  2: (ro)	STAT: MII Int Pending */#define PHY_L_IS_INTEN		(1<<1)	/* Bit  1:	ENAB: Enable IRQs */#define PHY_L_IS_FORCE		(1<<0)	/* Bit  0:	ENAB: Force Interrupt *//* int. mask */#define PHY_L_DEF_MSK		(PHY_L_IS_LS | PHY_L_IS_ISOL | PHY_L_IS_INTEN)/*****  PHY_LONE_LED_CFG	16 bit r/w	LED Configuration Reg *****/#define PHY_L_LC_LEDC		(3<<14)	/* Bit 15..14:	Col/Blink/On/Off */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -