Commit Graph

297 Commits

Author SHA1 Message Date
thorpej
71adb76f75 Use CFATTACH_DECL(). 2002-09-30 21:57:46 +00:00
wiz
b1c7ac0e6d "definitions" has lots of 'i's, but that's not reason to leave one out. 2002-09-29 23:23:56 +00:00
thorpej
0720e04052 Remove a debugging printf. 2002-09-28 19:07:43 +00:00
scw
cbc5db835b Try a little harder to work around the "Isolated After Reset" lossage. 2002-09-28 10:27:21 +00:00
thorpej
f818766afe Declare all cfattach structures const. 2002-09-27 20:31:45 +00:00
provos
0f09ed48a5 remove trailing \n in panic(). approved perry. 2002-09-27 15:35:29 +00:00
thorpej
6c88de3b53 Introduce a new routine, config_match(), which invokes the
cfattach->ca_match function in behalf of the caller.  Use it
rather than invoking cfattach->ca_match directly.
2002-09-27 03:17:40 +00:00
thorpej
d1ad2ac4f2 Rather than referencing the cfdriver directly in the cfdata entries,
instead use a string naming the driver.  The cfdriver is then looked
up in a list which is built at run-time.
2002-09-27 02:24:06 +00:00
scw
ce2ec9e63e Add support for the SMsC LAN83C183 PHY, which actually probes as a
Seeq 84220.

Also add an 84220-specific work-around for some braindamage (at least
in the PHY I'm working with) where the PHY always comes out of reset
isolated, regardless of the previous state of the BMCR_ISO bit. This
happens even if the PHY has address zero, which is contrary to the
part's datasheet...

The work-around is only applied if we notice BMCR_ISO is set when it
should be clear following reset. The fix is to wait 30mS and clear
it manually. (The change doesn't stick if it's cleared sooner than this)
2002-08-26 11:13:13 +00:00
fvdl
660edcbaff Match 881011 PHY. 2002-08-08 00:04:57 +00:00
fvdl
86710d1b0a Regen after addition of marvell 881011. 2002-08-08 00:04:28 +00:00
fvdl
b068d9297a Add ID for Marvell 881011 phy found on newer i8254x-based gig-e cards. 2002-08-08 00:03:42 +00:00
thorpej
7d85789f0a Move the BCM5401 DSP patch out of the bge driver and into
the brgphy driver; all users of the BCM5400 and BCM5401 need
the DSP patch and the sledgehammer-reset-at-media-set-time.

Also add a DSP patch for the BCM5411 gleaned from Apple's
GMAC driver for Darwin.

Tested with a 3Com 3c996-T (BCM5700 + BCM5401).
2002-07-13 01:23:27 +00:00
thorpej
b13f958c53 Match the BCM5421, found on the Apple Xserve. From Matt Thomas. 2002-07-12 04:00:10 +00:00
matt
97f6bca3e2 Regen. 2002-07-09 23:25:07 +00:00
matt
537e1f17d9 Add Broadcom BCM5421 2002-07-09 23:24:33 +00:00
simonb
c19a094675 Don't include <malloc.h> - no memory management style functions are use
in any of the MII drivers.
2002-07-03 06:25:49 +00:00
drochner
8d07c19c5e regen 2002-06-25 12:26:28 +00:00
drochner
4ded79cbb4 After I found a press release of 1998 which states that AMD sold
Davicom PHY chips, merge the identical entries for DM9101 and Am79c873
into one.
Should also fix PR kern/17369 by Dave Huang.
2002-06-25 12:25:56 +00:00
fvdl
64fc3ae071 Match BCM5701 2002-06-22 14:38:34 +00:00
fvdl
bc97012696 Add more register definitions. From FreeBSD. 2002-06-22 14:37:58 +00:00
fvdl
506d548f6c Regen. 2002-06-22 14:36:26 +00:00
fvdl
3cfd73048b Aff BCM 5701 PHY Id. 2002-06-22 14:35:52 +00:00
matt
1f4c6f5868 Regen. 2002-05-15 22:48:42 +00:00
matt
0bfea741e8 Correct/add more PMC-Sierra PHYs 2002-05-15 22:48:17 +00:00
matt
57752d8c7f Regen. 2002-05-15 21:25:28 +00:00
matt
5a4d71be86 Add another PMC-SIERRA phy 2002-05-15 21:24:59 +00:00
thorpej
c1f51e00c0 Back out change accidentally committed. 2002-05-12 21:39:46 +00:00
thorpej
0cc96b0fbe Make sure ifp->if_baudrate is valid when the parent's statchg
callback is made.

Pointed out by Matt Thomas.
2002-05-10 20:45:05 +00:00
uwe
41e6fbc398 Delint somewhat. 2002-05-07 04:52:49 +00:00
wiz
b9abd324c6 Fix typo in comment. kern/16382 by Sean Davis. 2002-04-17 09:14:21 +00:00
thorpej
e1f3e69604 * Move the mii_bitbang attribute into dev/mii/files.mii
* Pull in dev/mii/files.mii from conf/files, rather than playing
  the magic "files include order" dance in N machine-dependent
  configuration definitions.
2002-04-17 00:35:04 +00:00
mycroft
aa878fabc4 For 78Q2120 revisions 3 and earlier, punt to ukphy, as our special media status
routine does not work on those chips.
2002-04-15 16:50:52 +00:00
ichiro
2aa38fbf8b add urlphy 2002-03-29 02:05:05 +00:00
ichiro
8e2f0b253e Add a driver for the Realtek RL8150L Ethernet PHY. 2002-03-28 21:07:53 +00:00
thorpej
b017898534 Get flags passed down to PHY drivers correctly. This was done on
an adhoc basis in a couple of PHY drivers, this fixes it more generally.

Per a discussion w/ Cliff Neighbors <cliff@allegronetworks.com>.
2002-03-25 20:51:24 +00:00
chs
4b6d0e2df5 lxtphy needs the ukphy_subr attribute now. 2002-03-17 01:34:48 +00:00
chs
e444e2ddd4 regen 2002-03-14 04:41:09 +00:00
chs
dc3bc0c490 add support for LXT971 PHYs. 2002-03-14 04:40:26 +00:00
wiz
5c800297c6 Match ICS 1893. 2002-02-10 17:09:41 +00:00
wiz
c48956e61c Regen [ICS 1893] 2002-02-10 17:09:08 +00:00
wiz
9f4c1b7c26 Add ICS 1893 2002-02-10 17:08:24 +00:00
thorpej
edd394b53e Update for 88E1000 model number changes. 2002-01-15 21:01:59 +00:00
thorpej
60ed1aba47 Regen; add another Marvell 88E1000 PHY model number. 2002-01-15 21:00:50 +00:00
thorpej
dcc3d13f0d Add another Marvell 88E1000 PHY model number. 2002-01-15 20:59:52 +00:00
augustss
c6df7d4358 Regen. 2001-12-15 00:31:43 +00:00
augustss
385b05e2f9 Add another Altima PHY. From Peter Seebach. 2001-12-15 00:31:03 +00:00
lukem
ecb81c3f6d - convert usage of "defopt" to "defflag" where the relevant option does
not support a value (e.g., it's to be used as "options FOO" instead of
  "options FOO=xxx"). options that take a value were converted to
  defparam recently.
- minor whitespace & formatting cleanups
2001-11-28 10:21:10 +00:00
lukem
0fa231134c - replace "defopt" with "defparam" for options which must take a value,
as config(8) will warn for value-less defparam options
- minor whitespace/formatting cleanup
- consolidate opt_tcp_recvspace.h and opt_tcp_sendspace.h into opt_tcp_space.h
2001-11-20 14:34:18 +00:00
lukem
8b7bb91219 add RCSID 2001-11-13 07:38:28 +00:00
perry
82540eeaca fix a couple of signed->unsigned warnings lint found 2001-11-11 00:25:23 +00:00
thorpej
89893e42b7 ANSI'ify. 2001-08-25 18:04:01 +00:00
thorpej
11be81ff63 Regen. 2001-08-25 06:00:01 +00:00
thorpej
c783391d0a Note compatibility with the Am79c874, and document some more
registers.
2001-08-25 05:57:12 +00:00
thorpej
9d50e2e95a Back out previous; closer inspection of the manual reveals that the
Am79c874 has the same ID register contents as the AC101.
2001-08-25 05:55:19 +00:00
thorpej
820809faec Regen; added AMD Am79c874 NetPHY-1LP. 2001-08-25 05:45:25 +00:00
thorpej
05e4fb8e6c Add AMD Am79c874 NetPHY-1LP. 2001-08-25 05:44:59 +00:00
thorpej
85a7cdc261 Driver for the 10BASE-T portion of the AMD 79c901 PHY. 2001-08-25 04:06:26 +00:00
thorpej
158cb83996 Add a driver for generic HomePNA PHYs. Currently supports the HomePNA
portion of the AMD Am79c901.
2001-08-25 03:21:38 +00:00
thorpej
9fe2378664 For HomePNA PHYs, don't register it w/ ifmedia as 10BASE-T, but
rather as HomePNA1.
2001-08-25 01:57:56 +00:00
thorpej
f7f8866fea Add a flag that indicates that a device is a HomePNA device. 2001-08-25 01:41:17 +00:00
thorpej
684a4b71e3 Regen; improve AMD PHY names. 2001-08-25 01:39:59 +00:00
thorpej
9d04a424fe Improve the AMD PHY names. 2001-08-25 01:39:22 +00:00
thorpej
b6aa674493 Driver for the Altima AC101 10/100 Ethernet PHY. 2001-08-24 17:54:32 +00:00
thorpej
ce0d046061 Regen; recognize the 79c972's 10BASE-T interface mapped onto MII. 2001-08-23 04:47:36 +00:00
thorpej
b52818d607 The Am79c972 PCnet-FAST+ has its built-in 10BASE-T interface mapped
onto the MII bus.  Recognize it.
2001-08-23 04:47:05 +00:00
enami
4977f2fb2d Advertize pause capability (802.3x flow control) to peer. 2001-08-06 09:51:40 +00:00
bouyer
10a5470050 Ops, forgot to commit this one:
- kill carrier detection code, it's not that usefull and give false indications
  on loaded ethernet segments
2001-08-04 02:21:24 +00:00
thorpej
7459c35d44 Clean up 1000BASE-SX autonegotiation, and add a way to advertise
PAUSE capability.
2001-07-27 22:44:59 +00:00
thorpej
4333749c7a Use the bit-swapped OUI for the 5221. (Have I mentioned that I really
don't like how the current MII_OUI() works?)
2001-07-27 17:58:20 +00:00
thorpej
773c261d65 Add a 3Com 3c905B internal PHY. 2001-07-27 17:55:34 +00:00
thorpej
3d3c5fa78c Regen; added a 3Com 3c905B internal PHY made by Broadcom. 2001-07-27 17:55:07 +00:00
thorpej
4063cb411b Fixup some Broadcom entries, add an entry for Broadcom PHY that
is built-in to some 3Com 3c905B cards.
2001-07-27 17:54:40 +00:00
thorpej
4a416b823f Fix 1000BASE-X duplex negotiation. That'll teach me to read the
manual more carefully next time.
2001-07-25 22:00:43 +00:00
thorpej
bb93036fa9 Regen. 2001-07-20 07:07:28 +00:00
thorpej
959f6ee3f3 Adjust for the corrected Marvell entry. 2001-07-20 07:07:05 +00:00
thorpej
38f94a6fbe Bleh, I don't like the way our miidevs works now. Repair the
Marvell Semiconductor entry.
2001-07-20 07:06:42 +00:00
thorpej
41a68e94a9 Driver for the Level One LXT-1000 10/100/1000 PHY. 2001-07-12 21:54:40 +00:00
thorpej
be71426b74 Regen; Add LXT-1000, clean up. 2001-07-12 21:25:31 +00:00
thorpej
6e65eb3c21 Add LevelOne LXT-1000 10/100/1000 PHY, clean up some Gig-E
PHY names.
2001-07-12 21:25:07 +00:00
thorpej
aef9e7bea3 Code to handle generic ten-bit interfaces (1000BASE-{LX,SX} fiber
interfaces).
2001-07-12 18:49:38 +00:00
thorpej
0e863b15a6 Driver for the Marvell 88E1000 ``Alaska'' 10/100/1000 PHY. 2001-07-12 17:30:45 +00:00
thorpej
39928114d6 Regen; corrected Marvell entries. 2001-07-12 17:29:49 +00:00
thorpej
511aa23898 Correct Marvell OUI, and 88E1000 model number. 2001-07-12 17:29:18 +00:00
bjh21
8d829065a6 IFM_1000_TX -> IFM_1000_T, as (breifly) discussed on tech-net. 2001-06-30 17:53:58 +00:00
thorpej
0b0010a7c3 When probing for a PHY, look at the EXTSTAT bit in the BMSR, as well,
not just the media mask.  This prevents PHYs/TBIs that only support
Gigabit media from slipping through the cracks.
2001-06-20 01:42:41 +00:00
thorpej
7914a89b02 Add support for the Seeq 80225 10/100 Ethernet PHY. This is just
a stripped-down version of the 80220/80223.
2001-06-19 20:10:54 +00:00
thorpej
93169d8a94 Regen; added Seeq 80225 10/100 PHY. 2001-06-19 19:51:27 +00:00
thorpej
5d3c31d576 Add Seeq 80225 10/100 PHY. 2001-06-19 19:51:04 +00:00
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