Deleted Added
full compact
ciphy.c (183489) ciphy.c (183490)
1/*-
2 * Copyright (c) 2004
3 * Bill Paul <wpaul@windriver.com>. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 17 unchanged lines hidden (view full) ---

26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
30 * THE POSSIBILITY OF SUCH DAMAGE.
31 */
32
33#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2004
3 * Bill Paul <wpaul@windriver.com>. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 17 unchanged lines hidden (view full) ---

26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
30 * THE POSSIBILITY OF SUCH DAMAGE.
31 */
32
33#include <sys/cdefs.h>
34__FBSDID("$FreeBSD: head/sys/dev/mii/ciphy.c 183489 2008-09-30 07:20:26Z yongari $");
34__FBSDID("$FreeBSD: head/sys/dev/mii/ciphy.c 183490 2008-09-30 07:22:02Z yongari $");
35
36/*
37 * Driver for the Cicada/Vitesse CS/VSC8xxx 10/100/1000 copper PHY.
38 */
39
40#include <sys/param.h>
41#include <sys/systm.h>
42#include <sys/kernel.h>

--- 227 unchanged lines hidden (view full) ---

270 /*
271 * Only retry autonegotiation every mii_anegticks seconds.
272 */
273 if (sc->mii_ticks <= sc->mii_anegticks)
274 break;
275
276 sc->mii_ticks = 0;
277 mii_phy_auto(sc);
35
36/*
37 * Driver for the Cicada/Vitesse CS/VSC8xxx 10/100/1000 copper PHY.
38 */
39
40#include <sys/param.h>
41#include <sys/systm.h>
42#include <sys/kernel.h>

--- 227 unchanged lines hidden (view full) ---

270 /*
271 * Only retry autonegotiation every mii_anegticks seconds.
272 */
273 if (sc->mii_ticks <= sc->mii_anegticks)
274 break;
275
276 sc->mii_ticks = 0;
277 mii_phy_auto(sc);
278 return (0);
278 break;
279 }
280
281 /* Update the media status. */
282 ciphy_status(sc);
283
284 /*
285 * Callback if something changed. Note that we need to poke
286 * apply fixups for certain PHY revs.

--- 145 unchanged lines hidden ---
279 }
280
281 /* Update the media status. */
282 ciphy_status(sc);
283
284 /*
285 * Callback if something changed. Note that we need to poke
286 * apply fixups for certain PHY revs.

--- 145 unchanged lines hidden ---