ocelot.h (0568c3bf3f34ad2f86e6b2dfaa0855aad9c1c562) | ocelot.h (23e2c506ad6c588b469e3d06cc20299434440d02) |
---|---|
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> --- 541 unchanged lines hidden (view full) --- 550 551struct ocelot_ops { 552 struct net_device *(*port_to_netdev)(struct ocelot *ocelot, int port); 553 int (*netdev_to_port)(struct net_device *dev); 554 int (*reset)(struct ocelot *ocelot); 555 u16 (*wm_enc)(u16 value); 556 u16 (*wm_dec)(u16 value); 557 void (*wm_stat)(u32 val, u32 *inuse, u32 *maxuse); | 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> --- 541 unchanged lines hidden (view full) --- 550 551struct ocelot_ops { 552 struct net_device *(*port_to_netdev)(struct ocelot *ocelot, int port); 553 int (*netdev_to_port)(struct net_device *dev); 554 int (*reset)(struct ocelot *ocelot); 555 u16 (*wm_enc)(u16 value); 556 u16 (*wm_dec)(u16 value); 557 void (*wm_stat)(u32 val, u32 *inuse, u32 *maxuse); |
558 void (*psfp_init)(struct ocelot *ocelot); 559 int (*psfp_filter_add)(struct ocelot *ocelot, struct flow_cls_offload *f); 560 int (*psfp_filter_del)(struct ocelot *ocelot, struct flow_cls_offload *f); 561 int (*psfp_stats_get)(struct ocelot *ocelot, struct flow_cls_offload *f, 562 struct flow_stats *stats); |
|
558}; 559 560struct ocelot_vcap_block { 561 struct list_head rules; 562 int count; 563 int pol_lpr; 564}; 565 --- 367 unchanged lines hidden --- | 563}; 564 565struct ocelot_vcap_block { 566 struct list_head rules; 567 int count; 568 int pol_lpr; 569}; 570 --- 367 unchanged lines hidden --- |