Put function return types on a line by themselves.
Cleanup my earlier de-__P sweep and remove whitespace between function names and paramters.
This commit is contained in:
parent
413f5a8add
commit
9c1c2e9924
@ -120,7 +120,8 @@ static void dcphy_status(struct mii_softc *);
|
||||
static void dcphy_reset(struct mii_softc *);
|
||||
static int dcphy_auto(struct mii_softc *);
|
||||
|
||||
static int dcphy_probe(dev)
|
||||
static int
|
||||
dcphy_probe(dev)
|
||||
device_t dev;
|
||||
{
|
||||
struct mii_attach_args *ma;
|
||||
@ -140,7 +141,8 @@ static int dcphy_probe(dev)
|
||||
return (0);
|
||||
}
|
||||
|
||||
static int dcphy_attach(dev)
|
||||
static int
|
||||
dcphy_attach(dev)
|
||||
device_t dev;
|
||||
{
|
||||
struct mii_softc *sc;
|
||||
|
@ -105,7 +105,8 @@ DRIVER_MODULE(pnphy, miibus, pnphy_driver, pnphy_devclass, 0, 0);
|
||||
static int pnphy_service(struct mii_softc *, struct mii_data *, int);
|
||||
static void pnphy_status(struct mii_softc *);
|
||||
|
||||
static int pnphy_probe(dev)
|
||||
static int
|
||||
pnphy_probe(dev)
|
||||
device_t dev;
|
||||
{
|
||||
struct mii_attach_args *ma;
|
||||
@ -125,7 +126,8 @@ static int pnphy_probe(dev)
|
||||
return (0);
|
||||
}
|
||||
|
||||
static int pnphy_attach(dev)
|
||||
static int
|
||||
pnphy_attach(dev)
|
||||
device_t dev;
|
||||
{
|
||||
struct mii_softc *sc;
|
||||
|
@ -118,7 +118,8 @@ static int acphy_service(struct mii_softc *, struct mii_data *, int);
|
||||
static void acphy_reset(struct mii_softc *);
|
||||
static void acphy_status(struct mii_softc *);
|
||||
|
||||
static int acphy_probe(dev)
|
||||
static int
|
||||
acphy_probe(dev)
|
||||
device_t dev;
|
||||
{
|
||||
struct mii_attach_args *ma;
|
||||
@ -134,7 +135,8 @@ static int acphy_probe(dev)
|
||||
return (0);
|
||||
}
|
||||
|
||||
static int acphy_attach(dev)
|
||||
static int
|
||||
acphy_attach(dev)
|
||||
device_t dev;
|
||||
{
|
||||
struct mii_softc *sc;
|
||||
|
@ -85,7 +85,8 @@ DRIVER_MODULE(amphy, miibus, amphy_driver, amphy_devclass, 0, 0);
|
||||
static int amphy_service(struct mii_softc *, struct mii_data *, int);
|
||||
static void amphy_status(struct mii_softc *);
|
||||
|
||||
static int amphy_probe(dev)
|
||||
static int
|
||||
amphy_probe(dev)
|
||||
device_t dev;
|
||||
{
|
||||
struct mii_attach_args *ma;
|
||||
@ -106,7 +107,8 @@ static int amphy_probe(dev)
|
||||
return(0);
|
||||
}
|
||||
|
||||
static int amphy_attach(dev)
|
||||
static int
|
||||
amphy_attach(dev)
|
||||
device_t dev;
|
||||
{
|
||||
struct mii_softc *sc;
|
||||
|
@ -88,7 +88,8 @@ static int brgphy_service(struct mii_softc *, struct mii_data *, int);
|
||||
static void brgphy_status(struct mii_softc *);
|
||||
static int brgphy_mii_phy_auto(struct mii_softc *);
|
||||
|
||||
static int brgphy_probe(dev)
|
||||
static int
|
||||
brgphy_probe(dev)
|
||||
device_t dev;
|
||||
{
|
||||
struct mii_attach_args *ma;
|
||||
@ -128,7 +129,8 @@ static int brgphy_probe(dev)
|
||||
return(ENXIO);
|
||||
}
|
||||
|
||||
static int brgphy_attach(dev)
|
||||
static int
|
||||
brgphy_attach(dev)
|
||||
device_t dev;
|
||||
{
|
||||
struct mii_softc *sc;
|
||||
|
@ -120,7 +120,8 @@ static void dcphy_status(struct mii_softc *);
|
||||
static void dcphy_reset(struct mii_softc *);
|
||||
static int dcphy_auto(struct mii_softc *);
|
||||
|
||||
static int dcphy_probe(dev)
|
||||
static int
|
||||
dcphy_probe(dev)
|
||||
device_t dev;
|
||||
{
|
||||
struct mii_attach_args *ma;
|
||||
@ -140,7 +141,8 @@ static int dcphy_probe(dev)
|
||||
return (0);
|
||||
}
|
||||
|
||||
static int dcphy_attach(dev)
|
||||
static int
|
||||
dcphy_attach(dev)
|
||||
device_t dev;
|
||||
{
|
||||
struct mii_softc *sc;
|
||||
|
@ -116,7 +116,8 @@ DRIVER_MODULE(xlphy, miibus, exphy_driver, exphy_devclass, 0, 0);
|
||||
static int exphy_service(struct mii_softc *, struct mii_data *, int);
|
||||
static void exphy_reset(struct mii_softc *);
|
||||
|
||||
static int exphy_probe(dev)
|
||||
static int
|
||||
exphy_probe(dev)
|
||||
device_t dev;
|
||||
{
|
||||
struct mii_attach_args *ma;
|
||||
@ -148,7 +149,8 @@ static int exphy_probe(dev)
|
||||
return (0);
|
||||
}
|
||||
|
||||
static int exphy_attach(dev)
|
||||
static int
|
||||
exphy_attach(dev)
|
||||
device_t dev;
|
||||
{
|
||||
struct mii_softc *sc;
|
||||
|
@ -123,7 +123,8 @@ static void lxtphy_status(struct mii_softc *);
|
||||
static void lxtphy_set_tp(struct mii_softc *);
|
||||
static void lxtphy_set_fx(struct mii_softc *);
|
||||
|
||||
static int lxtphy_probe(dev)
|
||||
static int
|
||||
lxtphy_probe(dev)
|
||||
device_t dev;
|
||||
{
|
||||
struct mii_attach_args *ma;
|
||||
@ -139,7 +140,8 @@ static int lxtphy_probe(dev)
|
||||
return (0);
|
||||
}
|
||||
|
||||
static int lxtphy_attach(dev)
|
||||
static int
|
||||
lxtphy_attach(dev)
|
||||
device_t dev;
|
||||
{
|
||||
struct mii_softc *sc;
|
||||
|
@ -105,7 +105,8 @@ driver_t miibus_driver = {
|
||||
* to the network interface driver parent.
|
||||
*/
|
||||
|
||||
int miibus_probe(dev)
|
||||
int
|
||||
miibus_probe(dev)
|
||||
device_t dev;
|
||||
{
|
||||
struct mii_attach_args ma, *args;
|
||||
@ -158,7 +159,8 @@ int miibus_probe(dev)
|
||||
return(0);
|
||||
}
|
||||
|
||||
int miibus_attach(dev)
|
||||
int
|
||||
miibus_attach(dev)
|
||||
device_t dev;
|
||||
{
|
||||
void **v;
|
||||
@ -180,7 +182,8 @@ int miibus_attach(dev)
|
||||
return(0);
|
||||
}
|
||||
|
||||
int miibus_detach(dev)
|
||||
int
|
||||
miibus_detach(dev)
|
||||
device_t dev;
|
||||
{
|
||||
struct mii_data *mii;
|
||||
@ -193,7 +196,8 @@ int miibus_detach(dev)
|
||||
return(0);
|
||||
}
|
||||
|
||||
static int miibus_readreg(dev, phy, reg)
|
||||
static int
|
||||
miibus_readreg(dev, phy, reg)
|
||||
device_t dev;
|
||||
int phy, reg;
|
||||
{
|
||||
@ -203,7 +207,8 @@ static int miibus_readreg(dev, phy, reg)
|
||||
return(MIIBUS_READREG(parent, phy, reg));
|
||||
}
|
||||
|
||||
static int miibus_writereg(dev, phy, reg, data)
|
||||
static int
|
||||
miibus_writereg(dev, phy, reg, data)
|
||||
device_t dev;
|
||||
int phy, reg, data;
|
||||
{
|
||||
@ -213,7 +218,8 @@ static int miibus_writereg(dev, phy, reg, data)
|
||||
return(MIIBUS_WRITEREG(parent, phy, reg, data));
|
||||
}
|
||||
|
||||
static void miibus_statchg(dev)
|
||||
static void
|
||||
miibus_statchg(dev)
|
||||
device_t dev;
|
||||
{
|
||||
device_t parent;
|
||||
@ -253,7 +259,8 @@ miibus_linkchg(dev)
|
||||
KNOTE(&ifp->if_klist, link);
|
||||
}
|
||||
|
||||
static void miibus_mediainit(dev)
|
||||
static void
|
||||
miibus_mediainit(dev)
|
||||
device_t dev;
|
||||
{
|
||||
struct mii_data *mii;
|
||||
@ -275,7 +282,8 @@ static void miibus_mediainit(dev)
|
||||
return;
|
||||
}
|
||||
|
||||
int mii_phy_probe(dev, child, ifmedia_upd, ifmedia_sts)
|
||||
int
|
||||
mii_phy_probe(dev, child, ifmedia_upd, ifmedia_sts)
|
||||
device_t dev;
|
||||
device_t *child;
|
||||
ifm_change_cb_t ifmedia_upd;
|
||||
|
@ -98,7 +98,8 @@ static int mlphy_service(struct mii_softc *, struct mii_data *, int);
|
||||
static void mlphy_reset(struct mii_softc *);
|
||||
static void mlphy_status(struct mii_softc *);
|
||||
|
||||
static int mlphy_probe(dev)
|
||||
static int
|
||||
mlphy_probe(dev)
|
||||
device_t dev;
|
||||
{
|
||||
struct mii_attach_args *ma;
|
||||
@ -127,7 +128,8 @@ static int mlphy_probe(dev)
|
||||
return (0);
|
||||
}
|
||||
|
||||
static int mlphy_attach(dev)
|
||||
static int
|
||||
mlphy_attach(dev)
|
||||
device_t dev;
|
||||
{
|
||||
struct mlphy_softc *msc;
|
||||
@ -372,7 +374,8 @@ mlphy_service(xsc, mii, cmd)
|
||||
* The Micro Linear PHY comes out of reset with the 'autoneg
|
||||
* enable' bit set, which we don't want.
|
||||
*/
|
||||
static void mlphy_reset(sc)
|
||||
static void
|
||||
mlphy_reset(sc)
|
||||
struct mii_softc *sc;
|
||||
{
|
||||
int reg;
|
||||
@ -389,7 +392,8 @@ static void mlphy_reset(sc)
|
||||
* If we negotiate a 10Mbps mode, we need to check for an alternate
|
||||
* PHY and make sure it's enabled and set correctly.
|
||||
*/
|
||||
static void mlphy_status(sc)
|
||||
static void
|
||||
mlphy_status(sc)
|
||||
struct mii_softc *sc;
|
||||
{
|
||||
struct mlphy_softc *msc = (struct mlphy_softc *)sc;
|
||||
|
@ -120,7 +120,8 @@ DRIVER_MODULE(nsphy, miibus, nsphy_driver, nsphy_devclass, 0, 0);
|
||||
static int nsphy_service(struct mii_softc *, struct mii_data *, int);
|
||||
static void nsphy_status(struct mii_softc *);
|
||||
|
||||
static int nsphy_probe(dev)
|
||||
static int
|
||||
nsphy_probe(dev)
|
||||
device_t dev;
|
||||
{
|
||||
struct mii_attach_args *ma;
|
||||
@ -136,7 +137,8 @@ static int nsphy_probe(dev)
|
||||
return (0);
|
||||
}
|
||||
|
||||
static int nsphy_attach(dev)
|
||||
static int
|
||||
nsphy_attach(dev)
|
||||
device_t dev;
|
||||
{
|
||||
struct mii_softc *sc;
|
||||
|
@ -105,7 +105,8 @@ DRIVER_MODULE(pnphy, miibus, pnphy_driver, pnphy_devclass, 0, 0);
|
||||
static int pnphy_service(struct mii_softc *, struct mii_data *, int);
|
||||
static void pnphy_status(struct mii_softc *);
|
||||
|
||||
static int pnphy_probe(dev)
|
||||
static int
|
||||
pnphy_probe(dev)
|
||||
device_t dev;
|
||||
{
|
||||
struct mii_attach_args *ma;
|
||||
@ -125,7 +126,8 @@ static int pnphy_probe(dev)
|
||||
return (0);
|
||||
}
|
||||
|
||||
static int pnphy_attach(dev)
|
||||
static int
|
||||
pnphy_attach(dev)
|
||||
device_t dev;
|
||||
{
|
||||
struct mii_softc *sc;
|
||||
|
@ -122,7 +122,8 @@ static int qsphy_service(struct mii_softc *, struct mii_data *, int);
|
||||
static void qsphy_reset(struct mii_softc *);
|
||||
static void qsphy_status(struct mii_softc *);
|
||||
|
||||
static int qsphy_probe(dev)
|
||||
static int
|
||||
qsphy_probe(dev)
|
||||
device_t dev;
|
||||
{
|
||||
struct mii_attach_args *ma;
|
||||
@ -138,7 +139,8 @@ static int qsphy_probe(dev)
|
||||
return (0);
|
||||
}
|
||||
|
||||
static int qsphy_attach(dev)
|
||||
static int
|
||||
qsphy_attach(dev)
|
||||
device_t dev;
|
||||
{
|
||||
struct mii_softc *sc;
|
||||
|
@ -85,7 +85,8 @@ DRIVER_MODULE(rlphy, miibus, rlphy_driver, rlphy_devclass, 0, 0);
|
||||
static int rlphy_service(struct mii_softc *, struct mii_data *, int);
|
||||
static void rlphy_status(struct mii_softc *);
|
||||
|
||||
static int rlphy_probe(dev)
|
||||
static int
|
||||
rlphy_probe(dev)
|
||||
device_t dev;
|
||||
{
|
||||
struct mii_attach_args *ma;
|
||||
@ -120,7 +121,8 @@ static int rlphy_probe(dev)
|
||||
return (0);
|
||||
}
|
||||
|
||||
static int rlphy_attach(dev)
|
||||
static int
|
||||
rlphy_attach(dev)
|
||||
device_t dev;
|
||||
{
|
||||
struct mii_softc *sc;
|
||||
|
@ -129,7 +129,8 @@ static int tlphy_auto(struct tlphy_softc *);
|
||||
static void tlphy_acomp(struct tlphy_softc *);
|
||||
static void tlphy_status(struct tlphy_softc *);
|
||||
|
||||
static int tlphy_probe(dev)
|
||||
static int
|
||||
tlphy_probe(dev)
|
||||
device_t dev;
|
||||
{
|
||||
struct mii_attach_args *ma;
|
||||
@ -145,7 +146,8 @@ static int tlphy_probe(dev)
|
||||
return (0);
|
||||
}
|
||||
|
||||
static int tlphy_attach(dev)
|
||||
static int
|
||||
tlphy_attach(dev)
|
||||
device_t dev;
|
||||
{
|
||||
struct tlphy_softc *sc;
|
||||
|
@ -88,7 +88,8 @@ static int xmphy_service(struct mii_softc *, struct mii_data *, int);
|
||||
static void xmphy_status(struct mii_softc *);
|
||||
static int xmphy_mii_phy_auto(struct mii_softc *);
|
||||
|
||||
static int xmphy_probe(dev)
|
||||
static int
|
||||
xmphy_probe(dev)
|
||||
device_t dev;
|
||||
{
|
||||
struct mii_attach_args *ma;
|
||||
@ -110,7 +111,8 @@ static int xmphy_probe(dev)
|
||||
return(ENXIO);
|
||||
}
|
||||
|
||||
static int xmphy_attach(dev)
|
||||
static int
|
||||
xmphy_attach(dev)
|
||||
device_t dev;
|
||||
{
|
||||
struct mii_softc *sc;
|
||||
|
Loading…
x
Reference in New Issue
Block a user