felix.h (2ac7c6c5b61b3eaeca5da998a16d912bdfb62bae) | felix.h (d60bc62de4ae068ed4b215c24cdfdd5035aa986e) |
---|---|
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#define FELIX_NUM_TC 8 --- 28 unchanged lines hidden (view full) --- 37 int (*port_setup_tc)(struct dsa_switch *ds, int port, 38 enum tc_setup_type type, void *type_data); 39 void (*port_sched_speed_set)(struct ocelot *ocelot, int port, 40 u32 speed); 41 void (*xmit_template_populate)(struct ocelot *ocelot, int port); 42}; 43 44extern const struct dsa_switch_ops felix_switch_ops; | 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#define FELIX_NUM_TC 8 --- 28 unchanged lines hidden (view full) --- 37 int (*port_setup_tc)(struct dsa_switch *ds, int port, 38 enum tc_setup_type type, void *type_data); 39 void (*port_sched_speed_set)(struct ocelot *ocelot, int port, 40 u32 speed); 41 void (*xmit_template_populate)(struct ocelot *ocelot, int port); 42}; 43 44extern const struct dsa_switch_ops felix_switch_ops; |
45extern struct pci_driver felix_vsc9959_pci_driver; 46extern struct platform_driver seville_vsc9953_driver; | |
47 48/* DSA glue / front-end for struct ocelot */ 49struct felix { 50 struct dsa_switch *ds; 51 const struct felix_info *info; 52 struct ocelot ocelot; 53 struct mii_bus *imdio; 54 struct lynx_pcs **pcs; 55 resource_size_t switch_base; 56 resource_size_t imdio_base; 57}; 58 59#endif | 45 46/* DSA glue / front-end for struct ocelot */ 47struct felix { 48 struct dsa_switch *ds; 49 const struct felix_info *info; 50 struct ocelot ocelot; 51 struct mii_bus *imdio; 52 struct lynx_pcs **pcs; 53 resource_size_t switch_base; 54 resource_size_t imdio_base; 55}; 56 57#endif |