efc_nport.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Copyright (C) 2021 Broadcom. All Rights Reserved. The term
  4. * “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
  5. */
  6. /**
  7. * EFC FC port (NPORT) exported declarations
  8. *
  9. */
  10. #ifndef __EFC_NPORT_H__
  11. #define __EFC_NPORT_H__
  12. struct efc_nport *
  13. efc_nport_find(struct efc_domain *domain, u32 d_id);
  14. struct efc_nport *
  15. efc_nport_alloc(struct efc_domain *domain, uint64_t wwpn, uint64_t wwnn,
  16. u32 fc_id, bool enable_ini, bool enable_tgt);
  17. void
  18. efc_nport_free(struct efc_nport *nport);
  19. int
  20. efc_nport_attach(struct efc_nport *nport, u32 fc_id);
  21. void
  22. __efc_nport_allocated(struct efc_sm_ctx *ctx,
  23. enum efc_sm_event evt, void *arg);
  24. void
  25. __efc_nport_wait_shutdown(struct efc_sm_ctx *ctx,
  26. enum efc_sm_event evt, void *arg);
  27. void
  28. __efc_nport_wait_port_free(struct efc_sm_ctx *ctx,
  29. enum efc_sm_event evt, void *arg);
  30. void
  31. __efc_nport_vport_init(struct efc_sm_ctx *ctx,
  32. enum efc_sm_event evt, void *arg);
  33. void
  34. __efc_nport_vport_wait_alloc(struct efc_sm_ctx *ctx,
  35. enum efc_sm_event evt, void *arg);
  36. void
  37. __efc_nport_vport_allocated(struct efc_sm_ctx *ctx,
  38. enum efc_sm_event evt, void *arg);
  39. void
  40. __efc_nport_attached(struct efc_sm_ctx *ctx,
  41. enum efc_sm_event evt, void *arg);
  42. int
  43. efc_vport_start(struct efc_domain *domain);
  44. #endif /* __EFC_NPORT_H__ */