ocelot.h (268603d79cc48dba671e9caf108fab32315b86a2) ocelot.h (36a0bf44358597dee6947938e8643c61442cab87)
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>

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

1019int ocelot_regfields_init(struct ocelot *ocelot,
1020 const struct reg_field *const regfields);
1021struct regmap *ocelot_regmap_init(struct ocelot *ocelot, struct resource *res);
1022int ocelot_init(struct ocelot *ocelot);
1023void ocelot_deinit(struct ocelot *ocelot);
1024void ocelot_init_port(struct ocelot *ocelot, int port);
1025void ocelot_deinit_port(struct ocelot *ocelot, int port);
1026
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>

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

1019int ocelot_regfields_init(struct ocelot *ocelot,
1020 const struct reg_field *const regfields);
1021struct regmap *ocelot_regmap_init(struct ocelot *ocelot, struct resource *res);
1022int ocelot_init(struct ocelot *ocelot);
1023void ocelot_deinit(struct ocelot *ocelot);
1024void ocelot_init_port(struct ocelot *ocelot, int port);
1025void ocelot_deinit_port(struct ocelot *ocelot, int port);
1026
1027void ocelot_port_setup_dsa_8021q_cpu(struct ocelot *ocelot, int cpu);
1028void ocelot_port_teardown_dsa_8021q_cpu(struct ocelot *ocelot, int cpu);
1027void ocelot_port_assign_dsa_8021q_cpu(struct ocelot *ocelot, int port, int cpu);
1028void ocelot_port_unassign_dsa_8021q_cpu(struct ocelot *ocelot, int port);
1029u32 ocelot_port_assigned_dsa_8021q_cpu_mask(struct ocelot *ocelot, int port);
1030
1031/* DSA callbacks */
1032void ocelot_get_strings(struct ocelot *ocelot, int port, u32 sset, u8 *data);
1033void ocelot_get_ethtool_stats(struct ocelot *ocelot, int port, u64 *data);
1034int ocelot_get_sset_count(struct ocelot *ocelot, int port, int sset);

--- 172 unchanged lines hidden ---
1029void ocelot_port_assign_dsa_8021q_cpu(struct ocelot *ocelot, int port, int cpu);
1030void ocelot_port_unassign_dsa_8021q_cpu(struct ocelot *ocelot, int port);
1031u32 ocelot_port_assigned_dsa_8021q_cpu_mask(struct ocelot *ocelot, int port);
1032
1033/* DSA callbacks */
1034void ocelot_get_strings(struct ocelot *ocelot, int port, u32 sset, u8 *data);
1035void ocelot_get_ethtool_stats(struct ocelot *ocelot, int port, u64 *data);
1036int ocelot_get_sset_count(struct ocelot *ocelot, int port, int sset);

--- 172 unchanged lines hidden ---