aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/isp/ispvar.h
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2015-07-05 02:09:46 +0000
committerAlexander Motin <mav@FreeBSD.org>2015-07-05 02:09:46 +0000
commit766a65a50d900459635555aebdd1160fb491b436 (patch)
tree08912b014327a3832dc3fc608fd00f11155bc18d /sys/dev/isp/ispvar.h
parentaaa7cbfe1a437c726deff38c3903786d9249af6a (diff)
downloadsrc-766a65a50d900459635555aebdd1160fb491b436.tar.gz
src-766a65a50d900459635555aebdd1160fb491b436.zip
Remove extra level of target ID indirection (isp_dev_map).
FreeBSD never had limitation on number of target IDs, and there is no any other requirement to allocate them densely. Since slots of port database already populated just sequentially, there is no much need for another indirection to allocate sequentially too.
Notes
Notes: svn path=/head/; revision=285154
Diffstat (limited to 'sys/dev/isp/ispvar.h')
-rw-r--r--sys/dev/isp/ispvar.h17
1 files changed, 1 insertions, 16 deletions
diff --git a/sys/dev/isp/ispvar.h b/sys/dev/isp/ispvar.h
index 150073ef6534..27167faa7907 100644
--- a/sys/dev/isp/ispvar.h
+++ b/sys/dev/isp/ispvar.h
@@ -344,12 +344,7 @@ typedef struct {
* devices) or by the driver (e.g., for fabric devices).
*
* It has a state. If the state if VALID, that means that we've logged into
- * the device. We also *may* have a initiator map index entry. This is a value
- * from 0..MAX_FC_TARG that is used to index into the isp_dev_map array. If
- * the value therein is non-zero, then that value minus one is used to index
- * into the Port Database to find the handle for forming commands. There is
- * back-index minus one value within to Port Database entry that tells us
- * which entry in isp_dev_map points to us (to avoid searching).
+ * the device.
*
* Local loop devices the firmware automatically performs PLOGI on for us
* (which is why that handle is imposed upon us). Fabric devices we assign
@@ -395,7 +390,6 @@ typedef struct {
/*
* The dev_map_idx, if nonzero, is the system virtual target ID (+1)
- * as a cross-reference with the isp_dev_map.
*
* A device is 'autologin' if the firmware automatically logs into
* it (re-logins as needed). Basically, local private loop devices.
@@ -491,15 +485,6 @@ typedef struct {
*/
fcportdb_t portdb[MAX_FC_TARG];
- /*
- * This maps system virtual 'target' id to a portdb entry.
- *
- * The mapping function is to take any non-zero entry and
- * subtract one to get the portdb index. This means that
- * entries which are zero are unmapped (i.e., don't exist).
- */
- uint16_t isp_dev_map[MAX_FC_TARG];
-
#ifdef ISP_TARGET_MODE
/*
* This maps N-Port Handle to portdb entry so we