#include <linux/module.h>
#include <linux/phylink.h>
#include <linux/device.h>
#include <linux/netdevice.h>
#include <linux/phy/phy.h>
#include "lan966x_main.h"
static struct phylink_pcs *lan966x_phylink_mac_select(struct phylink_config *config,
phy_interface_t interface)
{ … }
static void lan966x_phylink_mac_config(struct phylink_config *config,
unsigned int mode,
const struct phylink_link_state *state)
{ … }
static int lan966x_phylink_mac_prepare(struct phylink_config *config,
unsigned int mode,
phy_interface_t iface)
{ … }
static void lan966x_phylink_mac_link_up(struct phylink_config *config,
struct phy_device *phy,
unsigned int mode,
phy_interface_t interface,
int speed, int duplex,
bool tx_pause, bool rx_pause)
{ … }
static void lan966x_phylink_mac_link_down(struct phylink_config *config,
unsigned int mode,
phy_interface_t interface)
{ … }
static struct lan966x_port *lan966x_pcs_to_port(struct phylink_pcs *pcs)
{ … }
static void lan966x_pcs_get_state(struct phylink_pcs *pcs,
struct phylink_link_state *state)
{ … }
static int lan966x_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode,
phy_interface_t interface,
const unsigned long *advertising,
bool permit_pause_to_mac)
{ … }
static void lan966x_pcs_aneg_restart(struct phylink_pcs *pcs)
{ … }
const struct phylink_mac_ops lan966x_phylink_mac_ops = …;
const struct phylink_pcs_ops lan966x_phylink_pcs_ops = …;