hsr_prp_device.h 790 B

123456789101112131415161718192021222324
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /* Copyright 2011-2014 Autronica Fire and Security AS
  3. *
  4. * Author(s):
  5. * 2011-2014 Arvid Brodin, arvid.brodin@alten.se
  6. */
  7. #ifndef __HSR_PRP_DEVICE_H
  8. #define __HSR_PRP_DEVICE_H
  9. #include <linux/netdevice.h>
  10. #include "hsr_prp_main.h"
  11. void hsr_dev_setup(struct net_device *dev);
  12. void prp_dev_setup(struct net_device *dev);
  13. int hsr_prp_dev_finalize(struct net_device *dev, struct net_device *slave[2],
  14. unsigned char multicast_spec, u8 protocol_version,
  15. bool sv_vlan_tag_needed, unsigned short vid,
  16. unsigned char pcp, unsigned char cfi);
  17. void hsr_prp_check_carrier_and_operstate(struct hsr_prp_priv *priv);
  18. bool is_hsr_prp_master(struct net_device *dev);
  19. int hsr_prp_get_max_mtu(struct hsr_prp_priv *priv);
  20. #endif /* __HSR_PRP_DEVICE_H */