Deleted Added
full compact
ciphy.c (183490) ciphy.c (183491)
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 183490 2008-09-30 07:22:02Z yongari $");
34__FBSDID("$FreeBSD: head/sys/dev/mii/ciphy.c 183491 2008-09-30 07:24:20Z 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>

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

335 default:
336 device_printf(sc->mii_dev, "unknown PHY speed %x\n",
337 bmsr & CIPHY_AUXCSR_SPEED);
338 break;
339 }
340
341 if (bmsr & CIPHY_AUXCSR_FDX)
342 mii->mii_media_active |= IFM_FDX;
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>

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

335 default:
336 device_printf(sc->mii_dev, "unknown PHY speed %x\n",
337 bmsr & CIPHY_AUXCSR_SPEED);
338 break;
339 }
340
341 if (bmsr & CIPHY_AUXCSR_FDX)
342 mii->mii_media_active |= IFM_FDX;
343 else
344 mii->mii_media_active |= IFM_HDX;
343}
344
345static void
346ciphy_reset(struct mii_softc *sc)
347{
348
349 mii_phy_reset(sc);
350 DELAY(1000);

--- 81 unchanged lines hidden ---
345}
346
347static void
348ciphy_reset(struct mii_softc *sc)
349{
350
351 mii_phy_reset(sc);
352 DELAY(1000);

--- 81 unchanged lines hidden ---