mirror of
https://github.com/armbian/linux-cix.git
synced 2026-01-06 12:30:45 -08:00
scsi: elx: libefc: SLI and FC PORT state machine interfaces
Add library interface definitions for: - SLI and FC port (aka n_port_id) registration, allocation and deallocation. Link: https://lore.kernel.org/r/20210601235512.20104-12-jsmart2021@gmail.com Reviewed-by: Daniel Wagner <dwagner@suse.de> Co-developed-by: Ram Vegesna <ram.vegesna@broadcom.com> Signed-off-by: Ram Vegesna <ram.vegesna@broadcom.com> Signed-off-by: James Smart <jsmart2021@gmail.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
committed by
Martin K. Petersen
parent
3146240f19
commit
fcd427303e
777
drivers/scsi/elx/libefc/efc_nport.c
Normal file
777
drivers/scsi/elx/libefc/efc_nport.c
Normal file
File diff suppressed because it is too large
Load Diff
50
drivers/scsi/elx/libefc/efc_nport.h
Normal file
50
drivers/scsi/elx/libefc/efc_nport.h
Normal file
@@ -0,0 +1,50 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
/*
|
||||
* Copyright (C) 2021 Broadcom. All Rights Reserved. The term
|
||||
* “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
*/
|
||||
|
||||
/**
|
||||
* EFC FC port (NPORT) exported declarations
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef __EFC_NPORT_H__
|
||||
#define __EFC_NPORT_H__
|
||||
|
||||
struct efc_nport *
|
||||
efc_nport_find(struct efc_domain *domain, u32 d_id);
|
||||
struct efc_nport *
|
||||
efc_nport_alloc(struct efc_domain *domain, uint64_t wwpn, uint64_t wwnn,
|
||||
u32 fc_id, bool enable_ini, bool enable_tgt);
|
||||
void
|
||||
efc_nport_free(struct efc_nport *nport);
|
||||
int
|
||||
efc_nport_attach(struct efc_nport *nport, u32 fc_id);
|
||||
|
||||
void
|
||||
__efc_nport_allocated(struct efc_sm_ctx *ctx,
|
||||
enum efc_sm_event evt, void *arg);
|
||||
void
|
||||
__efc_nport_wait_shutdown(struct efc_sm_ctx *ctx,
|
||||
enum efc_sm_event evt, void *arg);
|
||||
void
|
||||
__efc_nport_wait_port_free(struct efc_sm_ctx *ctx,
|
||||
enum efc_sm_event evt, void *arg);
|
||||
void
|
||||
__efc_nport_vport_init(struct efc_sm_ctx *ctx,
|
||||
enum efc_sm_event evt, void *arg);
|
||||
void
|
||||
__efc_nport_vport_wait_alloc(struct efc_sm_ctx *ctx,
|
||||
enum efc_sm_event evt, void *arg);
|
||||
void
|
||||
__efc_nport_vport_allocated(struct efc_sm_ctx *ctx,
|
||||
enum efc_sm_event evt, void *arg);
|
||||
void
|
||||
__efc_nport_attached(struct efc_sm_ctx *ctx,
|
||||
enum efc_sm_event evt, void *arg);
|
||||
|
||||
int
|
||||
efc_vport_start(struct efc_domain *domain);
|
||||
|
||||
#endif /* __EFC_NPORT_H__ */
|
||||
Reference in New Issue
Block a user