Searched refs:IOInterfaceType (Results 1 – 4 of 4) sorted by relevance
/openbmc/phosphor-pid-control/sensors/ |
H A D | build_utils.cpp | 27 IOInterfaceType getWriteInterfaceType(const std::string& path) in getWriteInterfaceType() 31 return IOInterfaceType::NONE; in getWriteInterfaceType() 37 return IOInterfaceType::SYSFS; in getWriteInterfaceType() 42 return IOInterfaceType::DBUSACTIVE; in getWriteInterfaceType() 45 return IOInterfaceType::UNKNOWN; in getWriteInterfaceType() 48 IOInterfaceType getReadInterfaceType(const std::string& path) in getReadInterfaceType() 52 return IOInterfaceType::NONE; in getReadInterfaceType() 57 return IOInterfaceType::EXTERNAL; in getReadInterfaceType() 62 return IOInterfaceType::DBUSPASSIVE; in getReadInterfaceType() 67 return IOInterfaceType::SYSFS; in getReadInterfaceType() [all …]
|
H A D | builder.cpp | 64 IOInterfaceType rtype = getReadInterfaceType(info->readPath); in buildSensors() 65 IOInterfaceType wtype = getWriteInterfaceType(info->writePath); in buildSensors() 75 case IOInterfaceType::DBUSPASSIVE: in buildSensors() 104 case IOInterfaceType::EXTERNAL: in buildSensors() 107 case IOInterfaceType::SYSFS: in buildSensors() 119 case IOInterfaceType::SYSFS: in buildSensors() 132 case IOInterfaceType::DBUSACTIVE: in buildSensors() 172 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 | 17 EXPECT_EQ(IOInterfaceType::NONE, getWriteInterfaceType("")); in TEST() 24 EXPECT_EQ(IOInterfaceType::NONE, getWriteInterfaceType("None")); in TEST() 32 EXPECT_EQ(IOInterfaceType::SYSFS, getWriteInterfaceType(path)); in TEST() 40 EXPECT_EQ(IOInterfaceType::UNKNOWN, getWriteInterfaceType(path)); in TEST() 47 EXPECT_EQ(IOInterfaceType::NONE, getReadInterfaceType("")); in TEST() 54 EXPECT_EQ(IOInterfaceType::NONE, getReadInterfaceType("None")); in TEST() 62 EXPECT_EQ(IOInterfaceType::EXTERNAL, getReadInterfaceType(path)); in TEST() 70 EXPECT_EQ(IOInterfaceType::DBUSPASSIVE, getReadInterfaceType(path)); in TEST() 78 EXPECT_EQ(IOInterfaceType::SYSFS, getReadInterfaceType(path)); in TEST() 86 EXPECT_EQ(IOInterfaceType::UNKNOWN, getReadInterfaceType(path)); in TEST()
|