#include <linux/delay.h>
#include <linux/mdio-bitbang.h>
#include <linux/module.h>
#include <linux/types.h>
#define MDIO_READ …
#define MDIO_WRITE …
#define MDIO_C45 …
#define MDIO_C45_ADDR …
#define MDIO_C45_READ …
#define MDIO_C45_WRITE …
#define MDIO_SETUP_TIME …
#define MDIO_HOLD_TIME …
#define MDIO_DELAY …
#define MDIO_READ_DELAY …
static void mdiobb_send_bit(struct mdiobb_ctrl *ctrl, int val)
{ … }
static int mdiobb_get_bit(struct mdiobb_ctrl *ctrl)
{ … }
static void mdiobb_send_num(struct mdiobb_ctrl *ctrl, u16 val, int bits)
{ … }
static u16 mdiobb_get_num(struct mdiobb_ctrl *ctrl, int bits)
{ … }
static void mdiobb_cmd(struct mdiobb_ctrl *ctrl, int op, u8 phy, u8 reg)
{ … }
static void mdiobb_cmd_addr(struct mdiobb_ctrl *ctrl, int phy, int dev_addr,
int reg)
{ … }
static int mdiobb_read_common(struct mii_bus *bus, int phy)
{ … }
int mdiobb_read_c22(struct mii_bus *bus, int phy, int reg)
{ … }
EXPORT_SYMBOL(…);
int mdiobb_read_c45(struct mii_bus *bus, int phy, int devad, int reg)
{ … }
EXPORT_SYMBOL(…);
static int mdiobb_write_common(struct mii_bus *bus, u16 val)
{ … }
int mdiobb_write_c22(struct mii_bus *bus, int phy, int reg, u16 val)
{ … }
EXPORT_SYMBOL(…);
int mdiobb_write_c45(struct mii_bus *bus, int phy, int devad, int reg, u16 val)
{ … }
EXPORT_SYMBOL(…);
struct mii_bus *alloc_mdio_bitbang(struct mdiobb_ctrl *ctrl)
{ … }
EXPORT_SYMBOL(…);
void free_mdio_bitbang(struct mii_bus *bus)
{ … }
EXPORT_SYMBOL(…);
MODULE_LICENSE(…) …;
MODULE_DESCRIPTION(…) …;