Lines Matching +full:ipmi +full:- +full:smic
8 // http://www.apache.org/licenses/LICENSE-2.0
28 #include <phosphor-logging/lg2.hpp>
38 namespace ipmi namespace
42 "/usr/share/ipmi-providers/channel_access.json";
44 "/usr/share/ipmi-providers/channel_config.json";
46 "/var/lib/ipmi/channel_access_nv.json";
48 "/run/ipmi/channel_access_volatile.json";
107 {"icmb-v1.0", EChannelMediumType::icmbV10},
108 {"icmb-v0.9", EChannelMediumType::icmbV09},
109 {"lan-802.3", EChannelMediumType::lan8032},
111 {"other-lan", EChannelMediumType::otherLan},
112 {"pci-smbus", EChannelMediumType::pciSmbus},
113 {"smbus-v1.0", EChannelMediumType::smbusV11},
114 {"smbus-v2.0", EChannelMediumType::smbusV20},
115 {"usb-1x", EChannelMediumType::usbV1x},
116 {"usb-2x", EChannelMediumType::usbV2x},
117 {"system-interface", EChannelMediumType::systemInterface},
128 {"ipmb-1.0", EChannelProtocolType::ipmbV10},
129 {"icmb-2.0", EChannelProtocolType::icmbV11},
131 {"ipmi-smbus", EChannelProtocolType::ipmiSmbus},
133 {"smic", EChannelProtocolType::smic},
134 {"bt-10", EChannelProtocolType::bt10},
135 {"bt-15", EChannelProtocolType::bt15},
140 "disabled", "pre-boot", "always_available", "shared"};
143 "session-less", "single-session", "multi-session", "session-based"};
146 "priv-reserved", "priv-callback", "priv-user",
147 "priv-operator", "priv-admin", "priv-oem"};
173 return -1; in convertToChannelNumberFromChannelName()
244 // skip updating the values, if this property change originated from IPMI. in processChAccessPropChange()
248 lg2::debug("Request originated from IPMI so ignoring signal"); in processChAccessPropChange()
252 // Update both volatile & Non-volatile, if there is mismatch. in processChAccessPropChange()
253 // as property change other than IPMI, has to update both volatile & in processChAccessPropChange()
254 // non-volatile data. in processChAccessPropChange()
332 // host-ipmid in ChannelConfig()
376 lg2::debug("Invalid channel ID - Out of range"); in isValidChannel()
455 lg2::debug("Session-less channel doesn't have access data."); in getChannelAccessData()
484 lg2::debug("Session-less channel doesn't have access data."); in setChannelAccessData()
554 lg2::debug("Session-less channel doesn't have access data."); in getChannelAccessPersistData()
583 lg2::debug("Session-less channel doesn't have access data."); in setChannelAccessPersistData()
709 return -EIO; in getUpdatedFileTime()
789 return static_cast<EChannelMediumType>(it->second); in convertToMediumTypeIndex()
803 return static_cast<EChannelProtocolType>(it->second); in convertToProtocolTypeIndex()
839 return -EIO; in writeJsonFile()
848 return -EIO; in writeJsonFile()
856 return -EIO; in writeJsonFile()
914 lg2::debug("Error in opening IPMI Channel data file"); in loadChannelConfig()
915 return -EIO; in loadChannelConfig()
921 // information to only add IPMI channels that have active NIC interfaces. in loadChannelConfig()
926 return -EIO; in loadChannelConfig()
947 return -EBADMSG; in loadChannelConfig()
952 if (jsonChInfo[mediumTypeString].get<std::string>() == "lan-802.3") in loadChannelConfig()
955 for (ifa = ifaddr; ifa != nullptr; ifa = ifa->ifa_next) in loadChannelConfig()
958 ifa->ifa_name) in loadChannelConfig()
999 return -EBADMSG; in loadChannelConfig()
1005 return -EBADMSG; in loadChannelConfig()
1021 lg2::debug("Error in opening IPMI Channel data file"); in readChannelVolatileData()
1022 return -EIO; in readChannelVolatileData()
1034 throw std::out_of_range("Out of range - channel number"); in readChannelVolatileData()
1088 lg2::debug("Error in opening IPMI Channel data file"); in readChannelPersistData()
1089 return -EIO; in readChannelPersistData()
1101 throw std::out_of_range("Out of range - channel number"); in readChannelPersistData()
1181 return -EINVAL; in writeChannelVolatileData()
1187 return -EIO; in writeChannelVolatileData()
1232 return -EINVAL; in writeChannelPersistData()
1238 return -EIO; in writeChannelPersistData()
1250 if (updateTime != nvFileLastUpdatedTime || updateTime == -EIO) in checkAndReloadNVData()
1260 ret = -EIO; in checkAndReloadNVData()
1270 if (updateTime != voltFileLastUpdatedTime || updateTime == -EIO) in checkAndReloadVolatileData()
1280 ret = -EIO; in checkAndReloadVolatileData()
1304 "set-property {SERVICE}:{OBJPATH}/{INTERFACE}.{PROP} failed: {MSG}", in setDbusProperty()
1307 return -EIO; in setDbusProperty()
1329 auto propValue = ipmi::getDbusProperty( in syncNetworkChannelConfig()
1372 return -EIO; in syncNetworkChannelConfig()
1378 return -EIO; in syncNetworkChannelConfig()
1445 } // namespace ipmi