xref: /kernel/linux/linux-5.10/net/hsr/hsr_device.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/net/hsr/
18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci/* Copyright 2011-2014 Autronica Fire and Security AS
38c2ecf20Sopenharmony_ci *
48c2ecf20Sopenharmony_ci * Author(s):
58c2ecf20Sopenharmony_ci *	2011-2014 Arvid Brodin, arvid.brodin@alten.se
68c2ecf20Sopenharmony_ci *
78c2ecf20Sopenharmony_ci * include file for HSR and PRP.
88c2ecf20Sopenharmony_ci */
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ci#ifndef __HSR_DEVICE_H
118c2ecf20Sopenharmony_ci#define __HSR_DEVICE_H
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ci#include <linux/netdevice.h>
148c2ecf20Sopenharmony_ci#include "hsr_main.h"
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_civoid hsr_del_ports(struct hsr_priv *hsr);
178c2ecf20Sopenharmony_civoid hsr_dev_setup(struct net_device *dev);
188c2ecf20Sopenharmony_ciint hsr_dev_finalize(struct net_device *hsr_dev, struct net_device *slave[2],
198c2ecf20Sopenharmony_ci		     unsigned char multicast_spec, u8 protocol_version,
208c2ecf20Sopenharmony_ci		     struct netlink_ext_ack *extack);
218c2ecf20Sopenharmony_civoid hsr_check_carrier_and_operstate(struct hsr_priv *hsr);
228c2ecf20Sopenharmony_cibool is_hsr_master(struct net_device *dev);
238c2ecf20Sopenharmony_ciint hsr_get_max_mtu(struct hsr_priv *hsr);
248c2ecf20Sopenharmony_ci#endif /* __HSR_DEVICE_H */
25

Indexes created Thu Nov 07 10:32:03 CST 2024