freebsd-skq/sys/dev/dc
yongari dc543f1c56 When driver have to use base softc due to lack of SROM on second
port, copy SROM information from base softc as well and run SROM
parser again.  This change is necessary for some dual port
controllers to make dc(4) correctly detect PHY media based on first
port configuration table.
While I'm here add a check for validity of the base softc before
duplicating SROM contents from base softc. If driver failed to
attach to the first port it can access invalid area.

PR:		kern/79262
Reviewed by:	marius
2011-02-18 02:14:53 +00:00
..
dcphy.c - Even after masking the media with IFM_GMASK the result may have bits 2011-01-14 20:26:59 +00:00
if_dc.c When driver have to use base softc due to lack of SROM on second 2011-02-18 02:14:53 +00:00
if_dcreg.h Always check memory allocation failure. If driver encounter memory 2011-02-18 01:56:25 +00:00
pnphy.c - Even after masking the media with IFM_GMASK the result may have bits 2011-01-14 20:26:59 +00:00