/** This is the switch ral layer init function \param pInit This parameter is a pointer to the ral init handle context. \return Return value as follows: - IFX_SUCCESS: if successful */ IFX_void_t *IFX_PSB6970_RAL_init(IFX_PSB6970_RAL_Init_t *pInit) { IFX_PSB6970_RAL_Dev_t *pDev; pDev = (IFX_PSB6970_RAL_Dev_t *) IFXOS_BlockAlloc (sizeof (IFX_PSB6970_RAL_Dev_t)); if(pDev == IFX_NULL) { IFXOS_PRINT_INT_RAW("Error : %s memory allocation failed !!\n", __func__); return IFX_NULL; } pDev->register_read = &IFX_AMAZON_SE_RAL_Register_MDIORead; pDev->register_write = &IFX_AMAZON_SE_RAL_Register_MDIOWrite; pDev->nBaseAddress = IFX_AMAZON_SE_PPE_BASEADDR; pDev->eDev = pInit->eDev; return pDev; }
/* For a detailed description of the function, its arguments and return value please refer to the description in the header file 'drv_dsl_cpe_os.h' */ DSL_void_t* DSL_DRV_PMalloc( DSL_DRV_size_t nSize) { return IFXOS_BlockAlloc(nSize); }