diff options
author | gibbs <gibbs@FreeBSD.org> | 2002-06-05 19:10:57 +0000 |
---|---|---|
committer | gibbs <gibbs@FreeBSD.org> | 2002-06-05 19:10:57 +0000 |
commit | de0f1993721c79432cfb47d601a14dba6f4c0dde (patch) | |
tree | c101fb72a3efb48a8154a0555aad54bd4b15afe4 /sys/cam/scsi | |
parent | aefa498e63c658a882eb8df7fa95d5591e18bceb (diff) | |
download | FreeBSD-src-de0f1993721c79432cfb47d601a14dba6f4c0dde.zip FreeBSD-src-de0f1993721c79432cfb47d601a14dba6f4c0dde.tar.gz |
Add the 160MHz syncrate to scsi_calc_syncrate() sync period exception table.
Diffstat (limited to 'sys/cam/scsi')
-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 d2c8fbb..dbcce7a 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); } } |