first blush at some FC path inquiry settings

This commit is contained in:
mjacob 2001-06-04 18:23:49 +00:00
parent 76d93c9267
commit 0a829fc665

View File

@ -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) {