atphy.c (257184) | atphy.c (257751) |
---|---|
1/*- 2 * Copyright (c) 2008, Pyun YongHyeon <yongari@FreeBSD.org> 3 * 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 --- 12 unchanged lines hidden (view full) --- 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 */ 27 28#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2008, Pyun YongHyeon <yongari@FreeBSD.org> 3 * 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 --- 12 unchanged lines hidden (view full) --- 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 */ 27 28#include <sys/cdefs.h> |
29__FBSDID("$FreeBSD: head/sys/dev/mii/atphy.c 257184 2013-10-26 18:40:17Z glebius $"); | 29__FBSDID("$FreeBSD: head/sys/dev/mii/atphy.c 257751 2013-11-06 16:28:26Z nwhitehorn $"); |
30 31/* 32 * Driver for the Attansic/Atheros F1 10/100/1000 PHY. 33 */ 34 35#include <sys/param.h> 36#include <sys/systm.h> 37#include <sys/kernel.h> --- 37 unchanged lines hidden (view full) --- 75static void atphy_status(struct mii_softc *); 76static void atphy_reset(struct mii_softc *); 77static uint16_t atphy_anar(struct ifmedia_entry *); 78static int atphy_setmedia(struct mii_softc *, int); 79 80static const struct mii_phydesc atphys[] = { 81 MII_PHY_DESC(xxATHEROS, F1), 82 MII_PHY_DESC(xxATHEROS, F1_7), | 30 31/* 32 * Driver for the Attansic/Atheros F1 10/100/1000 PHY. 33 */ 34 35#include <sys/param.h> 36#include <sys/systm.h> 37#include <sys/kernel.h> --- 37 unchanged lines hidden (view full) --- 75static void atphy_status(struct mii_softc *); 76static void atphy_reset(struct mii_softc *); 77static uint16_t atphy_anar(struct ifmedia_entry *); 78static int atphy_setmedia(struct mii_softc *, int); 79 80static const struct mii_phydesc atphys[] = { 81 MII_PHY_DESC(xxATHEROS, F1), 82 MII_PHY_DESC(xxATHEROS, F1_7), |
83 MII_PHY_DESC(xxATHEROS, AR8021), |
|
83 MII_PHY_DESC(xxATHEROS, F2), 84 MII_PHY_END 85}; 86 87static const struct mii_phy_funcs atphy_funcs = { 88 atphy_service, 89 atphy_status, 90 atphy_reset --- 275 unchanged lines hidden --- | 84 MII_PHY_DESC(xxATHEROS, F2), 85 MII_PHY_END 86}; 87 88static const struct mii_phy_funcs atphy_funcs = { 89 atphy_service, 90 atphy_status, 91 atphy_reset --- 275 unchanged lines hidden --- |