Lines Matching full:version
4 * Licensed under the Apache License, Version 2.0 (the "License");
18 #include "version.hpp"
35 namespace version namespace
46 * @brief Get PSU version information
81 (fru["propertyName"] == "Version") && fru.contains("fileName")) in getVersionInfo()
89 lg2::warning("Unable to find Version file"); in getVersionInfo()
96 * @brief Get the PSU version from sysfs.
104 * @return PSU version, or "" if none found
111 // Read version from sysfs file in getVersionJson()
112 std::string version; in getVersionJson() local
116 version = pmbus.readString(fileName, type); in getVersionJson()
118 return version; in getVersionJson()
122 * @brief Get the PSU version from sysfs.
131 * @return PSU version, or "" if none found
140 // Read version from sysfs file in getVersionDbus()
143 std::string version = pmbus->readString(name, type); in getVersionDbus() local
144 return version; in getVersionDbus()
148 * @brief Get firmware latest version
152 * @return version - latest firmware level
157 for (const auto& version : versions) in getLatestDefault() local
159 if (latest < version) in getLatestDefault()
161 latest = version; in getLatestDefault()
172 std::string version; in getVersion() local
178 version = internal::getVersionJson(psuInventoryPath); in getVersion()
183 version = internal::getVersionDbus(bus, psuInventoryPath); in getVersion()
190 return version; in getVersion()
199 // IBM AC servers' PSU version has two types: in getLatest()
200 // * XXXXYYYYZZZZ: XXXX is the primary version in getLatest()
201 // YYYY is the secondary version in getLatest()
202 // ZZZZ is the communication version in getLatest()
204 // * XXXXYYYY: XXXX is the primary version in getLatest()
205 // YYYY is the seconday version in getLatest()
207 // Inspur FP5280G2 PSU version is human readable text and a larger string in getLatest()
208 // means a newer version. in getLatest()
214 } // namespace version