fm10k_vf.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /* Intel(R) Ethernet Switch Host Interface Driver
  2. * Copyright(c) 2013 - 2016 Intel Corporation.
  3. *
  4. * This program is free software; you can redistribute it and/or modify it
  5. * under the terms and conditions of the GNU General Public License,
  6. * version 2, as published by the Free Software Foundation.
  7. *
  8. * This program is distributed in the hope it will be useful, but WITHOUT
  9. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  10. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  11. * more details.
  12. *
  13. * The full GNU General Public License is included in this distribution in
  14. * the file called "COPYING".
  15. *
  16. * Contact Information:
  17. * e1000-devel Mailing List <e1000-devel@lists.sourceforge.net>
  18. * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
  19. */
  20. #ifndef _FM10K_VF_H_
  21. #define _FM10K_VF_H_
  22. #include "fm10k_type.h"
  23. #include "fm10k_common.h"
  24. enum fm10k_vf_tlv_msg_id {
  25. FM10K_VF_MSG_ID_TEST = 0, /* msg ID reserved for testing */
  26. FM10K_VF_MSG_ID_MSIX,
  27. FM10K_VF_MSG_ID_MAC_VLAN,
  28. FM10K_VF_MSG_ID_LPORT_STATE,
  29. FM10K_VF_MSG_ID_MAX,
  30. };
  31. enum fm10k_tlv_mac_vlan_attr_id {
  32. FM10K_MAC_VLAN_MSG_VLAN,
  33. FM10K_MAC_VLAN_MSG_SET,
  34. FM10K_MAC_VLAN_MSG_MAC,
  35. FM10K_MAC_VLAN_MSG_DEFAULT_MAC,
  36. FM10K_MAC_VLAN_MSG_MULTICAST,
  37. FM10K_MAC_VLAN_MSG_ID_MAX
  38. };
  39. enum fm10k_tlv_lport_state_attr_id {
  40. FM10K_LPORT_STATE_MSG_DISABLE,
  41. FM10K_LPORT_STATE_MSG_XCAST_MODE,
  42. FM10K_LPORT_STATE_MSG_READY,
  43. FM10K_LPORT_STATE_MSG_MAX
  44. };
  45. #define FM10K_VF_MSG_MSIX_HANDLER(func) \
  46. FM10K_MSG_HANDLER(FM10K_VF_MSG_ID_MSIX, NULL, func)
  47. s32 fm10k_msg_mac_vlan_vf(struct fm10k_hw *, u32 **, struct fm10k_mbx_info *);
  48. extern const struct fm10k_tlv_attr fm10k_mac_vlan_msg_attr[];
  49. #define FM10K_VF_MSG_MAC_VLAN_HANDLER(func) \
  50. FM10K_MSG_HANDLER(FM10K_VF_MSG_ID_MAC_VLAN, \
  51. fm10k_mac_vlan_msg_attr, func)
  52. s32 fm10k_msg_lport_state_vf(struct fm10k_hw *, u32 **,
  53. struct fm10k_mbx_info *);
  54. extern const struct fm10k_tlv_attr fm10k_lport_state_msg_attr[];
  55. #define FM10K_VF_MSG_LPORT_STATE_HANDLER(func) \
  56. FM10K_MSG_HANDLER(FM10K_VF_MSG_ID_LPORT_STATE, \
  57. fm10k_lport_state_msg_attr, func)
  58. extern const struct fm10k_info fm10k_vf_info;
  59. #endif /* _FM10K_VF_H */