fboss/agent/platforms/sai/SaiSandiaPlatformPort.cpp (19 lines of code) (raw):
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#include "fboss/agent/platforms/sai/SaiSandiaPlatformPort.h"
#include "fboss/agent/platforms/common/utils/Wedge400LedUtils.h"
namespace facebook::fboss {
uint32_t SaiSandiaPlatformPort::getPhysicalLaneId(
uint32_t chipId,
uint32_t logicalLaneId) const {
return (chipId << 8) + logicalLaneId;
}
bool SaiSandiaPlatformPort::supportsTransceiver() const {
return true;
}
void SaiSandiaPlatformPort::linkStatusChanged(
bool /* up */,
bool /* adminUp */) {}
void SaiSandiaPlatformPort::externalState(PortLedExternalState /* lfs */) {}
uint32_t SaiSandiaPlatformPort::getCurrentLedState() const {
return static_cast<uint32_t>(currentLedState_);
}
} // namespace facebook::fboss