Searched refs:IOInterfaceType (Results 1 – 4 of 4) sorted by relevance
| /openbmc/phosphor-pid-control/sensors/ |
| H A D | build_utils.cpp | 16 IOInterfaceType getWriteInterfaceType(const std::string& path) in getWriteInterfaceType() 20 return IOInterfaceType::NONE; in getWriteInterfaceType() 26 return IOInterfaceType::SYSFS; in getWriteInterfaceType() 31 return IOInterfaceType::DBUSACTIVE; in getWriteInterfaceType() 34 return IOInterfaceType::UNKNOWN; in getWriteInterfaceType() 37 IOInterfaceType getReadInterfaceType(const std::string& path) in getReadInterfaceType() 41 return IOInterfaceType::NONE; in getReadInterfaceType() 46 return IOInterfaceType::EXTERNAL; in getReadInterfaceType() 51 return IOInterfaceType::DBUSPASSIVE; in getReadInterfaceType() 56 return IOInterfaceType::SYSFS; in getReadInterfaceType() [all …]
|
| H A D | builder.cpp | 54 IOInterfaceType rtype = getReadInterfaceType(info->readPath); in buildSensors() 55 IOInterfaceType wtype = getWriteInterfaceType(info->writePath); in buildSensors() 65 case IOInterfaceType::DBUSPASSIVE: in buildSensors() 92 case IOInterfaceType::EXTERNAL: in buildSensors() 95 case IOInterfaceType::SYSFS: in buildSensors() 107 case IOInterfaceType::SYSFS: in buildSensors() 120 case IOInterfaceType::DBUSACTIVE: in buildSensors() 159 if (IOInterfaceType::EXTERNAL == rtype) in buildSensors()
|
| H A D | build_utils.hpp | 16 enum class IOInterfaceType enum 27 IOInterfaceType getWriteInterfaceType(const std::string& path); 29 IOInterfaceType getReadInterfaceType(const std::string& path);
|
| /openbmc/phosphor-pid-control/test/ |
| H A D | util_unittest.cpp | 16 EXPECT_EQ(IOInterfaceType::NONE, getWriteInterfaceType("")); in TEST() 23 EXPECT_EQ(IOInterfaceType::NONE, getWriteInterfaceType("None")); in TEST() 31 EXPECT_EQ(IOInterfaceType::SYSFS, getWriteInterfaceType(path)); in TEST() 39 EXPECT_EQ(IOInterfaceType::UNKNOWN, getWriteInterfaceType(path)); in TEST() 46 EXPECT_EQ(IOInterfaceType::NONE, getReadInterfaceType("")); in TEST() 53 EXPECT_EQ(IOInterfaceType::NONE, getReadInterfaceType("None")); in TEST() 61 EXPECT_EQ(IOInterfaceType::EXTERNAL, getReadInterfaceType(path)); in TEST() 69 EXPECT_EQ(IOInterfaceType::DBUSPASSIVE, getReadInterfaceType(path)); in TEST() 77 EXPECT_EQ(IOInterfaceType::SYSFS, getReadInterfaceType(path)); in TEST() 85 EXPECT_EQ(IOInterfaceType::UNKNOWN, getReadInterfaceType(path)); in TEST()
|