summaryrefslogtreecommitdiffstats
path: root/sys/dev/isp/isp_library.h
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2015-12-30 11:49:48 +0000
committermav <mav@FreeBSD.org>2015-12-30 11:49:48 +0000
commita4b1c16e98e75f90d54e9dbd7a1fdb698da68539 (patch)
tree0fcf27a59b01a01e813ba2caf1be603f648ddbb9 /sys/dev/isp/isp_library.h
parentd4b9f20402a6d7261e6e6d8ea2ea402a189c08d8 (diff)
downloadFreeBSD-src-a4b1c16e98e75f90d54e9dbd7a1fdb698da68539.zip
FreeBSD-src-a4b1c16e98e75f90d54e9dbd7a1fdb698da68539.tar.gz
MFC r292725: Unify handles allocation for initiator and target IOCBs.
I am not sure why this was split long ago, but I see no reason for it. At this point this unification just slightly reduces memory usage, but as next step I plan to reuse shared handle space for other IOCB types.
Diffstat (limited to 'sys/dev/isp/isp_library.h')
-rw-r--r--sys/dev/isp/isp_library.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/sys/dev/isp/isp_library.h b/sys/dev/isp/isp_library.h
index 9f3cbcd..922a98b 100644
--- a/sys/dev/isp/isp_library.h
+++ b/sys/dev/isp/isp_library.h
@@ -43,10 +43,9 @@ int isp_send_cmd(ispsoftc_t *, void *, void *, uint32_t, uint32_t, isp_ddir_t, i
*
* These handles are associate with a command.
*/
-int isp_allocate_xs(ispsoftc_t *, XS_T *, uint32_t *);
-XS_T * isp_find_xs(ispsoftc_t *, uint32_t);
-uint32_t isp_find_handle(ispsoftc_t *, XS_T *);
-uint32_t isp_handle_index(ispsoftc_t *, uint32_t);
+uint32_t isp_allocate_handle(ispsoftc_t *, void *, int);
+void *isp_find_xs(ispsoftc_t *, uint32_t);
+uint32_t isp_find_handle(ispsoftc_t *, void *);
void isp_destroy_handle(ispsoftc_t *, uint32_t);
/*
@@ -162,11 +161,6 @@ void isp_put_fcp_rsp_iu(ispsoftc_t *isp, fcp_rsp_iu_t *, fcp_rsp_iu_t *);
#endif
int isp_send_tgt_cmd(ispsoftc_t *, void *, void *, uint32_t, uint32_t, isp_ddir_t, void *, uint32_t);
-
-int isp_allocate_xs_tgt(ispsoftc_t *, void *, uint32_t *);
-void *isp_find_xs_tgt(ispsoftc_t *, uint32_t);
-uint32_t isp_find_tgt_handle(ispsoftc_t *, void *);
-void isp_destroy_tgt_handle(ispsoftc_t *, uint32_t);
#endif
int isp_find_pdb_empty(ispsoftc_t *, int, fcportdb_t **);
int isp_find_pdb_by_wwpn(ispsoftc_t *, int, uint64_t, fcportdb_t **);
OpenPOWER on IntegriCloud