/* Turn the timing data intoa clock slot (0 for 33, 1 for 40, 2 for 50 and 3 for 66Mhz)  */
static int hpt37x_clock_slot(unsigned int freq, unsigned int base)
/* Turn the timing data intoa clock slot (0 for 33, 1 for 40, 2 for 50 and 3 for 66Mhz)  */
static int hpt37x_clock_slot(unsigned int freq, unsigned int base)
{
	unsigned int f = (base * freq) / 192;
	if (f < 40)
		return 0;
	if (f < 45)
		return 1;
	if (f < 55)
		return 2;
	return 3;
}