/* Return the frequency in kHz corresponding to the given sync period factor.  */
static u_int ahd_calc_syncsrate(u_int period_factor)
/* Return the frequency in kHz corresponding to the given sync period factor.  */
static u_int ahd_calc_syncsrate(u_int period_factor)
{
	int i;
	for (i = 0; i < ARRAY_SIZE(scsi_syncrates); i++) {
		if (period_factor == scsi_syncrates[i].period_factor) {
			return (100000000 / scsi_syncrates[i].period);
		}
	}
	return (10000000 / (period_factor * 4 * 10));
}