Commit Graph

637 Commits

Author SHA1 Message Date
msaitoh
9a269949b1 Call brgpy specific autonego function in MII_TICK. Before this commit,
only MII_MEDIACHG calls brgphy_mii_phy_auto() and MII_TICK calls MI
mii_phy_auto(). That was not intended.
2013-06-21 04:25:51 +00:00
roy
3643d6b4fe Move the detaching and making tentative addresses out if in6_if_up
and into in6_if_link_up.

This fixes a possible panic where link is up but not the interface.
Note that a better solution would be to listen to the routing socket
in the kernel, but I don't know how to do that.

Reachable Router tests for IFF_UP as well.
2013-06-20 13:56:29 +00:00
msaitoh
6e84bd64a6 Use ihphy(4) for I21[78]. 2013-06-19 15:30:25 +00:00
msaitoh
d13f03981b The bit location of link ability is different between 1000Base-X and others
(See annex 28B.2 and 28D). The old mii.h defined ANAR_X_PAUSE_* macros. Those
macros were named for 1000Base-X, but the bit definitions were not for
1000Base-X but for others (e.g. 1000BaseT). So there was bug in auto
negotiation for 1000Base-X, but there was no bug for other media. Define new
macro named ANAR_PAUSE_* and ANLPAR_PAUSE_* for other than 1000Base-X and fix
the bit definitions of ANAR_X_PAUSE_* and ANLPPAR_X_*. Change some PHY drivers
to use true macro. Same as other *BSDs.
2013-06-16 06:29:08 +00:00
msaitoh
a9509b01aa KNF. 2013-06-14 06:21:51 +00:00
msaitoh
12cc82ab9c regen. 2013-06-12 02:51:43 +00:00
msaitoh
c8cc9541b4 Add some IC Plus Corp. devices. 2013-06-12 02:51:16 +00:00
msaitoh
7a4b6fed3e Remove wrong autonegotiation check. The mii_phy_tick() checks about
autonegotiation correctly. This change fixes the problem that the
autonegotiation timer doesn't work correctly with
"ifcongig xxx media 1000BaseT"
2013-06-11 16:18:48 +00:00
msaitoh
b4ac1458bf Remove duplicated code. The code to check IFF_UP and autonegotiation
is in mii_phy_tick(), too.
2013-06-11 07:22:08 +00:00
msaitoh
6b35712a03 Update link status quickly. This change is a part of mii_physubr.c rev.
1.77-1.78.
2013-06-11 07:22:07 +00:00
msaitoh
d060f6e507 Fix a bug in last commit that mii_ticks isn't inclemented. 2013-06-09 09:56:17 +00:00
msaitoh
307e621cc0 Update link status quickly. This change is a part of FreeBSD's mii_physubr.c
r158649.
2013-06-09 09:31:32 +00:00
msaitoh
23515adb99 Tabify. No functional change. 2013-06-09 09:24:29 +00:00
msaitoh
d2c936ef4d Don't "return" but "break" in MII_TICK when the interface isn't doing
autonegotiaton or the link is up to update the status.
2013-06-09 09:15:51 +00:00
msaitoh
5102301e34 ciphy is gigabit PHY, so use MII_ANEGTICKS_GIGE instead of MII_ANEGTICKS. 2013-06-09 08:45:32 +00:00
msaitoh
a2fa750028 atphy, ciphy, ihphy and rgephy are gigabit PHY, so not only check IFM_AUTO
for autonegotiation but also check IFM_1000_T, too.
2013-06-09 08:42:16 +00:00
msaitoh
5cbe9dd2fb Fix a bug that the auto negotiation timer isn't cleard as we expected.
To not to forget clearing the timer and to reduce the code duplication,
clear mii_ticks in *mii_phy_auto().
2013-06-06 03:10:48 +00:00
msaitoh
aad6e39e2f regen 2013-06-02 09:13:27 +00:00
msaitoh
b20e6dbf2e Intel I217 PHY 2013-06-02 09:13:07 +00:00
msaitoh
3dc68b4e55 regen. 2013-04-23 04:30:26 +00:00
msaitoh
cfa1bceb57 Add Intel I210 internal PHY. 2013-04-23 04:29:42 +00:00
msaitoh
8b8c367598 Fix typo. 2013-04-15 16:19:48 +00:00
msaitoh
0b320769b0 Add my name. 2013-04-15 12:02:47 +00:00
msaitoh
d2ad42ef3e Add new file mii/mdio.h which contain IEEE 802.3 Clause 45 MDIO
register definitions. From:
 - IEEE 802.3 2009
 - IEEE 802.3at
 - IEEE 802.3av
 - IEEE 802.3az
Currently, only device addresses and register number are written.
2013-04-15 11:48:27 +00:00
msaitoh
83607aa191 Add the following registers from IEEE 802.3-2009 Clause 22.
- PSE control register(0x0b)
 - PSE status register(0x0c)
 - MMD access control register(0x0d)
 - MMD access address data register(0x0e)
2013-04-15 08:09:48 +00:00
msaitoh
97c93d2b80 Fix typo in comment. 2013-04-03 03:24:27 +00:00
msaitoh
f5c05768d1 Sort. No functional change. 2013-04-01 13:44:02 +00:00
msaitoh
faff210611 In brgphyattach(), set sc_isbge, sc_isbnx and sc_phyflags before PHY_RESET()
because brgphy_reset() refers those flags.
2013-04-01 13:41:37 +00:00
msaitoh
3572840d82 - Rename PHY related flags for the consistency. It's the same as FreeBSD.
- Remove BGE_10_100_ONLY flag because this was not used.
  For 10/100 devices, when calling mii_attach(), mask BMSR_EXTSTAT flag to
  not to check Gigabit flags. It's the same as FreeBSD.
2013-03-19 04:10:12 +00:00
msaitoh
379ef33c04 Add BCM5756, BCM5717C, BCM5719C, BCM5720C and BCM57780. 2013-03-15 06:18:13 +00:00
msaitoh
7e10e90df7 Regen. 2013-03-14 20:06:38 +00:00
msaitoh
d12896e106 Add BCM5756. 2013-03-14 20:06:04 +00:00
msaitoh
2bdaa896b0 regen. 2013-02-20 16:41:48 +00:00
msaitoh
88633825b7 Add BCM5708S, BCM57780, BCM5717C, BCM5719C and BCM5720C. 2013-02-20 16:41:19 +00:00
jakllsch
1226734014 regen 2013-01-12 21:43:26 +00:00
jakllsch
280c378d8a Unlike usbdevs, miidevs needs the vendor name in the product id string. 2013-01-12 21:43:13 +00:00
jakllsch
1c0f4ed0a6 regen. 2013-01-12 21:26:24 +00:00
jakllsch
360b3a6f8c Add SMSC OUI and LAN8700 and LAN8710/LAN8720 PHY IDs,
at this point just for MIIVERBOSE.
2013-01-12 21:25:58 +00:00
msaitoh
8ac15b216d Style fix. No functional change. 2012-10-18 08:22:37 +00:00
mlelstv
ec54e2b865 use media_table instead of replicating code 2012-10-03 07:08:58 +00:00
tsutsui
b36dfb1f62 Add support for BCM57765. PR kern/46961 2012-09-17 11:45:56 +00:00
tsutsui
9b4e990907 Regen from miidevs rev 1.109:
> Add another Broadcom OUI and BCM57765 1000BASE-T media interface.
> Per PR kern/46961.
2012-09-17 11:43:50 +00:00
tsutsui
fc46c9fb13 Add another Broadcom OUI and BCM57765 1000BASE-T media interface.
Per PR kern/46961.
2012-09-17 11:42:38 +00:00
msaitoh
4a418e8c7d Fix typos 2012-08-24 09:01:22 +00:00
matt
24240d720e Make it match AR8035 2012-07-23 00:09:49 +00:00
matt
0bc3200029 Fix mii_statchg to take a 'struct ifnet *' instead of device_t. This fixes
problem with a common MDIO bus used for multiple interfaces.
Some drivers converted to CFATTACL_DECL_NEW.
2012-07-22 14:32:49 +00:00
matt
670d18da6c Regen. 2012-07-15 07:31:18 +00:00
matt
5066e7176b Add AR8035 2012-07-15 07:30:57 +00:00
matt
2a87f54efb Regen. 2012-04-06 18:49:44 +00:00
matt
838bae0c3f Add VSC8221 2012-04-06 18:49:17 +00:00