KNF. No functional change.

This commit is contained in:
msaitoh 2019-12-13 08:30:26 +00:00
parent 4ce8167144
commit 333d7cf6d4
2 changed files with 13 additions and 11 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: atphy.c,v 1.26 2019/11/27 10:19:20 msaitoh Exp $ */
/* $NetBSD: atphy.c,v 1.27 2019/12/13 08:30:26 msaitoh Exp $ */
/* $OpenBSD: atphy.c,v 1.1 2008/09/25 20:47:16 brad Exp $ */
/*-
@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: atphy.c,v 1.26 2019/11/27 10:19:20 msaitoh Exp $");
__KERNEL_RCSID(0, "$NetBSD: atphy.c,v 1.27 2019/12/13 08:30:26 msaitoh Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -99,7 +99,7 @@ CFATTACH_DECL_NEW(atphy, sizeof(struct atphy_softc),
atphy_match, atphy_attach, mii_phy_detach, mii_phy_activate);
const struct mii_phy_funcs atphy_funcs = {
atphy_service, atphy_status, atphy_reset,
atphy_service, atphy_status, atphy_reset,
};
static const struct mii_phydesc atphys[] = {
@ -192,8 +192,10 @@ atphy_attach(device_t parent, device_t self, void *aux)
sc->mii_flags = ma->mii_flags;
sc->mii_flags |= MIIF_NOLOOP;
prop_dictionary_get_bool(parent_prop, "tx_internal_delay", &asc->rgmii_tx_internal_delay);
prop_dictionary_get_bool(parent_prop, "rx_internal_delay", &asc->rgmii_rx_internal_delay);
prop_dictionary_get_bool(parent_prop, "tx_internal_delay",
&asc->rgmii_tx_internal_delay);
prop_dictionary_get_bool(parent_prop, "rx_internal_delay",
&asc->rgmii_rx_internal_delay);
prop_dictionary_get_uint32(prop, "clk_25m", &asc->mii_clk_25m);
if (asc->mii_clk_25m != 0)

View File

@ -1,4 +1,4 @@
/* $NetBSD: micphy.c,v 1.10 2019/11/27 10:19:20 msaitoh Exp $ */
/* $NetBSD: micphy.c,v 1.11 2019/12/13 08:30:26 msaitoh Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc.
@ -59,7 +59,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: micphy.c,v 1.10 2019/11/27 10:19:20 msaitoh Exp $");
__KERNEL_RCSID(0, "$NetBSD: micphy.c,v 1.11 2019/12/13 08:30:26 msaitoh Exp $");
#include "opt_mii.h"
@ -113,7 +113,7 @@ static const struct mii_phydesc micphys[] = {
};
/*
* Model Rev. Media LSTYPE Devices
* Model Rev. Media LSTYPE Devices
*
* 0x11 100 1F_42 KSZ8041
* 0x13 100 1F_42? KSZ8041RNLI
@ -129,10 +129,10 @@ static const struct mii_phydesc micphys[] = {
* 0x9 100 none? KSZ8721CL
* 0xa 100 1F_42 KSZ8001
* 0x22 giga GIGA KSZ9031
* 0x23 1? gigasw GIGA KSZ9477 (No master/slave bit)
* 0x23 1? gigasw GIGA KSZ9477 (No master/slave bit)
* 5? giga GIGA LAN7430internal
* 0x24 giga GIGA KSZ9131
* 0x32 100 1F_42 KS8737
* 0x24 giga GIGA KSZ9131
* 0x32 100 1F_42 KS8737
*/
/* Type of link status register */