#include <linux/bitfield.h>
#include "chip.h"
#include "global1.h"
int mv88e6xxx_g1_read(struct mv88e6xxx_chip *chip, int reg, u16 *val)
{ … }
int mv88e6xxx_g1_write(struct mv88e6xxx_chip *chip, int reg, u16 val)
{ … }
int mv88e6xxx_g1_wait_bit(struct mv88e6xxx_chip *chip, int reg, int
bit, int val)
{ … }
int mv88e6xxx_g1_wait_mask(struct mv88e6xxx_chip *chip, int reg,
u16 mask, u16 val)
{ … }
static int mv88e6185_g1_wait_ppu_disabled(struct mv88e6xxx_chip *chip)
{ … }
static int mv88e6185_g1_wait_ppu_polling(struct mv88e6xxx_chip *chip)
{ … }
static int mv88e6352_g1_wait_ppu_polling(struct mv88e6xxx_chip *chip)
{ … }
static int mv88e6xxx_g1_wait_init_ready(struct mv88e6xxx_chip *chip)
{ … }
static int mv88e6250_g1_eeprom_reload(struct mv88e6xxx_chip *chip)
{ … }
static int mv88e6xxx_g1_is_eeprom_done(struct mv88e6xxx_chip *chip)
{ … }
int mv88e6xxx_g1_wait_eeprom_done(struct mv88e6xxx_chip *chip)
{ … }
int mv88e6250_g1_wait_eeprom_done_prereset(struct mv88e6xxx_chip *chip)
{ … }
int mv88e6xxx_g1_set_switch_mac(struct mv88e6xxx_chip *chip, u8 *addr)
{ … }
int mv88e6185_g1_reset(struct mv88e6xxx_chip *chip)
{ … }
int mv88e6250_g1_reset(struct mv88e6xxx_chip *chip)
{ … }
int mv88e6352_g1_reset(struct mv88e6xxx_chip *chip)
{ … }
int mv88e6185_g1_ppu_enable(struct mv88e6xxx_chip *chip)
{ … }
int mv88e6185_g1_ppu_disable(struct mv88e6xxx_chip *chip)
{ … }
int mv88e6185_g1_set_max_frame_size(struct mv88e6xxx_chip *chip, int mtu)
{ … }
int mv88e6085_g1_ip_pri_map(struct mv88e6xxx_chip *chip)
{ … }
int mv88e6085_g1_ieee_pri_map(struct mv88e6xxx_chip *chip)
{ … }
int mv88e6250_g1_ieee_pri_map(struct mv88e6xxx_chip *chip)
{ … }
int mv88e6095_g1_set_egress_port(struct mv88e6xxx_chip *chip,
enum mv88e6xxx_egress_direction direction,
int port)
{ … }
int mv88e6095_g1_set_cpu_port(struct mv88e6xxx_chip *chip, int port)
{ … }
static int mv88e6390_g1_monitor_write(struct mv88e6xxx_chip *chip,
u16 pointer, u8 data)
{ … }
int mv88e6390_g1_set_egress_port(struct mv88e6xxx_chip *chip,
enum mv88e6xxx_egress_direction direction,
int port)
{ … }
int mv88e6390_g1_set_cpu_port(struct mv88e6xxx_chip *chip, int port)
{ … }
int mv88e6390_g1_set_ptp_cpu_port(struct mv88e6xxx_chip *chip, int port)
{ … }
int mv88e6390_g1_mgmt_rsvd2cpu(struct mv88e6xxx_chip *chip)
{ … }
static int mv88e6xxx_g1_ctl2_mask(struct mv88e6xxx_chip *chip, u16 mask,
u16 val)
{ … }
int mv88e6185_g1_set_cascade_port(struct mv88e6xxx_chip *chip, int port)
{ … }
int mv88e6085_g1_rmu_disable(struct mv88e6xxx_chip *chip)
{ … }
int mv88e6352_g1_rmu_disable(struct mv88e6xxx_chip *chip)
{ … }
int mv88e6390_g1_rmu_disable(struct mv88e6xxx_chip *chip)
{ … }
int mv88e6390_g1_stats_set_histogram(struct mv88e6xxx_chip *chip)
{ … }
int mv88e6xxx_g1_set_device_number(struct mv88e6xxx_chip *chip, int index)
{ … }
static int mv88e6xxx_g1_stats_wait(struct mv88e6xxx_chip *chip)
{ … }
int mv88e6095_g1_stats_set_histogram(struct mv88e6xxx_chip *chip)
{ … }
int mv88e6xxx_g1_stats_snapshot(struct mv88e6xxx_chip *chip, int port)
{ … }
int mv88e6320_g1_stats_snapshot(struct mv88e6xxx_chip *chip, int port)
{ … }
int mv88e6390_g1_stats_snapshot(struct mv88e6xxx_chip *chip, int port)
{ … }
void mv88e6xxx_g1_stats_read(struct mv88e6xxx_chip *chip, int stat, u32 *val)
{ … }
int mv88e6xxx_g1_stats_clear(struct mv88e6xxx_chip *chip)
{ … }