blob: a099d7de7e790ad9a0a0944c8514b8f48323897b [file] [log] [blame]
Murali Karicheri0e7623b2019-04-05 13:31:34 -04001/* SPDX-License-Identifier: GPL-2.0 */
Arvid Brodin70ebe4a2014-07-04 23:34:38 +02002/* Copyright 2011-2014 Autronica Fire and Security AS
Arvid Brodinf4214362013-10-30 21:10:47 +01003 *
Arvid Brodinf4214362013-10-30 21:10:47 +01004 * Author(s):
Arvid Brodin70ebe4a2014-07-04 23:34:38 +02005 * 2011-2014 Arvid Brodin, arvid.brodin@alten.se
Arvid Brodinf4214362013-10-30 21:10:47 +01006 */
7
8#ifndef __HSR_DEVICE_H
9#define __HSR_DEVICE_H
10
11#include <linux/netdevice.h>
12#include "hsr_main.h"
13
14void hsr_dev_setup(struct net_device *dev);
15int hsr_dev_finalize(struct net_device *hsr_dev, struct net_device *slave[2],
Taehee Yoo13eeb5f2020-02-28 18:01:35 +000016 unsigned char multicast_spec, u8 protocol_version,
17 struct netlink_ext_ack *extack);
Arvid Brodine9aae562014-07-04 23:36:40 +020018void hsr_check_carrier_and_operstate(struct hsr_priv *hsr);
Arvid Brodinf4214362013-10-30 21:10:47 +010019bool is_hsr_master(struct net_device *dev);
Arvid Brodin70ebe4a2014-07-04 23:34:38 +020020int hsr_get_max_mtu(struct hsr_priv *hsr);
Arvid Brodinf4214362013-10-30 21:10:47 +010021
22#endif /* __HSR_DEVICE_H */