FreeBSD/sys/dev/mrsas/mrsas.c
/*
 * mrsas_start_aen:	Subscribes to AEN during driver load time
 * @instance:		Adapter soft state
 */
Subscribes to AEN during driver load time
@instance:           Adapter soft state
Subscribes to AEN during driver load time @instance : Adapter soft state
static int
mrsas_start_aen(struct mrsas_softc *sc)
{
	struct mrsas_evt_log_info eli;
	union mrsas_evt_class_locale class_locale;
	memset(&eli, 0, sizeof(eli));
	if (mrsas_get_seq_num(sc, &eli))
		return -1;
	class_locale.members.reserved = 0;
	class_locale.members.locale = MR_EVT_LOCALE_ALL;
	class_locale.members.class = MR_EVT_CLASS_DEBUG;
	return mrsas_register_aen(sc, eli.newest_seq_num + 1,
	    class_locale.word);
}
static int mrsas_start_aen ( struct mrsas_softc * sc ) { struct mrsas_evt_log_info eli ; union mrsas_evt_class_locale class_locale ; memset ( & eli , 0 , sizeof ( eli ) ) ; if ( mrsas_get_seq_num ( sc , & eli ) ) return -1 ; class_locale . members . reserved = 0 ; class_locale . members . locale = MR_EVT_LOCALE_ALL ; class_locale . members . class = MR_EVT_CLASS_DEBUG ; return mrsas_register_aen ( sc , eli . newest_seq_num + 1 , class_locale . word ) ; }
mrsas_start_aen:     Subscribes to AEN during driver load time
 @instance:           Adapter soft state
mrsas_start_aen : Subscribes to AEN during driver load time @instance : Adapter soft state
/* Get the latest sequence number from FW */ /* Register AEN with FW for latest sequence number plus 1 */