/* * Copyright (c) 2018-2020, NVIDIA CORPORATION.  All rights reserved. All
 * information contained herein is proprietary and confidential to NVIDIA
 * Corporation.  Any use, reproduction, or disclosure without the written
 * permission of NVIDIA Corporation is prohibited.
 */

#include "CNvMTransportLink.hpp"

namespace nvsipl
{

SIPLStatus CNvMTransportLink::SetConfig(LinkParams *params) {
    if (params->pSerCDIDevice == nullptr or params->pDeserCDIDevice == nullptr) {
        return NVSIPL_STATUS_BAD_ARGUMENT;
    }

    m_oLinkParams = *params;

    return NVSIPL_STATUS_OK;
}

// This will do the init for 1 maxim deser and up to MAX_LINKS_PER_DESER maxim serializers
SIPLStatus CNvMTransportLink::Init(DevBlkCDIDevice* brdcstSerCDI, uint8_t linkMask, bool groupInitProg)
{
    return NVSIPL_STATUS_OK;
}

SIPLStatus CNvMTransportLink::PostSensorInit(DevBlkCDIDevice* brdcstSerCDI, uint8_t linkMask, bool groupInitProg)
{
    return NVSIPL_STATUS_OK;
}

SIPLStatus CNvMTransportLink::MiscInit()
{
    return NVSIPL_STATUS_OK;
}

SIPLStatus CNvMTransportLink::Start()
{
    return NVSIPL_STATUS_OK;
}

SIPLStatus CNvMTransportLink::Stop()
{
    return NVSIPL_STATUS_OK;
}

SIPLStatus CNvMTransportLink::Reset()
{
    return NVSIPL_STATUS_OK;
}

SIPLStatus CNvMTransportLink::Deinit()
{
    return NVSIPL_STATUS_OK;
}

} // end of namespace nvsipl
