ocelot.h (a4721ced760684d1776bf31f7925aa41bb3f4846) | ocelot.h (87b0f983f66f23762921129fd35966eddc3f2dae) |
---|---|
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> --- 462 unchanged lines hidden (view full) --- 471 int pol_lpr; 472}; 473 474struct ocelot_port { 475 struct ocelot *ocelot; 476 477 void __iomem *regs; 478 | 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> --- 462 unchanged lines hidden (view full) --- 471 int pol_lpr; 472}; 473 474struct ocelot_port { 475 struct ocelot *ocelot; 476 477 void __iomem *regs; 478 |
479 bool vlan_aware; 480 |
|
479 /* Ingress default VLAN (pvid) */ 480 u16 pvid; 481 482 /* Egress default VLAN (vid) */ 483 u16 vid; 484 485 u8 ptp_cmd; 486 struct sk_buff_head tx_skbs; --- 118 unchanged lines hidden (view full) --- 605void ocelot_bridge_stp_state_set(struct ocelot *ocelot, int port, u8 state); 606int ocelot_port_bridge_join(struct ocelot *ocelot, int port, 607 struct net_device *bridge); 608int ocelot_port_bridge_leave(struct ocelot *ocelot, int port, 609 struct net_device *bridge); 610int ocelot_fdb_dump(struct ocelot *ocelot, int port, 611 dsa_fdb_dump_cb_t *cb, void *data); 612int ocelot_fdb_add(struct ocelot *ocelot, int port, | 481 /* Ingress default VLAN (pvid) */ 482 u16 pvid; 483 484 /* Egress default VLAN (vid) */ 485 u16 vid; 486 487 u8 ptp_cmd; 488 struct sk_buff_head tx_skbs; --- 118 unchanged lines hidden (view full) --- 607void ocelot_bridge_stp_state_set(struct ocelot *ocelot, int port, u8 state); 608int ocelot_port_bridge_join(struct ocelot *ocelot, int port, 609 struct net_device *bridge); 610int ocelot_port_bridge_leave(struct ocelot *ocelot, int port, 611 struct net_device *bridge); 612int ocelot_fdb_dump(struct ocelot *ocelot, int port, 613 dsa_fdb_dump_cb_t *cb, void *data); 614int ocelot_fdb_add(struct ocelot *ocelot, int port, |
613 const unsigned char *addr, u16 vid, bool vlan_aware); | 615 const unsigned char *addr, u16 vid); |
614int ocelot_fdb_del(struct ocelot *ocelot, int port, 615 const unsigned char *addr, u16 vid); 616int ocelot_vlan_add(struct ocelot *ocelot, int port, u16 vid, bool pvid, 617 bool untagged); 618int ocelot_vlan_del(struct ocelot *ocelot, int port, u16 vid); 619int ocelot_hwstamp_get(struct ocelot *ocelot, int port, struct ifreq *ifr); 620int ocelot_hwstamp_set(struct ocelot *ocelot, int port, struct ifreq *ifr); 621int ocelot_ptp_gettime64(struct ptp_clock_info *ptp, struct timespec64 *ts); --- 16 unchanged lines hidden --- | 616int ocelot_fdb_del(struct ocelot *ocelot, int port, 617 const unsigned char *addr, u16 vid); 618int ocelot_vlan_add(struct ocelot *ocelot, int port, u16 vid, bool pvid, 619 bool untagged); 620int ocelot_vlan_del(struct ocelot *ocelot, int port, u16 vid); 621int ocelot_hwstamp_get(struct ocelot *ocelot, int port, struct ifreq *ifr); 622int ocelot_hwstamp_set(struct ocelot *ocelot, int port, struct ifreq *ifr); 623int ocelot_ptp_gettime64(struct ptp_clock_info *ptp, struct timespec64 *ts); --- 16 unchanged lines hidden --- |