2019-04-05 17:31:34 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
2014-07-04 21:34:38 +00:00
|
|
|
/* Copyright 2011-2014 Autronica Fire and Security AS
|
2013-10-30 20:10:47 +00:00
|
|
|
*
|
|
|
|
* Author(s):
|
2014-07-04 21:34:38 +00:00
|
|
|
* 2011-2014 Arvid Brodin, arvid.brodin@alten.se
|
2020-07-22 14:40:16 +00:00
|
|
|
*
|
|
|
|
* include file for HSR and PRP.
|
2013-10-30 20:10:47 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __HSR_DEVICE_H
|
|
|
|
#define __HSR_DEVICE_H
|
|
|
|
|
|
|
|
#include <linux/netdevice.h>
|
|
|
|
#include "hsr_main.h"
|
|
|
|
|
2020-06-21 13:46:25 +00:00
|
|
|
void hsr_del_ports(struct hsr_priv *hsr);
|
2013-10-30 20:10:47 +00:00
|
|
|
void hsr_dev_setup(struct net_device *dev);
|
|
|
|
int hsr_dev_finalize(struct net_device *hsr_dev, struct net_device *slave[2],
|
2020-02-28 18:01:35 +00:00
|
|
|
unsigned char multicast_spec, u8 protocol_version,
|
|
|
|
struct netlink_ext_ack *extack);
|
2014-07-04 21:36:40 +00:00
|
|
|
void hsr_check_carrier_and_operstate(struct hsr_priv *hsr);
|
2013-10-30 20:10:47 +00:00
|
|
|
bool is_hsr_master(struct net_device *dev);
|
2014-07-04 21:34:38 +00:00
|
|
|
int hsr_get_max_mtu(struct hsr_priv *hsr);
|
2013-10-30 20:10:47 +00:00
|
|
|
#endif /* __HSR_DEVICE_H */
|