diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2001-04-17 01:19:23 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2001-04-17 01:19:23 +0000 |
commit | 11e45fbe81b264d1ced97e777a5d25d7a0a74824 (patch) | |
tree | 074a6af8cd9fc829a62c4012a73b52ec222fb75e /sys/dev/mii/inphyreg.h | |
parent | cfd0b4f9b30902333ed7a1c2ab4c0b78a4802ad2 (diff) |
add support for the 82562E[MT] phys (These are essentially 82555's will
all support for T4 gone). There are some register definition conflicts
(SCR), but that is qualified by the presence of T4 support.
Diffstat (limited to 'sys/dev/mii/inphyreg.h')
-rw-r--r-- | sys/dev/mii/inphyreg.h | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/sys/dev/mii/inphyreg.h b/sys/dev/mii/inphyreg.h index 14ba829e51f..96a428130ba 100644 --- a/sys/dev/mii/inphyreg.h +++ b/sys/dev/mii/inphyreg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: inphyreg.h,v 1.2 1999/06/22 16:12:05 jason Exp $ */ +/* $OpenBSD: inphyreg.h,v 1.3 2001/04/17 01:19:22 jason Exp $ */ /* $NetBSD: inphyreg.h,v 1.1 1998/08/11 00:00:28 thorpej Exp $ */ /*- @@ -42,7 +42,10 @@ #define _DEV_MII_INPHYREG_H_ /* - * Intel 82555 registers. + * Intel 82555, 82562EM, and 82562ET registers. + * Note that the 82562 chips are basically 82555 with a few extra registers + * and all of the 100baseT4 support removed. Bits in the SCR register do + * overlap however. */ #define MII_INPHY_SCR 0x10 /* Status and Control */ @@ -56,6 +59,9 @@ #define SCR_T4 0x0004 /* autoneg resulted in 100baseT4 */ #define SCR_S100 0x0002 /* autoneg resulted in 100baseTX */ #define SCR_FDX 0x0001 /* autoneg resulted in full-duplex */ +/* 82562E[MT] only */ +#define SCR_PHYADDR_M 0x007c /* phy address mask */ +#define SCR_PHYADDR_S 2 /* shift to normalize */ #define MII_INPHY_SCTRL 0x11 /* Special Control Bit */ #define SCTRL_SCRBYPASS 0x8000 /* scrambler bypass */ @@ -73,6 +79,15 @@ #define SCTRL_EXTSQUELCH 0x0004 /* extended sequelch enable */ #define SCTRL_LINKINTDIS 0x0002 /* link integrity disable */ #define SCTRL_JABBERDIS 0x0001 /* jabber disabled */ +/* 82562E[MT] only */ +#define SCTRL_SRE 0x0400 /* symbol error enable */ +#define SCTRL_FORCEPOL 0x0020 /* force polarity, 0 = normal */ + +/* 82562E[MT] only */ +#define MII_INPHY_PHYADDR 0x12 /* phy address register, 82562 only */ + +/* 82562E[MT] only */ +#define MII_INPHY_100TXFCC 0x13 /* false carrier counter */ #define MII_INPHY_100TXRDC 0x14 /* 100baseTX Receive Disconnect Cntr */ |