felix.h (7c4bb540e9173c914c2091fdd9b6aee3c2a3e1e5) felix.h (c8c0ba4fe2479033be946cfb5651d45c876c4c86)
1/* SPDX-License-Identifier: GPL-2.0 */
2/* Copyright 2019 NXP Semiconductors
3 */
4#ifndef _MSCC_FELIX_H
5#define _MSCC_FELIX_H
6
7#define ocelot_to_felix(o) container_of((o), struct felix, ocelot)
8

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

18 const struct ocelot_stat_layout *stats_layout;
19 unsigned int num_stats;
20 int num_ports;
21 int num_tx_queues;
22 struct vcap_props *vcap;
23 int switch_pci_bar;
24 int imdio_pci_bar;
25 const struct ptp_clock_info *ptp_caps;
1/* SPDX-License-Identifier: GPL-2.0 */
2/* Copyright 2019 NXP Semiconductors
3 */
4#ifndef _MSCC_FELIX_H
5#define _MSCC_FELIX_H
6
7#define ocelot_to_felix(o) container_of((o), struct felix, ocelot)
8

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

18 const struct ocelot_stat_layout *stats_layout;
19 unsigned int num_stats;
20 int num_ports;
21 int num_tx_queues;
22 struct vcap_props *vcap;
23 int switch_pci_bar;
24 int imdio_pci_bar;
25 const struct ptp_clock_info *ptp_caps;
26
27 /* Some Ocelot switches are integrated into the SoC without the
28 * extraction IRQ line connected to the ARM GIC. By enabling this
29 * workaround, the few packets that are delivered to the CPU port
30 * module (currently only PTP) are copied not only to the hardware CPU
31 * port module, but also to the 802.1Q Ethernet CPU port, and polling
32 * the extraction registers is triggered once the DSA tagger sees a PTP
33 * frame. The Ethernet frame is only used as a notification: it is
34 * dropped, and the original frame is extracted over MMIO and annotated
35 * with the RX timestamp.
36 */
37 bool quirk_no_xtr_irq;
38
26 int (*mdio_bus_alloc)(struct ocelot *ocelot);
27 void (*mdio_bus_free)(struct ocelot *ocelot);
28 void (*phylink_validate)(struct ocelot *ocelot, int port,
29 unsigned long *supported,
30 struct phylink_link_state *state);
31 int (*prevalidate_phy_mode)(struct ocelot *ocelot, int port,
32 phy_interface_t phy_mode);
33 int (*port_setup_tc)(struct dsa_switch *ds, int port,

--- 24 unchanged lines hidden ---
39 int (*mdio_bus_alloc)(struct ocelot *ocelot);
40 void (*mdio_bus_free)(struct ocelot *ocelot);
41 void (*phylink_validate)(struct ocelot *ocelot, int port,
42 unsigned long *supported,
43 struct phylink_link_state *state);
44 int (*prevalidate_phy_mode)(struct ocelot *ocelot, int port,
45 phy_interface_t phy_mode);
46 int (*port_setup_tc)(struct dsa_switch *ds, int port,

--- 24 unchanged lines hidden ---