Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions fboss/lib/bsp/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ cpp_library(
"//fboss/lib/bsp/tahansb800bc:tahansb800bc_bsp",
"//fboss/lib/bsp/wedge800bact:wedge800bact_bsp",
"//fboss/lib/bsp/wedge800cact:wedge800cact_bsp",
"//fboss/lib/bsp/icecube800banw:icecube800banw_bsp",
"//fboss/lib/fpga:fpga_device",
"//fboss/lib/fpga:multi_pim_container",
"//fboss/lib/i2c:i2c_controller_stats-cpp2-types",
Expand Down
2 changes: 2 additions & 0 deletions fboss/lib/bsp/bspmapping/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ const std::map<PlatformType, folly::StringPiece> kHardwareNameMap = {
kPortMappingWedge800CACTCsv},
{facebook::fboss::PlatformType::PLATFORM_LADAKH800BCLS,
kPortMappingLadakh800bclsCsv},
{facebook::fboss::PlatformType::PLATFORM_ICECUBE800BANW,
kPortMappingIcecube800banwCsv},
};

// Helper function to generate PHY CSV filename from regular CSV filename
Expand Down
2 changes: 2 additions & 0 deletions fboss/lib/bsp/bspmapping/Parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ inline constexpr folly::StringPiece kPortMappingWedge800CACTCsv{
"Wedge800CACT_BspMapping.csv"};
inline constexpr folly::StringPiece kPortMappingLadakh800bclsCsv{
"Ladakh800bcls_BspMapping.csv"};
inline constexpr folly::StringPiece kPortMappingIcecube800banwCsv{
"Icecube800banw_BspMapping.csv"};

class Parser {
public:
Expand Down
129 changes: 129 additions & 0 deletions fboss/lib/bsp/bspmapping/input/Icecube800banw_BspMapping.csv

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions fboss/lib/bsp/bspmapping/test/ParserTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ TEST(ParserTest, GetNameForTests) {
facebook::fboss::Parser::getNameFor(
facebook::fboss::PlatformType::PLATFORM_LADAKH800BCLS),
"ladakh800bcls");
EXPECT_EQ(
facebook::fboss::Parser::getNameFor(
facebook::fboss::PlatformType::PLATFORM_ICECUBE800BANW),
"icecube800banw");
}

TEST(ParserTest, GetTransceiverConfigRowFromCsvLine) {
Expand Down
19 changes: 19 additions & 0 deletions fboss/lib/bsp/icecube800banw/BUCK
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# @autodeps
load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library")

oncall("fboss_optics_phy")

cpp_library(
name = "icecube800banw_bsp",
srcs = [
"Icecube800banwBspPlatformMapping.cpp",
],
headers = [
"Icecube800banwBspPlatformMapping.h",
],
exported_deps = [
"//fboss/lib/bsp:bsp_platform_mapping-cpp2-types",
"//fboss/lib/bsp:bsp_platform_mapping_lib",
"//thrift/lib/cpp2/protocol:protocol",
],
)
Loading
Loading