FreeBSD/sys/dev/cxgbe/common/t4_hw.c
/**
 *	t5_fw_init_extern_mem - initialize the external memory
 *	@adap: the adapter
 *
 *	Initializes the external memory on T5.
 */
initialize the external memory
@adap: the adapter

Initializes the external memory on T5.
initialize the external memory @adap : the adapter Initializes the external memory on T5 .
int t5_fw_init_extern_mem(struct adapter *adap)
{
	u32 params[1], val[1];
	int ret;
	if (!is_t5(adap))
		return 0;
	val[0] = 0xff; 
	params[0] = (V_FW_PARAMS_MNEM(FW_PARAMS_MNEM_DEV) |
			V_FW_PARAMS_PARAM_X(FW_PARAMS_PARAM_DEV_MCINIT));
	ret = t4_set_params_timeout(adap, adap->mbox, adap->pf, 0, 1, params, val,
			FW_CMD_MAX_TIMEOUT);
	return ret;
}
int t5_fw_init_extern_mem ( struct adapter * adap ) { u32 params [ 1 ] , val [ 1 ] ; int ret ; if ( ! is_t5 ( adap ) ) return 0 ; val [ 0 ] = 0xff ; params [ 0 ] = ( V_FW_PARAMS_MNEM ( FW_PARAMS_MNEM_DEV ) | V_FW_PARAMS_PARAM_X ( FW_PARAMS_PARAM_DEV_MCINIT ) ) ; ret = t4_set_params_timeout ( adap , adap -> mbox , adap -> pf , 0 , 1 , params , val , FW_CMD_MAX_TIMEOUT ) ; return ret ; }
t5_fw_init_extern_mem - initialize the external memory
      @adap: the adapter
t5_fw_init_extern_mem - initialize the external memory @adap : the adapter
/* Initialize all MCs */