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