File Index
Files and directories
Sign in
FILE

enetc_pf_common.h

File preview with syntax highlighting.

linux-6.19.14/drivers/net/ethernet/freescale/enetc/enetc_pf_common.h C
 1/* SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) */
 2/* Copyright 2024 NXP */
 3
 4#include "enetc_pf.h"
 5
 6int enetc_pf_set_mac_addr(struct net_device *ndev, void *addr);
 7int enetc_setup_mac_addresses(struct device_node *np, struct enetc_pf *pf);
 8void enetc_pf_netdev_setup(struct enetc_si *si, struct net_device *ndev,
 9			   const struct net_device_ops *ndev_ops);
10int enetc_mdiobus_create(struct enetc_pf *pf, struct device_node *node);
11void enetc_mdiobus_destroy(struct enetc_pf *pf);
12int enetc_phylink_create(struct enetc_ndev_priv *priv, struct device_node *node,
13			 const struct phylink_mac_ops *ops);
14void enetc_phylink_destroy(struct enetc_ndev_priv *priv);
15void enetc_set_default_rss_key(struct enetc_pf *pf);
16int enetc_vlan_rx_add_vid(struct net_device *ndev, __be16 prot, u16 vid);
17int enetc_vlan_rx_del_vid(struct net_device *ndev, __be16 prot, u16 vid);
18
19static inline u16 enetc_get_ip_revision(struct enetc_hw *hw)
20{
21	return enetc_global_rd(hw, ENETC_G_EIPBRR0) & EIPBRR0_REVISION;
22}
~/ Read-only file preview.