Commit Graph

158 Commits

Author SHA1 Message Date
enami
578730c551 Initialize sc->sc_anegticks to 5 on attach to prevent panic due to
assertion failure.
2001-06-08 07:09:40 +00:00
thorpej
9987ee5249 Driver for the Broadcom BCM5201/BCM5202 "Mini-Theta" Ethernet
PHYs.  This is also the same PHY core as in the 3Com 3c905C.
The PHY is documented in the 3c905C manual.
2001-06-02 21:42:10 +00:00
thorpej
424f7a1e65 Make PHY matching all table-driven. 2001-06-02 21:39:38 +00:00
thorpej
33a6994da1 Driver for Broadcom BCM5400-family Gig-E PHYs. Programming
information gleaned from FreeBSD.
2001-06-01 16:49:59 +00:00
thorpej
996df042df Add support for the DP83815 MacPHYTER internal PHY to the DP83843 PHYTER
driver, since for our purposes, they are compatible.
2001-05-31 20:30:21 +00:00
thorpej
1042f830e5 Regen; added several more PHYs. 2001-05-31 19:41:07 +00:00
thorpej
0c94166e28 Add several additional PHYs. 2001-05-31 19:40:33 +00:00
thorpej
f752c7d328 On the Gig PHYTER, For whatever reason, the 10baseT-related bits of the
BMSR are wired to 0, yet the PHY supports 10baseT.  So, to get around
this, we test the ANAR 10baseT bits after a PHY reset.  These bits are
set according to input pin 180.  If we see the 10baseT ANAR bits set,
we fake them in the BMSR so that we can actually autonegotiate 10baseT.
2001-05-31 18:47:22 +00:00
thorpej
2128d9199a Enable frobbing the 1000baseT control register on Gig-E PHYs,
used for hard-wiring master mode, and for advertising the 1000baseT
media options during autonegotiation.
2001-05-31 18:44:48 +00:00
thorpej
628a67ab31 Add a driver for the NatSemi DP83891 and DP83861 Gig PHYTER
10/100/1000 PHYs.
2001-05-31 16:06:58 +00:00
thorpej
ea1aed7db2 Make the number of ticks between auto-negotiation tries PHY-specific,
and default every PHY to 5 seconds (what we used before).  If we find
Gig-E media on a PHY, bump it to 10 seconds, since it can take 5
seconds just to negotiate a Gig-E link.
2001-05-31 16:02:29 +00:00
thorpej
ad090e7062 Regen; added NatSemi DP83891. 2001-05-31 03:32:38 +00:00
thorpej
3ae72855b1 Add product ID for the NatSemi DP83891 1000baseTX PHY. 2001-05-31 03:32:20 +00:00
thorpej
9f63d3cd86 Typo in last. 2001-05-31 03:07:14 +00:00
thorpej
f07f44812d The 1000baseT CR and SR are overlapped with the 100base-T2 CR and SR.
Note this in a comment.  Add the 1000baseT CR and SR bits.
2001-05-31 03:06:46 +00:00
soren
79859fb138 Regen. 2001-05-22 16:07:56 +00:00
soren
b16ba1d8cd Add i82562ET id. 2001-05-22 16:04:27 +00:00
drochner
199e9f8164 regen 2001-05-17 17:39:30 +00:00
drochner
10aff2d3f0 argh - the OUI of PMC-Sierra is 00-e0-04, according to IEEE.
They managed to mess it up in a new way.
2001-05-17 17:39:00 +00:00
drochner
1ea0cb1ea4 support the fiber output of the PHY device, enabled if the MIIF_HAVEFIBER
flag is passed in from the board driver
2001-05-17 17:29:54 +00:00
drochner
002851041c re-enable mii_flags in attach args - I've found a use for it: tell the
PHY which support it that a fiber interface is present
2001-05-17 17:28:21 +00:00
matt
91d9961f24 Regen 2001-05-15 23:18:16 +00:00
matt
75d77bf185 Add OUI for PMC-Sierra. Add BCM5221 Phy. Add PM8351 Phy. 2001-05-15 23:17:48 +00:00
matt
f5d9baae2f Note that extended status is in register 15 2001-05-15 23:16:40 +00:00
thorpej
c2ffdccb2b Regen; Add National Semiconductor DP83861 1000baseTX PHY. 2001-05-15 21:37:33 +00:00
thorpej
8fd542b023 Add National Semiconductor DP83861 1000baseTX PHY. 2001-05-15 21:37:04 +00:00
thorpej
d3a64bd0d8 Add code to recognize and set media on GMII (Gigabit MII) PHYs.
802.3 doens't specify ANAR or ANLPAR bits for GMII.  Need to
use PHY-specific registers for this, for now, which means we
need specific drivers for the Gigabit-capable PHYs (I think the
most common is the BCM5400).
2001-04-30 19:49:08 +00:00
thorpej
63604adafa Add a bunch of Gig-E definitions. 2001-04-30 19:21:03 +00:00
lukem
d2ac513298 remove some lint 2001-04-30 01:19:40 +00:00
thorpej
bf2dcec4f5 Remove the use of splimp() from the NetBSD kernel. splnet()
and only splnet() is allowed for the protection of data structures
used by network devices.
2001-04-13 23:29:55 +00:00
augustss
b728f196e9 Comment out some flag stuff that isn't used. Someone should take a look
at this.  There is something fishy with the mii code, the last argument to
mii_attach() is not being used in any meaningful way.
2001-04-13 11:14:55 +00:00
augustss
205b10ed17 Add a flag to mii_flags which will cause autonegotiation to use tsleep()
instead of callout.  This way adapters which need a process context for
PHY register access (e.g. USB adapters) have a chance.
2001-04-13 11:12:36 +00:00
jdolecek
372e5956ef Only install headers which are actually used by our userland. This
saves about 2.2MB under /usr/include/dev/. Discussed on tech-kern@
recently.

I HOPE to get the list right. The headers I left in are ones
used for MI tools and those whose usage I discovered by grep over tree sources.
Feel free to put needed includes back in if you encounter anything which
should not be removed from lists.
2001-04-11 07:42:31 +00:00
drochner
a6ae0975d5 regen 2001-04-09 09:39:57 +00:00
drochner
552d4c8236 add media options for the Intel UCH2 internal ethernet controller 2001-04-09 09:39:24 +00:00
drochner
adf9edcd41 update for miidevs changes 2001-03-28 14:16:49 +00:00
drochner
3752421a75 regen 2001-03-28 14:15:23 +00:00
drochner
bf6a2bf86c adapt to corrected OUI calculation 2001-03-28 14:14:57 +00:00
drochner
9e8def737f Reading the IEEE specs shows that the bits have to be reversed when
mapping an OUI to the MII id registers.
Doing this in the MII_OUI() macro would be too complex, so put it into
a helper function and move the MII id register interpretation stuff
into miivar.h.
2001-03-28 14:13:06 +00:00
thorpej
a9d20501af Remove a comment; this module has not been compatible w/ BSD/OS's
for quite a long time.
2001-03-24 20:44:26 +00:00
lukem
3aeb5f2f29 whitespace police 2001-02-24 01:59:46 +00:00
augustss
6861904096 Regen. 2001-01-07 15:01:06 +00:00
augustss
55c57a573f Add an Altima PHY. 2001-01-07 15:00:46 +00:00
soren
232e2c5ef9 Regen. 2000-11-07 13:53:59 +00:00
soren
0dc9fd53b9 Just print 'Intel' for their other OUI. 2000-11-07 13:53:42 +00:00
augustss
5a356af882 Regen. 2000-11-06 22:32:49 +00:00
augustss
75367f830a Add some OUIs and models. From OpenBSD. 2000-11-06 22:32:26 +00:00
sommerfeld
2383226766 Silence format warning. 2000-10-11 22:03:33 +00:00
martin
10debdeb9c Fix to autonegotiation problem with some fxp cards. Fix found and reported
by Erich T. Enke et al. on current-users. This fixes PR 10550.
2000-07-27 22:14:48 +00:00
thorpej
49014bf59f Restructure the PHY entry points to use a structure of entry points
instead of discrete function pointers, and extend this to include
a "reset" entry point.  Make sure any PHY-specific reset routine is
always used, and provide one for the LXT-970 which disables MII
interrupts (as is done for a few other PHYs we have drivers for).
2000-07-04 03:28:59 +00:00