efc_domain.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. * Declare driver's domain handler exported interface
  8. */
  9. #ifndef __EFCT_DOMAIN_H__
  10. #define __EFCT_DOMAIN_H__
  11. struct efc_domain *
  12. efc_domain_alloc(struct efc *efc, uint64_t fcf_wwn);
  13. void
  14. efc_domain_free(struct efc_domain *domain);
  15. void
  16. __efc_domain_init(struct efc_sm_ctx *ctx, enum efc_sm_event evt, void *arg);
  17. void
  18. __efc_domain_wait_alloc(struct efc_sm_ctx *ctx, enum efc_sm_event evt,
  19. void *arg);
  20. void
  21. __efc_domain_allocated(struct efc_sm_ctx *ctx, enum efc_sm_event evt,
  22. void *arg);
  23. void
  24. __efc_domain_wait_attach(struct efc_sm_ctx *ctx, enum efc_sm_event evt,
  25. void *arg);
  26. void
  27. __efc_domain_ready(struct efc_sm_ctx *ctx, enum efc_sm_event evt, void *arg);
  28. void
  29. __efc_domain_wait_nports_free(struct efc_sm_ctx *ctx, enum efc_sm_event evt,
  30. void *arg);
  31. void
  32. __efc_domain_wait_shutdown(struct efc_sm_ctx *ctx, enum efc_sm_event evt,
  33. void *arg);
  34. void
  35. __efc_domain_wait_domain_lost(struct efc_sm_ctx *ctx, enum efc_sm_event evt,
  36. void *arg);
  37. void
  38. efc_domain_attach(struct efc_domain *domain, u32 s_id);
  39. int
  40. efc_domain_post_event(struct efc_domain *domain, enum efc_sm_event event,
  41. void *arg);
  42. void
  43. __efc_domain_attach_internal(struct efc_domain *domain, u32 s_id);
  44. int
  45. efc_domain_dispatch_frame(void *arg, struct efc_hw_sequence *seq);
  46. void
  47. efc_node_dispatch_frame(void *arg, struct efc_hw_sequence *seq);
  48. #endif /* __EFCT_DOMAIN_H__ */