NetBSD/sys/dev/mii
thorpej 2685996b0e Merge thorpej-cfargs branch:
Simplify and make extensible the config_search() / config_found() /
config_attach() interfaces: rather than having different variants for
which arguments you want pass along, just have a single call that
takes a variadic list of tag-value arguments.

Adjust all call sites:
- Simplify wherever possible; don't pass along arguments that aren't
  actually needed.
- Don't be explicit about what interface attribute is attaching if
  the device only has one.  (More simplification.)
- Add a config_probe() function to be used in indirect configuiration
  situations, making is visibly easier to see when indirect config is
  in play, and allowing for future change in semantics.  (As of now,
  this is just a wrapper around config_match(), but that is an
  implementation detail.)

Remove unnecessary or redundant interface attributes where they're not
needed.

There are currently 5 "cfargs" defined:
- CFARG_SUBMATCH (submatch function for direct config)
- CFARG_SEARCH (search function for indirect config)
- CFARG_IATTR (interface attribte)
- CFARG_LOCATORS (locators array)
- CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)

...and a sentinel value CFARG_EOL.

Add some extra sanity checking to ensure that interface attributes
aren't ambiguous.

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance.  This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).
2021-04-24 23:36:23 +00:00
..
Makefile.miidevs
acphy.c Define and implement a locking protocol for the ifmedia / mii layers: 2020-03-15 23:04:50 +00:00
acphyreg.h
amhphy.c Define and implement a locking protocol for the ifmedia / mii layers: 2020-03-15 23:04:50 +00:00
amhphyreg.h
atphy.c Define and implement a locking protocol for the ifmedia / mii layers: 2020-03-15 23:04:50 +00:00
bmtphy.c Define and implement a locking protocol for the ifmedia / mii layers: 2020-03-15 23:04:50 +00:00
bmtphyreg.h
brgphy.c Add support for BCM54213PE RGMII clock delays, from OpenBSD 2020-05-25 19:48:38 +00:00
brgphyreg.h Add support for BCM54213PE RGMII clock delays, from OpenBSD 2020-05-25 19:48:38 +00:00
ciphy.c Don't do full initialization for autonego when just restarting autonego 2020-08-24 04:23:41 +00:00
ciphyreg.h
devlist2h.awk mii_knowndevs[] is de facto const, define it as such. 2020-08-04 04:22:02 +00:00
dmphy.c Define and implement a locking protocol for the ifmedia / mii layers: 2020-03-15 23:04:50 +00:00
dmphyreg.h
etphy.c Define and implement a locking protocol for the ifmedia / mii layers: 2020-03-15 23:04:50 +00:00
exphy.c Define and implement a locking protocol for the ifmedia / mii layers: 2020-03-15 23:04:50 +00:00
files.mii
gentbi.c Define and implement a locking protocol for the ifmedia / mii layers: 2020-03-15 23:04:50 +00:00
glxtphy.c Define and implement a locking protocol for the ifmedia / mii layers: 2020-03-15 23:04:50 +00:00
glxtphyreg.h
gphyter.c Define and implement a locking protocol for the ifmedia / mii layers: 2020-03-15 23:04:50 +00:00
gphyterreg.h
icsphy.c Define and implement a locking protocol for the ifmedia / mii layers: 2020-03-15 23:04:50 +00:00
icsphyreg.h
igphy.c Fix a bug that "ifconfig xx0 media none" set LINK_STATE_UNKNOWN instead of 2020-11-04 09:15:10 +00:00
igphyreg.h Rename PSSR_* to MAKPHY_PSSR_* and IGPHY_PSSR_* to avoid conflict. 2020-08-03 07:25:59 +00:00
igphyvar.h
ihphy.c Fix a bug that "ifconfig xx0 media none" set LINK_STATE_UNKNOWN instead of 2020-11-04 09:15:10 +00:00
ihphyreg.h
ikphy.c Define and implement a locking protocol for the ifmedia / mii layers: 2020-03-15 23:04:50 +00:00
ikphyreg.h
inbmphyreg.h Add a workaround for jumbo frame on PCH2 and newer. Tested by chs@. 2020-09-16 15:04:01 +00:00
inphy.c Define and implement a locking protocol for the ifmedia / mii layers: 2020-03-15 23:04:50 +00:00
inphyreg.h
iophy.c Define and implement a locking protocol for the ifmedia / mii layers: 2020-03-15 23:04:50 +00:00
iophyreg.h
ipgphy.c Define and implement a locking protocol for the ifmedia / mii layers: 2020-03-15 23:04:50 +00:00
ipgphyreg.h
jmphy.c Define and implement a locking protocol for the ifmedia / mii layers: 2020-03-15 23:04:50 +00:00
jmphyreg.h
lxtphy.c Define and implement a locking protocol for the ifmedia / mii layers: 2020-03-15 23:04:50 +00:00
lxtphyreg.h
makphy.c Fix a bug that "ifconfig xx0 media none" set LINK_STATE_UNKNOWN instead of 2020-11-04 09:15:10 +00:00
makphyreg.h Rename PSSR_* to MAKPHY_PSSR_* and IGPHY_PSSR_* to avoid conflict. 2020-08-03 07:25:59 +00:00
makphyvar.h
mdio.h
micphy.c Don't set DVF_DETACH_SHUTDOWN. The MII layer wants to manage the lifecycle 2020-03-28 18:37:18 +00:00
mii.c Merge thorpej-cfargs branch: 2021-04-24 23:36:23 +00:00
mii.h
mii_bitbang.c
mii_bitbang.h
mii_ethersubr.c Define and implement a locking protocol for the ifmedia / mii layers: 2020-03-15 23:04:50 +00:00
mii_physubr.c Move mii_phy_statusmsg(sc) back to its original position. Fixes 2020-08-27 10:10:23 +00:00
mii_verbose.c
mii_verbose.h
miidevs Add some Microsemi (Vitesse) devices. 2020-06-23 14:35:36 +00:00
miidevs.h Regen. 2020-06-23 14:35:59 +00:00
miidevs_data.h mii_knowndevs[] is de facto const, define it as such. 2020-08-03 14:00:41 +00:00
miivar.h Don't do full initialization for autonego when just restarting autonego 2020-08-24 04:23:41 +00:00
mvphy.c Define and implement a locking protocol for the ifmedia / mii layers: 2020-03-15 23:04:50 +00:00
mvphyreg.h
nsphy.c Define and implement a locking protocol for the ifmedia / mii layers: 2020-03-15 23:04:50 +00:00
nsphyreg.h
nsphyter.c Don't set DVF_DETACH_SHUTDOWN. The MII layer wants to manage the lifecycle 2020-03-28 18:37:18 +00:00
nsphyterreg.h
pnaphy.c Define and implement a locking protocol for the ifmedia / mii layers: 2020-03-15 23:04:50 +00:00
qsphy.c Define and implement a locking protocol for the ifmedia / mii layers: 2020-03-15 23:04:50 +00:00
qsphyreg.h
rdcphy.c Add two new RDC PHYs from Andrius V. 2020-04-08 03:01:58 +00:00
rdcphyreg.h
rgephy.c Define and implement a locking protocol for the ifmedia / mii layers: 2020-03-15 23:04:50 +00:00
rgephyreg.h
rlphy.c Define and implement a locking protocol for the ifmedia / mii layers: 2020-03-15 23:04:50 +00:00
smscphy.c Define and implement a locking protocol for the ifmedia / mii layers: 2020-03-15 23:04:50 +00:00
sqphy.c Define and implement a locking protocol for the ifmedia / mii layers: 2020-03-15 23:04:50 +00:00
sqphyreg.h
tlphy.c - Remove the waitfor argument from mii_phy_auto(). 2020-07-07 08:44:12 +00:00
tlphyreg.h
tlphyvar.h
tqphy.c Define and implement a locking protocol for the ifmedia / mii layers: 2020-03-15 23:04:50 +00:00
tqphyreg.h
ukphy.c Don't set DVF_DETACH_SHUTDOWN. The MII layer wants to manage the lifecycle 2020-03-28 18:37:18 +00:00
ukphy_subr.c Define and implement a locking protocol for the ifmedia / mii layers: 2020-03-15 23:04:50 +00:00
urlphy.c Remove extra PHY_RESET(sc) in the MII_TICK path because it's not requierd 2020-08-24 04:49:05 +00:00
urlphyreg.h