diff options
author | Deepak Kodihalli <dkodihal@in.ibm.com> | 2017-03-17 07:12:08 -0500 |
---|---|---|
committer | Deepak Kodihalli <dkodihal@in.ibm.com> | 2017-03-30 05:55:09 -0500 |
commit | 4779531d50f55d2ecbf173b8aca76ce545a77477 (patch) | |
tree | ca32537d213b6a3068fba1552a3f8e86b82d79e7 /occ_finder.hpp | |
parent | 92a6341e34156e1a0baf7389b4ac0e58e7ea1d9e (diff) | |
download | openpower-occ-control-4779531d50f55d2ecbf173b8aca76ce545a77477.tar.gz openpower-occ-control-4779531d50f55d2ecbf173b8aca76ce545a77477.zip |
Find OCC objects
For now, map OCC object per POWER processor.
Add a method that returns a list of OCC objects that need to be on the
bus, based on the processor inventory.
Change-Id: I1dd36b96f71684a1d5866876e4ca9aa0283ef8b0
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
Diffstat (limited to 'occ_finder.hpp')
-rw-r--r-- | occ_finder.hpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/occ_finder.hpp b/occ_finder.hpp new file mode 100644 index 0000000..2a31b71 --- /dev/null +++ b/occ_finder.hpp @@ -0,0 +1,20 @@ +#pragma once + +#include <vector> +#include <string> + +namespace open_power +{ +namespace occ +{ +namespace finder +{ + +/** @brief Get OCC objects on the system by mapping them to processor inventory + * @returns list of occ objects, such as occ0, occ1, and so on. + */ +std::vector<std::string> get(); + +} // namespace finder +} // namespace occ +} // namespace open_power |