Murali Karicheri | 0e7623b | 2019-04-05 13:31:34 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Arvid Brodin | 70ebe4a | 2014-07-04 23:34:38 +0200 | [diff] [blame] | 2 | /* Copyright 2011-2014 Autronica Fire and Security AS |
Arvid Brodin | f421436 | 2013-10-30 21:10:47 +0100 | [diff] [blame] | 3 | * |
Arvid Brodin | f421436 | 2013-10-30 21:10:47 +0100 | [diff] [blame] | 4 | * Author(s): |
Arvid Brodin | 70ebe4a | 2014-07-04 23:34:38 +0200 | [diff] [blame] | 5 | * 2011-2014 Arvid Brodin, arvid.brodin@alten.se |
Murali Karicheri | 8f4c0e0 | 2020-07-22 10:40:16 -0400 | [diff] [blame] | 6 | * |
| 7 | * include file for HSR and PRP. |
Arvid Brodin | f421436 | 2013-10-30 21:10:47 +0100 | [diff] [blame] | 8 | */ |
| 9 | |
| 10 | #ifndef __HSR_DEVICE_H |
| 11 | #define __HSR_DEVICE_H |
| 12 | |
| 13 | #include <linux/netdevice.h> |
| 14 | #include "hsr_main.h" |
| 15 | |
Taehee Yoo | de0083c | 2020-06-21 13:46:25 +0000 | [diff] [blame] | 16 | void hsr_del_ports(struct hsr_priv *hsr); |
Arvid Brodin | f421436 | 2013-10-30 21:10:47 +0100 | [diff] [blame] | 17 | void hsr_dev_setup(struct net_device *dev); |
| 18 | int hsr_dev_finalize(struct net_device *hsr_dev, struct net_device *slave[2], |
Taehee Yoo | 13eeb5f | 2020-02-28 18:01:35 +0000 | [diff] [blame] | 19 | unsigned char multicast_spec, u8 protocol_version, |
| 20 | struct netlink_ext_ack *extack); |
Arvid Brodin | e9aae56 | 2014-07-04 23:36:40 +0200 | [diff] [blame] | 21 | void hsr_check_carrier_and_operstate(struct hsr_priv *hsr); |
Arvid Brodin | f421436 | 2013-10-30 21:10:47 +0100 | [diff] [blame] | 22 | bool is_hsr_master(struct net_device *dev); |
Arvid Brodin | 70ebe4a | 2014-07-04 23:34:38 +0200 | [diff] [blame] | 23 | int hsr_get_max_mtu(struct hsr_priv *hsr); |
Arvid Brodin | f421436 | 2013-10-30 21:10:47 +0100 | [diff] [blame] | 24 | #endif /* __HSR_DEVICE_H */ |