1 #pragma once 2 #include <nlohmann/json.hpp> 3 4 namespace protocol 5 { 6 // clang-format off 7 8 enum class Protocol{ 9 Invalid, 10 PCIe, 11 AHCI, 12 UHCI, 13 SAS, 14 SATA, 15 USB, 16 NVMe, 17 FC, 18 iSCSI, 19 FCoE, 20 FCP, 21 FICON, 22 NVMeOverFabrics, 23 SMB, 24 NFSv3, 25 NFSv4, 26 HTTP, 27 HTTPS, 28 FTP, 29 SFTP, 30 iWARP, 31 RoCE, 32 RoCEv2, 33 I2C, 34 TCP, 35 UDP, 36 TFTP, 37 GenZ, 38 MultiProtocol, 39 InfiniBand, 40 Ethernet, 41 NVLink, 42 OEM, 43 DisplayPort, 44 HDMI, 45 VGA, 46 DVI, 47 CXL, 48 UPI, 49 QPI, 50 eMMC, 51 }; 52 53 NLOHMANN_JSON_SERIALIZE_ENUM(Protocol, { 54 {Protocol::Invalid, "Invalid"}, 55 {Protocol::PCIe, "PCIe"}, 56 {Protocol::AHCI, "AHCI"}, 57 {Protocol::UHCI, "UHCI"}, 58 {Protocol::SAS, "SAS"}, 59 {Protocol::SATA, "SATA"}, 60 {Protocol::USB, "USB"}, 61 {Protocol::NVMe, "NVMe"}, 62 {Protocol::FC, "FC"}, 63 {Protocol::iSCSI, "iSCSI"}, 64 {Protocol::FCoE, "FCoE"}, 65 {Protocol::FCP, "FCP"}, 66 {Protocol::FICON, "FICON"}, 67 {Protocol::NVMeOverFabrics, "NVMeOverFabrics"}, 68 {Protocol::SMB, "SMB"}, 69 {Protocol::NFSv3, "NFSv3"}, 70 {Protocol::NFSv4, "NFSv4"}, 71 {Protocol::HTTP, "HTTP"}, 72 {Protocol::HTTPS, "HTTPS"}, 73 {Protocol::FTP, "FTP"}, 74 {Protocol::SFTP, "SFTP"}, 75 {Protocol::iWARP, "iWARP"}, 76 {Protocol::RoCE, "RoCE"}, 77 {Protocol::RoCEv2, "RoCEv2"}, 78 {Protocol::I2C, "I2C"}, 79 {Protocol::TCP, "TCP"}, 80 {Protocol::UDP, "UDP"}, 81 {Protocol::TFTP, "TFTP"}, 82 {Protocol::GenZ, "GenZ"}, 83 {Protocol::MultiProtocol, "MultiProtocol"}, 84 {Protocol::InfiniBand, "InfiniBand"}, 85 {Protocol::Ethernet, "Ethernet"}, 86 {Protocol::NVLink, "NVLink"}, 87 {Protocol::OEM, "OEM"}, 88 {Protocol::DisplayPort, "DisplayPort"}, 89 {Protocol::HDMI, "HDMI"}, 90 {Protocol::VGA, "VGA"}, 91 {Protocol::DVI, "DVI"}, 92 {Protocol::CXL, "CXL"}, 93 {Protocol::UPI, "UPI"}, 94 {Protocol::QPI, "QPI"}, 95 {Protocol::eMMC, "eMMC"}, 96 }); 97 98 } 99 // clang-format on 100