chipphyadvertise(phyaddr)
set the advertised capabilities for autonegotiation and starts the autonegotiation
- if phyaddr is 30 (EPHY_NOREG)
- return
- if forced speed is not auto
- return
write result of call chipphyrd with phyaddr and 4 into adv
- unset bits ADV_100FULL, ADV_100HALF, ADV_10FULL and ADV_10HALF in adv
- set bits ADV_100FULL, ADV_100HALF, ADV_10FULL and ADV_10HALF in adv depending on what is supported of these
call chipphywr with phyaddr, 4 and adv
write result of call chipphyrd with phyaddr and 9 into adv2
- unset bits ADV_1000FULL and ADV_1000HALF in adv2
- set bits ADV_1000FULL and ADV_1000HALF in adv2 depending on what is supported of these
call chipphywr with phyaddr, 9 and adv2
call chipphyor with phyaddr, 0 and CTL_RESTART