FreeBSD/sys/contrib/ncsw/Peripherals/FM/Port/fm_port.c
/*       API Run-time PCD Control unit functions        */
API Run-time PCD Control unit functions
API Run - time PCD Control unit functions
t_Error FM_PORT_PcdPlcrAllocProfiles(t_Handle h_FmPort, uint16_t numOfProfiles)
{
    t_FmPort                    *p_FmPort = (t_FmPort*)h_FmPort;
    t_Error                     err = E_OK;
    p_FmPort->h_FmPcd = FmGetPcdHandle(p_FmPort->h_Fm);
    ASSERT_COND(p_FmPort->h_FmPcd);
    if(numOfProfiles)
    {
        err = FmPcdPlcrAllocProfiles(p_FmPort->h_FmPcd, p_FmPort->hardwarePortId, numOfProfiles);
        if(err)
            RETURN_ERROR(MAJOR, err,NO_MSG);
    }
    FmPcdPortRegister(p_FmPort->h_FmPcd, h_FmPort, p_FmPort->hardwarePortId);
    return E_OK;
}
t_Error FM_PORT_PcdPlcrAllocProfiles ( t_Handle h_FmPort , uint16_t numOfProfiles ) { t_FmPort * p_FmPort = ( t_FmPort * ) h_FmPort ; t_Error err = E_OK ; p_FmPort -> h_FmPcd = FmGetPcdHandle ( p_FmPort -> h_Fm ) ; ASSERT_COND ( p_FmPort -> h_FmPcd ) ; if ( numOfProfiles ) { err = FmPcdPlcrAllocProfiles ( p_FmPort -> h_FmPcd , p_FmPort -> hardwarePortId , numOfProfiles ) ; if ( err ) RETURN_ERROR ( MAJOR , err , NO_MSG ) ; } FmPcdPortRegister ( p_FmPort -> h_FmPcd , h_FmPort , p_FmPort -> hardwarePortId ) ; return E_OK ; }
API Run-time PCD Control unit functions
API Run - time PCD Control unit functions