NetBSD/sys/dev/mii
jdolecek 2d5df332d0 switch to using OpenBSD eehpy(4) code to drive maphy(4), synchronizing support
for several special PHY conditions, particularly:
- Properly re-initialise the PHY upon resume
- Store next page in the Link Partner Next Page register for compatibility
  with 802.3ab on 88E3016 PHYs.  Fixes some autonegotiation problems on msk(4)
- Make 88E3016 actually work
- Make sure page 0 is selected when we initialize the PHY.  Fixes problems
  with the eephy(4) that attaches to nfe(4) on machines like the Sun Ultra 40.
  (we had condition for this, now the page 0 is selected for any PHY type)
- Disable fiber/copper auto-selection on the 88E1111 if it is in RGMII mode, to
  work around the fact that the onboard PHYs attached to nfe(4) on the Sun
  X4100 M2 have fiber/copper auto-selection enabled even though the interfaces
  are clearly copper-only

make sure to also add appropriate licenses, since basically nothing
really significant remains out of previous code

use FreeBSD <dev/mii/e1000reg.h> for register definitions as a base instead
of OpenBSD <dev/mii/eephyreg.h>, since it has some extra definitions for some
3016 bits, but add the several extra bits from OpenBSD needed by the code;
removed no longed used <dev/mii/makphyreg.h>

tested with PHY 88E1111, there no particular change observed - the
link status works as it did before, just now it does media nego
even before the interface is up

should however fix 88E3016 support and hence PR kern/49270 and PR kern/53301
2018-06-16 17:44:53 +00:00
..
acphy.c KNF. Remove extra spaces. No functional change. 2016-07-07 06:55:38 +00:00
acphyreg.h
amhphy.c
amhphyreg.h
atphy.c Set mii_mpd_{oui,model,rev}. 2016-11-02 10:11:32 +00:00
bmtphy.c KNF. Remove extra spaces. No functional change. 2016-07-07 06:55:38 +00:00
bmtphyreg.h
brgphy.c
brgphyreg.h
ciphy.c KNF. Remove extra spaces. No functional change. 2016-07-07 06:55:38 +00:00
ciphyreg.h
devlist2h.awk remove my copyright. 2017-06-03 14:46:29 +00:00
dmphy.c KNF. Remove extra spaces. No functional change. 2016-07-07 06:55:38 +00:00
dmphyreg.h
e1000phyreg.h switch to using OpenBSD eehpy(4) code to drive maphy(4), synchronizing support 2018-06-16 17:44:53 +00:00
etphy.c
exphy.c KNF. Remove extra spaces. No functional change. 2016-07-07 06:55:38 +00:00
files.mii
gentbi.c
glxtphy.c KNF. Remove extra spaces. No functional change. 2016-07-07 06:55:38 +00:00
glxtphyreg.h
gphyter.c KNF. Remove extra spaces. No functional change. 2016-07-07 06:55:38 +00:00
gphyterreg.h
icsphy.c KNF. Remove extra spaces. No functional change. 2016-07-07 06:55:38 +00:00
icsphyreg.h
igphy.c Update comment. SmartSpeed workaroud code was added in rev. 1.5. No functional 2017-07-06 08:09:05 +00:00
igphyreg.h Fix previous (s/MII_MAXREGADDR/MII_ADDRMASK/). 2016-11-07 08:57:43 +00:00
igphyvar.h
ihphy.c Set mii_mpd_{oui,model,rev}. 2016-11-02 07:01:54 +00:00
ihphyreg.h - Add wm_write_smbus_addr() to set SMBus address by software. 2017-07-18 08:22:55 +00:00
ikphy.c Set mii_mpd_{oui,model,rev}. 2016-11-02 07:01:54 +00:00
ikphyreg.h - Use MII_ADDRMASK. 2016-10-28 05:50:18 +00:00
inbmphyreg.h - Call wm_kmrn_lock_loss_workaround_ich8lan() before any PHY access in 2017-07-13 08:22:20 +00:00
inphy.c Set mii_mpd_{oui,model,rev}. 2016-11-08 07:22:26 +00:00
inphyreg.h
iophy.c KNF. Remove extra spaces. No functional change. 2016-07-07 06:55:38 +00:00
iophyreg.h
lxtphy.c KNF. Remove extra spaces. No functional change. 2016-07-07 06:55:38 +00:00
lxtphyreg.h
Makefile.miidevs
makphy.c switch to using OpenBSD eehpy(4) code to drive maphy(4), synchronizing support 2018-06-16 17:44:53 +00:00
mdio.h Define bit definitions of MDIO_PMAPMD_CTRL1 and MDIO_AN_CTRL1. 2017-11-07 05:33:12 +00:00
micphy.c KNF. Remove extra spaces. No functional change. 2016-07-07 06:55:38 +00:00
mii_bitbang.c
mii_bitbang.h
mii_ethersubr.c
mii_physubr.c KNF in comment. No functional change. 2018-03-05 08:56:49 +00:00
mii_verbose.c
mii_verbose.h
mii.c Constify nibbletab 2015-06-11 05:22:55 +00:00
mii.h - Add some bit definitions: 2017-06-07 03:21:31 +00:00
miidevs add E1000 with model id 0x0006, it exists according to OpenBSD 2018-06-13 23:25:25 +00:00
miidevs_data.h regen 2018-06-13 23:25:41 +00:00
miidevs.h regen 2018-06-13 23:25:41 +00:00
miivar.h
mvphy.c
mvphyreg.h
nsphy.c Do not deref a NULL pointer if no current media has been selected. 2017-08-12 11:21:15 +00:00
nsphyreg.h
nsphyter.c KNF. Remove extra spaces. No functional change. 2016-07-07 06:55:38 +00:00
nsphyterreg.h
pnaphy.c KNF. Remove extra spaces. No functional change. 2016-07-07 06:55:38 +00:00
qsphy.c KNF. Remove extra spaces. No functional change. 2016-07-07 06:55:38 +00:00
qsphyreg.h
rdcphy.c
rdcphyreg.h
rgephy.c Avoid using proplib in rgephy_reset to make LOCKDEBUG happy. 2018-02-03 19:34:01 +00:00
rgephyreg.h add some more RTL8211F bits 2015-08-21 16:29:48 +00:00
rlphy.c KNF. Remove extra spaces. No functional change. 2016-07-07 06:55:38 +00:00
sqphy.c KNF. Remove extra spaces. No functional change. 2016-07-07 06:55:38 +00:00
sqphyreg.h
tlphy.c
tlphyreg.h
tlphyvar.h
tqphy.c KNF. Remove extra spaces. No functional change. 2016-07-07 06:55:38 +00:00
tqphyreg.h
ukphy_subr.c
ukphy.c KNF. Remove extra spaces. No functional change. 2016-07-07 06:55:38 +00:00
urlphy.c KNF. Remove extra spaces. No functional change. 2016-07-07 06:55:38 +00:00
urlphyreg.h