sys/dev/atm/hfa/fore_load.c
static void
fore_reset(Fore_unit *fup)
{
	/*
	 * Reset the board and return it to cold_start state
	 */
	crit_enter();
	if (fup->fu_mon)
		fup->fu_mon->mon_bstat = CP_WRITE(BOOT_COLDSTART);

	if (fup->fu_ctlreg) {

		switch (fup->fu_config.ac_device) {

		case DEV_FORE_PCA200E:
			/*
			 * Reset i960 by setting and clearing RESET
			 */
			PCA200E_HCR_INIT(*fup->fu_ctlreg, PCA200E_RESET);
			DELAY(10000);
			PCA200E_HCR_CLR(*fup->fu_ctlreg, PCA200E_RESET);
			break;

		default:
			panic("fore_reset: unknown device type");
			break;
		}
	}
	crit_exit();
	return;
}
/*
 * Device reset routine
 * 
 * Reset the physical device
 *
 * Arguments:
 *	fup		pointer to device unit structure
 *
 * Returns:
 *	none
 */
Device reset routine

Reset the physical device

fup             pointer to device unit structure

none
Device reset routine Reset the physical device fup pointer to device unit structure none
static void
fore_reset(Fore_unit *fup)
{
	crit_enter();
	if (fup->fu_mon)
		fup->fu_mon->mon_bstat = CP_WRITE(BOOT_COLDSTART);
	if (fup->fu_ctlreg) {
		switch (fup->fu_config.ac_device) {
		case DEV_FORE_PCA200E:
			PCA200E_HCR_INIT(*fup->fu_ctlreg, PCA200E_RESET);
			DELAY(10000);
			PCA200E_HCR_CLR(*fup->fu_ctlreg, PCA200E_RESET);
			break;
		default:
			panic("fore_reset: unknown device type");
			break;
		}
	}
	crit_exit();
	return;
}
static void fore_reset ( Fore_unit * fup ) { crit_enter ( ) ; if ( fup -> fu_mon ) fup -> fu_mon -> mon_bstat = CP_WRITE ( BOOT_COLDSTART ) ; if ( fup -> fu_ctlreg ) { switch ( fup -> fu_config . ac_device ) { case DEV_FORE_PCA200E : PCA200E_HCR_INIT ( * fup -> fu_ctlreg , PCA200E_RESET ) ; DELAY ( 10000 ) ; PCA200E_HCR_CLR ( * fup -> fu_ctlreg , PCA200E_RESET ) ; break ; default : panic ( " " ) ; break ; } } crit_exit ( ) ; return ; }
Device reset routine
Device reset routine
/*
	 * Reset the board and return it to cold_start state
	 */ /*
			 * Reset i960 by setting and clearing RESET
			 */