ocelot.h (b360d94f1b8647bc164e7519ec900471836be14a) ocelot.h (421741ea5672cf16fa551bcde23e327075ed419e)
1/* SPDX-License-Identifier: (GPL-2.0 OR MIT) */
2/* Copyright (c) 2017 Microsemi Corporation
3 */
4
5#ifndef _SOC_MSCC_OCELOT_H
6#define _SOC_MSCC_OCELOT_H
7
8#include <linux/ptp_clock_kernel.h>

--- 598 unchanged lines hidden (view full) ---

607 struct sk_buff_head tx_skbs;
608 u8 ts_id;
609 spinlock_t ts_id_lock;
610
611 phy_interface_t phy_mode;
612
613 u8 *xmit_template;
614 bool is_dsa_8021q_cpu;
1/* SPDX-License-Identifier: (GPL-2.0 OR MIT) */
2/* Copyright (c) 2017 Microsemi Corporation
3 */
4
5#ifndef _SOC_MSCC_OCELOT_H
6#define _SOC_MSCC_OCELOT_H
7
8#include <linux/ptp_clock_kernel.h>

--- 598 unchanged lines hidden (view full) ---

607 struct sk_buff_head tx_skbs;
608 u8 ts_id;
609 spinlock_t ts_id_lock;
610
611 phy_interface_t phy_mode;
612
613 u8 *xmit_template;
614 bool is_dsa_8021q_cpu;
615 bool learn_ena;
615
616 struct net_device *bond;
617 bool lag_tx_active;
618};
619
620struct ocelot {
621 struct device *dev;
622 struct devlink *devlink;

--- 138 unchanged lines hidden (view full) ---

761 struct ethtool_ts_info *info);
762void ocelot_set_ageing_time(struct ocelot *ocelot, unsigned int msecs);
763int ocelot_port_flush(struct ocelot *ocelot, int port);
764void ocelot_adjust_link(struct ocelot *ocelot, int port,
765 struct phy_device *phydev);
766int ocelot_port_vlan_filtering(struct ocelot *ocelot, int port, bool enabled);
767void ocelot_bridge_stp_state_set(struct ocelot *ocelot, int port, u8 state);
768void ocelot_apply_bridge_fwd_mask(struct ocelot *ocelot);
616
617 struct net_device *bond;
618 bool lag_tx_active;
619};
620
621struct ocelot {
622 struct device *dev;
623 struct devlink *devlink;

--- 138 unchanged lines hidden (view full) ---

762 struct ethtool_ts_info *info);
763void ocelot_set_ageing_time(struct ocelot *ocelot, unsigned int msecs);
764int ocelot_port_flush(struct ocelot *ocelot, int port);
765void ocelot_adjust_link(struct ocelot *ocelot, int port,
766 struct phy_device *phydev);
767int ocelot_port_vlan_filtering(struct ocelot *ocelot, int port, bool enabled);
768void ocelot_bridge_stp_state_set(struct ocelot *ocelot, int port, u8 state);
769void ocelot_apply_bridge_fwd_mask(struct ocelot *ocelot);
770int ocelot_port_pre_bridge_flags(struct ocelot *ocelot, int port,
771 struct switchdev_brport_flags val);
772void ocelot_port_bridge_flags(struct ocelot *ocelot, int port,
773 struct switchdev_brport_flags val);
769int ocelot_port_bridge_join(struct ocelot *ocelot, int port,
770 struct net_device *bridge);
771int ocelot_port_bridge_leave(struct ocelot *ocelot, int port,
772 struct net_device *bridge);
773int ocelot_fdb_dump(struct ocelot *ocelot, int port,
774 dsa_fdb_dump_cb_t *cb, void *data);
775int ocelot_fdb_add(struct ocelot *ocelot, int port,
776 const unsigned char *addr, u16 vid);

--- 69 unchanged lines hidden ---
774int ocelot_port_bridge_join(struct ocelot *ocelot, int port,
775 struct net_device *bridge);
776int ocelot_port_bridge_leave(struct ocelot *ocelot, int port,
777 struct net_device *bridge);
778int ocelot_fdb_dump(struct ocelot *ocelot, int port,
779 dsa_fdb_dump_cb_t *cb, void *data);
780int ocelot_fdb_add(struct ocelot *ocelot, int port,
781 const unsigned char *addr, u16 vid);

--- 69 unchanged lines hidden ---