ocelot.h (aac80140dc31963d818a65a522c2e2da81979857) ocelot.h (403ffc2c34de5297d007e0e169bf022094d444c2)
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>

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

744 refcount_t refcount;
745 int to;
746};
747
748struct ocelot_mm_state {
749 enum ethtool_mm_verify_status verify_status;
750 bool tx_enabled;
751 bool tx_active;
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>

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

744 refcount_t refcount;
745 int to;
746};
747
748struct ocelot_mm_state {
749 enum ethtool_mm_verify_status verify_status;
750 bool tx_enabled;
751 bool tx_active;
752 u8 preemptible_tcs;
753 u8 active_preemptible_tcs;
752};
753
754struct ocelot_port;
755
756struct ocelot_port {
757 struct ocelot *ocelot;
758
759 struct regmap *target;

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

1153void ocelot_mm_irq(struct ocelot *ocelot);
1154int ocelot_port_set_mm(struct ocelot *ocelot, int port,
1155 struct ethtool_mm_cfg *cfg,
1156 struct netlink_ext_ack *extack);
1157int ocelot_port_get_mm(struct ocelot *ocelot, int port,
1158 struct ethtool_mm_state *state);
1159int ocelot_port_mqprio(struct ocelot *ocelot, int port,
1160 struct tc_mqprio_qopt_offload *mqprio);
754};
755
756struct ocelot_port;
757
758struct ocelot_port {
759 struct ocelot *ocelot;
760
761 struct regmap *target;

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

1155void ocelot_mm_irq(struct ocelot *ocelot);
1156int ocelot_port_set_mm(struct ocelot *ocelot, int port,
1157 struct ethtool_mm_cfg *cfg,
1158 struct netlink_ext_ack *extack);
1159int ocelot_port_get_mm(struct ocelot *ocelot, int port,
1160 struct ethtool_mm_state *state);
1161int ocelot_port_mqprio(struct ocelot *ocelot, int port,
1162 struct tc_mqprio_qopt_offload *mqprio);
1163void ocelot_port_update_preemptible_tcs(struct ocelot *ocelot, int port);
1161
1162#if IS_ENABLED(CONFIG_BRIDGE_MRP)
1163int ocelot_mrp_add(struct ocelot *ocelot, int port,
1164 const struct switchdev_obj_mrp *mrp);
1165int ocelot_mrp_del(struct ocelot *ocelot, int port,
1166 const struct switchdev_obj_mrp *mrp);
1167int ocelot_mrp_add_ring_role(struct ocelot *ocelot, int port,
1168 const struct switchdev_obj_ring_role_mrp *mrp);

--- 33 unchanged lines hidden ---
1164
1165#if IS_ENABLED(CONFIG_BRIDGE_MRP)
1166int ocelot_mrp_add(struct ocelot *ocelot, int port,
1167 const struct switchdev_obj_mrp *mrp);
1168int ocelot_mrp_del(struct ocelot *ocelot, int port,
1169 const struct switchdev_obj_mrp *mrp);
1170int ocelot_mrp_add_ring_role(struct ocelot *ocelot, int port,
1171 const struct switchdev_obj_ring_role_mrp *mrp);

--- 33 unchanged lines hidden ---