/* Determine the number of SCBs available on the controller  */
int ahc_probe_scbs(struct ahc_softc *ahc)
/* Determine the number of SCBs available on the controller  */
int ahc_probe_scbs(struct ahc_softc *ahc)
{
		ahc_outb(ahc, SCBPTR, i);
		ahc_outb(ahc, SCB_BASE, i);
		if (ahc_inb(ahc, SCB_BASE) != i)
			break;
		ahc_outb(ahc, SCBPTR, 0);
		if (ahc_inb(ahc, SCB_BASE) != 0)
			break;
	}
	return (i);
}