PERFORCE change 165372 for review
Alexander Motin
mav at FreeBSD.org
Mon Jun 29 08:36:26 UTC 2009
http://perforce.freebsd.org/chv.cgi?CH=165372
Change 165372 by mav at mav_mavbook on 2009/06/29 08:35:31
Report base transfer speed if SIM does not provide detailed info.
Affected files ...
.. //depot/projects/scottl-camlock/src/sbin/camcontrol/camcontrol.c#11 edit
Differences ...
==== //depot/projects/scottl-camlock/src/sbin/camcontrol/camcontrol.c#11 (text+ko) ====
@@ -919,6 +919,14 @@
if ((spi->valid & CTS_SPI_VALID_SYNC_RATE) != 0) {
freq = scsi_calc_syncsrate(spi->sync_period);
speed = freq;
+ } else {
+ struct ccb_pathinq cpi;
+
+ retval = get_cpi(device, &cpi);
+ if (retval == 0) {
+ speed = cpi.base_transfer_speed;
+ freq = 0;
+ }
}
fprintf(stdout, "%s%d: ", device->device_name,
More information about the p4-projects
mailing list