summaryrefslogtreecommitdiffstats
path: root/sys/cam/cam_xpt.c
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>2001-06-04 18:23:49 +0000
committermjacob <mjacob@FreeBSD.org>2001-06-04 18:23:49 +0000
commit0a829fc66586210fd1f300944ae87a64f12867ae (patch)
tree2fd22f9193a6c47c088f219b933739578324e915 /sys/cam/cam_xpt.c
parent76d93c9267775e15f0d03490665b504cd2744915 (diff)
downloadFreeBSD-src-0a829fc66586210fd1f300944ae87a64f12867ae.zip
FreeBSD-src-0a829fc66586210fd1f300944ae87a64f12867ae.tar.gz
first blush at some FC path inquiry settings
Diffstat (limited to 'sys/cam/cam_xpt.c')
-rw-r--r--sys/cam/cam_xpt.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/sys/cam/cam_xpt.c b/sys/cam/cam_xpt.c
index a860d60..6c3cf99 100644
--- a/sys/cam/cam_xpt.c
+++ b/sys/cam/cam_xpt.c
@@ -1544,6 +1544,14 @@ xpt_announce_periph(struct cam_periph *periph, char *announce_string)
if ((spi->valid & CTS_SPI_VALID_BUS_WIDTH) != 0)
speed *= (0x01 << spi->bus_width);
}
+ if (cts.ccb_h.status == CAM_REQ_CMP
+ && cts.transport == XPORT_FC) {
+ struct ccb_trans_settings_fc *fc;
+
+ fc = &cts.xport_specific.fc;
+ speed = fc->bitrate;
+ }
+
mb = speed / 1000;
if (mb > 0)
@@ -1578,6 +1586,18 @@ xpt_announce_periph(struct cam_periph *periph, char *announce_string)
printf(")");
}
}
+ if (cts.ccb_h.status == CAM_REQ_CMP
+ && cts.transport == XPORT_FC) {
+ struct ccb_trans_settings_fc *fc;
+
+ fc = &cts.xport_specific.fc;
+ if (fc->wwnn)
+ printf(" WWNN %q", (quad_t) fc->wwnn);
+ if (fc->wwpn)
+ printf(" WWPN %q", (quad_t) fc->wwpn);
+ if (fc->port)
+ printf(" PortID %u", fc->port);
+ }
if (path->device->inq_flags & SID_CmdQue
|| path->device->flags & CAM_DEV_TAG_AFTER_COUNT) {
OpenPOWER on IntegriCloud