Source
/*****************************************************************************
// SPDX-License-Identifier: GPL-2.0+
/*
* (C) Copyright 2009 Industrie Dial Face S.p.A.
* Luigi 'Comio' Mantellini <luigi.mantellini@idf-hit.com>
*
* (C) Copyright 2001
* Gerald Van Baren, Custom IDEAS, vanbaren@cideas.com.
*/
/*
* This provides a bit-banged interface to the ethernet MII management
* channel.
*/
DECLARE_GLOBAL_DATA_PTR;
/*
* If CONFIG_BITBANGMII_MULTI is not defined we use a
* compatibility layer with the previous miiphybb implementation
* based on macros usage.
*
*/
static int bb_mii_init_wrap(struct bb_miiphy_bus *bus)
{
MII_INIT;
return 0;
}
static int bb_mdio_active_wrap(struct bb_miiphy_bus *bus)
{
MDIO_DECLARE;
MDIO_ACTIVE;
return 0;
}
static int bb_mdio_tristate_wrap(struct bb_miiphy_bus *bus)
{
MDIO_DECLARE;
MDIO_TRISTATE;
return 0;
}
static int bb_set_mdio_wrap(struct bb_miiphy_bus *bus, int v)
{
MDIO_DECLARE;
MDIO(v);