/* Determine the number of SCBs available on the controller  */
static int ahd_probe_scbs(struct ahd_softc *ahd)
/* Determine the number of SCBs available on the controller  */
static int ahd_probe_scbs(struct ahd_softc *ahd)
{
		int j;
		ahd_set_scbptr(ahd, i);
		ahd_outw(ahd, SCB_BASE, i);
		for (j = 2; j < 64; j++)
			ahd_outb(ahd, SCB_BASE+j, 0);
		ahd_outb(ahd, SCB_CONTROL, MK_MESSAGE);
		if (ahd_inw_scbram(ahd, SCB_BASE) != i)
			break;
		ahd_set_scbptr(ahd, 0);
		if (ahd_inw_scbram(ahd, SCB_BASE) != 0)
			break;
	}
	return (i);
}