diff options
author | Matt Jacob <mjacob@FreeBSD.org> | 2001-06-04 18:23:49 +0000 |
---|---|---|
committer | Matt Jacob <mjacob@FreeBSD.org> | 2001-06-04 18:23:49 +0000 |
commit | 2c7d0b8dbceafddbc18dd1d943692ffb6fc6dce6 (patch) | |
tree | 886db34c6faf0e8c6aa021fad4cbb70374c0b2de /sys/cam/cam_xpt.c | |
parent | f25388442120d269c91c0bc2a05303a58ced030b (diff) | |
download | src-2c7d0b8dbceafddbc18dd1d943692ffb6fc6dce6.tar.gz src-2c7d0b8dbceafddbc18dd1d943692ffb6fc6dce6.zip |
first blush at some FC path inquiry settings
Notes
Notes:
svn path=/head/; revision=77710
Diffstat (limited to 'sys/cam/cam_xpt.c')
-rw-r--r-- | sys/cam/cam_xpt.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/sys/cam/cam_xpt.c b/sys/cam/cam_xpt.c index a860d60a688b..6c3cf99f5694 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) { |