#include "chip.h"
#include "smi.h"
static int mv88e6xxx_smi_direct_read(struct mv88e6xxx_chip *chip,
int dev, int reg, u16 *data)
{ … }
static int mv88e6xxx_smi_direct_write(struct mv88e6xxx_chip *chip,
int dev, int reg, u16 data)
{ … }
static int mv88e6xxx_smi_direct_wait(struct mv88e6xxx_chip *chip,
int dev, int reg, int bit, int val)
{ … }
static const struct mv88e6xxx_bus_ops mv88e6xxx_smi_direct_ops = …;
static int mv88e6xxx_smi_dual_direct_read(struct mv88e6xxx_chip *chip,
int dev, int reg, u16 *data)
{ … }
static int mv88e6xxx_smi_dual_direct_write(struct mv88e6xxx_chip *chip,
int dev, int reg, u16 data)
{ … }
static const struct mv88e6xxx_bus_ops mv88e6xxx_smi_dual_direct_ops = …;
static int mv88e6xxx_smi_indirect_read(struct mv88e6xxx_chip *chip,
int dev, int reg, u16 *data)
{ … }
static int mv88e6xxx_smi_indirect_write(struct mv88e6xxx_chip *chip,
int dev, int reg, u16 data)
{ … }
static int mv88e6xxx_smi_indirect_init(struct mv88e6xxx_chip *chip)
{ … }
static const struct mv88e6xxx_bus_ops mv88e6xxx_smi_indirect_ops = …;
int mv88e6xxx_smi_init(struct mv88e6xxx_chip *chip,
struct mii_bus *bus, int sw_addr)
{ … }