diff options
| author | Justin T. Gibbs <gibbs@FreeBSD.org> | 2002-06-05 19:10:57 +0000 |
|---|---|---|
| committer | Justin T. Gibbs <gibbs@FreeBSD.org> | 2002-06-05 19:10:57 +0000 |
| commit | b42d4bf17df6cb488e68f030a328746e4b8c80de (patch) | |
| tree | c101fb72a3efb48a8154a0555aad54bd4b15afe4 | |
| parent | 2ac1f53476350783584be07adcff0278c1ae8202 (diff) | |
Notes
| -rw-r--r-- | sys/cam/scsi/scsi_all.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/sys/cam/scsi/scsi_all.c b/sys/cam/scsi/scsi_all.c index d2c8fbb55c38..dbcce7a621b6 100644 --- a/sys/cam/scsi/scsi_all.c +++ b/sys/cam/scsi/scsi_all.c @@ -2256,12 +2256,13 @@ scsi_print_inquiry(struct scsi_inquiry_data *inq_data) */ static struct { u_int period_factor; - u_int period; /* in 10ths of ns */ + u_int period; /* in 100ths of ns */ } scsi_syncrates[] = { - { 0x09, 125 }, /* FAST-80 */ - { 0x0a, 250 }, /* FAST-40 40MHz */ - { 0x0b, 303 }, /* FAST-40 33MHz */ - { 0x0c, 500 } /* FAST-20 */ + { 0x08, 625 }, /* FAST-160 */ + { 0x09, 1250 }, /* FAST-80 */ + { 0x0a, 2500 }, /* FAST-40 40MHz */ + { 0x0b, 3030 }, /* FAST-40 33MHz */ + { 0x0c, 5000 } /* FAST-20 */ }; /* @@ -2280,7 +2281,7 @@ scsi_calc_syncsrate(u_int period_factor) if (period_factor == scsi_syncrates[i].period_factor) { /* Period in kHz */ - return (10000000 / scsi_syncrates[i].period); + return (100000000 / scsi_syncrates[i].period); } } |
