fm10k_vf.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /* Copyright(c) 2013 - 2018 Intel Corporation. */
  3. #ifndef _FM10K_VF_H_
  4. #define _FM10K_VF_H_
  5. #include "fm10k_type.h"
  6. #include "fm10k_common.h"
  7. enum fm10k_vf_tlv_msg_id {
  8. FM10K_VF_MSG_ID_TEST = 0, /* msg ID reserved for testing */
  9. FM10K_VF_MSG_ID_MSIX,
  10. FM10K_VF_MSG_ID_MAC_VLAN,
  11. FM10K_VF_MSG_ID_LPORT_STATE,
  12. FM10K_VF_MSG_ID_MAX,
  13. };
  14. enum fm10k_tlv_mac_vlan_attr_id {
  15. FM10K_MAC_VLAN_MSG_VLAN,
  16. FM10K_MAC_VLAN_MSG_SET,
  17. FM10K_MAC_VLAN_MSG_MAC,
  18. FM10K_MAC_VLAN_MSG_DEFAULT_MAC,
  19. FM10K_MAC_VLAN_MSG_MULTICAST,
  20. FM10K_MAC_VLAN_MSG_ID_MAX
  21. };
  22. enum fm10k_tlv_lport_state_attr_id {
  23. FM10K_LPORT_STATE_MSG_DISABLE,
  24. FM10K_LPORT_STATE_MSG_XCAST_MODE,
  25. FM10K_LPORT_STATE_MSG_READY,
  26. FM10K_LPORT_STATE_MSG_MAX
  27. };
  28. #define FM10K_VF_MSG_MSIX_HANDLER(func) \
  29. FM10K_MSG_HANDLER(FM10K_VF_MSG_ID_MSIX, NULL, func)
  30. s32 fm10k_msg_mac_vlan_vf(struct fm10k_hw *, u32 **, struct fm10k_mbx_info *);
  31. extern const struct fm10k_tlv_attr fm10k_mac_vlan_msg_attr[];
  32. #define FM10K_VF_MSG_MAC_VLAN_HANDLER(func) \
  33. FM10K_MSG_HANDLER(FM10K_VF_MSG_ID_MAC_VLAN, \
  34. fm10k_mac_vlan_msg_attr, func)
  35. s32 fm10k_msg_lport_state_vf(struct fm10k_hw *, u32 **,
  36. struct fm10k_mbx_info *);
  37. extern const struct fm10k_tlv_attr fm10k_lport_state_msg_attr[];
  38. #define FM10K_VF_MSG_LPORT_STATE_HANDLER(func) \
  39. FM10K_MSG_HANDLER(FM10K_VF_MSG_ID_LPORT_STATE, \
  40. fm10k_lport_state_msg_attr, func)
  41. extern const struct fm10k_info fm10k_vf_info;
  42. #endif /* _FM10K_VF_H */