Merge tag 'dmaengine-fix-5.2' of git://git.infradead.org/users/vkoul/slave-dma
[linux-2.6/linux-2.6-arm.git] / net / hsr / hsr_device.h
blob6d7759c4f5f98cc0b00a4287bfe03dea066dae5b
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright 2011-2014 Autronica Fire and Security AS
4 * Author(s):
5 * 2011-2014 Arvid Brodin, arvid.brodin@alten.se
6 */
8 #ifndef __HSR_DEVICE_H
9 #define __HSR_DEVICE_H
11 #include <linux/netdevice.h>
12 #include "hsr_main.h"
14 void hsr_dev_setup(struct net_device *dev);
15 int hsr_dev_finalize(struct net_device *hsr_dev, struct net_device *slave[2],
16 unsigned char multicast_spec, u8 protocol_version);
17 void hsr_check_carrier_and_operstate(struct hsr_priv *hsr);
18 bool is_hsr_master(struct net_device *dev);
19 int hsr_get_max_mtu(struct hsr_priv *hsr);
21 #endif /* __HSR_DEVICE_H */