sys/dev/atm/hfa/fore_load.c
static int
fore_start(void)
{

	/*
	 * Verify software version
	 */
	if (atm_version != ATM_VERSION) {
		log(LOG_ERR, "version mismatch: fore=%d.%d kernel=%d.%d\n",
			ATM_VERS_MAJ(ATM_VERSION), ATM_VERS_MIN(ATM_VERSION),
			ATM_VERS_MAJ(atm_version), ATM_VERS_MIN(atm_version));
		return (EINVAL);
	}

	/*
	 * Initialize DMA mapping
	 */
	DMA_INIT();

	/*
	 * Start up watchdog timer
	 */
	atm_timeout(&fore_timer, ATM_HZ * FORE_TIME_TICK, fore_timeout);

	fore_inited = 1;

	return (0);
}
/*
 * Initialize driver processing
 * 
 * This will be called during module loading.  Not much to do here, as
 * we must wait for our identify/attach routines to get called before
 * we know what we're in for.
 *
 * Arguments:
 *	none
 *
 * Returns:
 *	0 	startup was successful 
 *	errno	startup failed - reason indicated
 *
 */
Initialize driver processing

This will be called during module loading.  Not much to do here, as
we must wait for our identify/attach routines to get called before
we know what we're in for.

none

0       startup was successful
errno   startup failed - reason indicated
Initialize driver processing This will be called during module loading . Not much to do here as we must wait for our identify / attach routines to get called before we know what we ' re in for . none 0 startup was successful errno startup failed - reason indicated
static int
fore_start(void)
{
	if (atm_version != ATM_VERSION) {
		log(LOG_ERR, "version mismatch: fore=%d.%d kernel=%d.%d\n",
			ATM_VERS_MAJ(ATM_VERSION), ATM_VERS_MIN(ATM_VERSION),
			ATM_VERS_MAJ(atm_version), ATM_VERS_MIN(atm_version));
		return (EINVAL);
	}
	DMA_INIT();
	atm_timeout(&fore_timer, ATM_HZ * FORE_TIME_TICK, fore_timeout);
	fore_inited = 1;
	return (0);
}
static int fore_start ( void ) { if ( atm_version != ATM_VERSION ) { log ( LOG_ERR , " \n " , ATM_VERS_MAJ ( ATM_VERSION ) , ATM_VERS_MIN ( ATM_VERSION ) , ATM_VERS_MAJ ( atm_version ) , ATM_VERS_MIN ( atm_version ) ) ; return ( EINVAL ) ; } DMA_INIT ( ) ; atm_timeout ( & fore_timer , ATM_HZ * FORE_TIME_TICK , fore_timeout ) ; fore_inited = 1 ; return ( 0 ) ; }
Initialize driver processing
Initialize driver processing
/*
	 * Verify software version
	 */ /*
	 * Initialize DMA mapping
	 */ /*
	 * Start up watchdog timer
	 */