Vishwanatha Subbanna | ed49073 | 2016-12-20 15:59:29 +0530 | [diff] [blame] | 1 | static const std::map<std::string, |
| 2 | std::set<phosphor::led::Layout::LedAction>> singleLedOn = { |
| 3 | { "/xyz/openbmc_project/ledmanager/groups/SingleLed",{ |
Vishwanatha Subbanna | 4b000d8 | 2017-05-03 18:44:16 +0530 | [diff] [blame] | 4 | {"One",phosphor::led::Layout::On, 0, |
| 5 | 0, phosphor::led::Layout::Blink}, |
Vishwanatha Subbanna | ed49073 | 2016-12-20 15:59:29 +0530 | [diff] [blame] | 6 | } |
| 7 | }, |
| 8 | }; |
| 9 | |
| 10 | static const std::map<std::string, |
| 11 | std::set<phosphor::led::Layout::LedAction>> singleLedBlink = { |
| 12 | { "/xyz/openbmc_project/ledmanager/groups/SingleLed",{ |
Vishwanatha Subbanna | 4b000d8 | 2017-05-03 18:44:16 +0530 | [diff] [blame] | 13 | {"One",phosphor::led::Layout::Blink, 0, |
| 14 | 0, phosphor::led::Layout::Blink}, |
| 15 | } |
| 16 | }, |
| 17 | }; |
| 18 | |
| 19 | static const std::map<std::string, |
| 20 | std::set<phosphor::led::Layout::LedAction>> singleLedBlinkOverrideOn = { |
| 21 | { "/xyz/openbmc_project/ledmanager/groups/SingleLed",{ |
| 22 | {"One",phosphor::led::Layout::Blink, 0, |
| 23 | 0, phosphor::led::Layout::On}, |
Vishwanatha Subbanna | ed49073 | 2016-12-20 15:59:29 +0530 | [diff] [blame] | 24 | } |
| 25 | }, |
| 26 | }; |
| 27 | |
| 28 | static const std::map<std::string, |
| 29 | std::set<phosphor::led::Layout::LedAction>> multipleLedsOn = { |
| 30 | { "/xyz/openbmc_project/ledmanager/groups/MultipleLeds",{ |
Vishwanatha Subbanna | 4b000d8 | 2017-05-03 18:44:16 +0530 | [diff] [blame] | 31 | {"One",phosphor::led::Layout::On, 0, |
| 32 | 0, phosphor::led::Layout::On}, |
| 33 | {"Two",phosphor::led::Layout::On, 0, |
| 34 | 0, phosphor::led::Layout::On}, |
| 35 | {"Three",phosphor::led::Layout::On, 0, |
| 36 | 0, phosphor::led::Layout::On}, |
Vishwanatha Subbanna | ed49073 | 2016-12-20 15:59:29 +0530 | [diff] [blame] | 37 | } |
| 38 | }, |
| 39 | }; |
| 40 | |
| 41 | static const std::map<std::string, |
| 42 | std::set<phosphor::led::Layout::LedAction>> multipleLedsBlink = { |
| 43 | { "/xyz/openbmc_project/ledmanager/groups/MultipleLeds",{ |
Vishwanatha Subbanna | 4b000d8 | 2017-05-03 18:44:16 +0530 | [diff] [blame] | 44 | {"One",phosphor::led::Layout::Blink, 0, |
| 45 | 0, phosphor::led::Layout::Blink}, |
| 46 | {"Two",phosphor::led::Layout::Blink, 0, |
| 47 | 0, phosphor::led::Layout::Blink}, |
| 48 | {"Three",phosphor::led::Layout::Blink,0, |
| 49 | 0, phosphor::led::Layout::Blink}, |
Vishwanatha Subbanna | ed49073 | 2016-12-20 15:59:29 +0530 | [diff] [blame] | 50 | } |
| 51 | }, |
| 52 | }; |
| 53 | |
| 54 | static const std::map<std::string, |
| 55 | std::set<phosphor::led::Layout::LedAction>> multipleLedsOnAndBlink = { |
| 56 | { "/xyz/openbmc_project/ledmanager/groups/MultipleLedsMix",{ |
Vishwanatha Subbanna | 4b000d8 | 2017-05-03 18:44:16 +0530 | [diff] [blame] | 57 | {"One",phosphor::led::Layout::Blink, 0, |
| 58 | 0, phosphor::led::Layout::Blink}, |
| 59 | {"Two",phosphor::led::Layout::On, |
| 60 | 0, phosphor::led::Layout::Blink}, |
| 61 | {"Three",phosphor::led::Layout::Blink, |
| 62 | 0, phosphor::led::Layout::On}, |
| 63 | {"Four",phosphor::led::Layout::On, |
| 64 | 0, phosphor::led::Layout::Blink}, |
| 65 | {"Five",phosphor::led::Layout::On, |
| 66 | 0, phosphor::led::Layout::Blink}, |
Vishwanatha Subbanna | ed49073 | 2016-12-20 15:59:29 +0530 | [diff] [blame] | 67 | } |
| 68 | }, |
| 69 | }; |
| 70 | |
| 71 | static const std::map<std::string, |
| 72 | std::set<phosphor::led::Layout::LedAction>> twoGroupsWithDistinctLEDsOn = { |
| 73 | { "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet",{ |
Vishwanatha Subbanna | 4b000d8 | 2017-05-03 18:44:16 +0530 | [diff] [blame] | 74 | {"One",phosphor::led::Layout::On, 0, |
| 75 | 0, phosphor::led::Layout::Blink}, |
| 76 | {"Two",phosphor::led::Layout::On, 0, |
| 77 | 0, phosphor::led::Layout::On}, |
| 78 | {"Three",phosphor::led::Layout::On, 0, |
| 79 | 0, phosphor::led::Layout::Blink}, |
Vishwanatha Subbanna | ed49073 | 2016-12-20 15:59:29 +0530 | [diff] [blame] | 80 | } |
| 81 | }, |
| 82 | { "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet",{ |
Vishwanatha Subbanna | 4b000d8 | 2017-05-03 18:44:16 +0530 | [diff] [blame] | 83 | {"Four",phosphor::led::Layout::On, 0, |
| 84 | 0, phosphor::led::Layout::Blink}, |
| 85 | {"Five",phosphor::led::Layout::On, 0, |
| 86 | 0, phosphor::led::Layout::Blink}, |
| 87 | {"Six",phosphor::led::Layout::On, 0, |
| 88 | 0, phosphor::led::Layout::On}, |
Vishwanatha Subbanna | ed49073 | 2016-12-20 15:59:29 +0530 | [diff] [blame] | 89 | } |
| 90 | }, |
| 91 | }; |
| 92 | |
| 93 | static const std::map<std::string, |
| 94 | std::set<phosphor::led::Layout::LedAction>> twoGroupsWithOneComonLEDOn = { |
| 95 | { "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet",{ |
Vishwanatha Subbanna | 4b000d8 | 2017-05-03 18:44:16 +0530 | [diff] [blame] | 96 | {"One",phosphor::led::Layout::On, 0, |
| 97 | 0, phosphor::led::Layout::On}, |
| 98 | {"Two",phosphor::led::Layout::On, 0, |
| 99 | 0, phosphor::led::Layout::On}, |
| 100 | {"Three",phosphor::led::Layout::On, 0, |
| 101 | 0, phosphor::led::Layout::On}, |
Vishwanatha Subbanna | ed49073 | 2016-12-20 15:59:29 +0530 | [diff] [blame] | 102 | } |
| 103 | }, |
| 104 | { "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet",{ |
Vishwanatha Subbanna | 4b000d8 | 2017-05-03 18:44:16 +0530 | [diff] [blame] | 105 | {"Four",phosphor::led::Layout::On, 0, |
| 106 | 0, phosphor::led::Layout::On}, |
| 107 | {"Three",phosphor::led::Layout::On, 0, |
| 108 | 0, phosphor::led::Layout::On}, |
| 109 | {"Six",phosphor::led::Layout::On, 0, |
| 110 | 0, phosphor::led::Layout::On}, |
Vishwanatha Subbanna | ed49073 | 2016-12-20 15:59:29 +0530 | [diff] [blame] | 111 | } |
| 112 | }, |
| 113 | }; |
| 114 | |
| 115 | static const std::map<std::string, |
Vishwanatha Subbanna | 4b000d8 | 2017-05-03 18:44:16 +0530 | [diff] [blame] | 116 | std::set<phosphor::led::Layout::LedAction>> twoGroupsWithOneComonLEDOnOneLEDBlinkPriority = { |
Vishwanatha Subbanna | ed49073 | 2016-12-20 15:59:29 +0530 | [diff] [blame] | 117 | { "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet",{ |
Vishwanatha Subbanna | 4b000d8 | 2017-05-03 18:44:16 +0530 | [diff] [blame] | 118 | {"One",phosphor::led::Layout::On, 0, |
| 119 | 0, phosphor::led::Layout::On}, |
| 120 | {"Two",phosphor::led::Layout::On, 0, |
| 121 | 0, phosphor::led::Layout::On}, |
| 122 | {"Three",phosphor::led::Layout::Blink, 0, |
| 123 | 0, phosphor::led::Layout::Blink}, |
Vishwanatha Subbanna | ed49073 | 2016-12-20 15:59:29 +0530 | [diff] [blame] | 124 | } |
| 125 | }, |
| 126 | { "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet",{ |
Vishwanatha Subbanna | 4b000d8 | 2017-05-03 18:44:16 +0530 | [diff] [blame] | 127 | {"Four",phosphor::led::Layout::On, 0, |
| 128 | 0, phosphor::led::Layout::On}, |
| 129 | {"Three",phosphor::led::Layout::On, 0, |
| 130 | 0, phosphor::led::Layout::Blink}, |
| 131 | {"Six",phosphor::led::Layout::On, 0, |
| 132 | 0, phosphor::led::Layout::On}, |
| 133 | } |
| 134 | }, |
| 135 | }; |
| 136 | |
| 137 | static const std::map<std::string, |
| 138 | std::set<phosphor::led::Layout::LedAction>> twoGroupsWithOneComonLEDOnPriority = { |
| 139 | { "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet",{ |
| 140 | {"One",phosphor::led::Layout::On, 0, |
| 141 | 0, phosphor::led::Layout::On}, |
| 142 | {"Two",phosphor::led::Layout::On, 0, |
| 143 | 0, phosphor::led::Layout::On}, |
| 144 | {"Three",phosphor::led::Layout::Blink, 0, |
| 145 | 0, phosphor::led::Layout::On}, |
| 146 | } |
| 147 | }, |
| 148 | { "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet",{ |
| 149 | {"Four",phosphor::led::Layout::On, 0, |
| 150 | 0, phosphor::led::Layout::On}, |
| 151 | {"Three",phosphor::led::Layout::On, 0, |
| 152 | 0, phosphor::led::Layout::On}, |
| 153 | {"Six",phosphor::led::Layout::On, 0, |
| 154 | 0, phosphor::led::Layout::On}, |
Vishwanatha Subbanna | ed49073 | 2016-12-20 15:59:29 +0530 | [diff] [blame] | 155 | } |
| 156 | }, |
| 157 | }; |
| 158 | |
| 159 | static const std::map<std::string, |
| 160 | std::set<phosphor::led::Layout::LedAction>> |
| 161 | twoGroupsWithMultiplComonLEDOn = { |
| 162 | { "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet",{ |
Vishwanatha Subbanna | 4b000d8 | 2017-05-03 18:44:16 +0530 | [diff] [blame] | 163 | {"One",phosphor::led::Layout::On, 0, |
| 164 | 0, phosphor::led::Layout::On}, |
| 165 | {"Two",phosphor::led::Layout::On, 0, |
| 166 | 0, phosphor::led::Layout::On}, |
| 167 | {"Three",phosphor::led::Layout::On, 0, |
| 168 | 0, phosphor::led::Layout::On}, |
Vishwanatha Subbanna | ed49073 | 2016-12-20 15:59:29 +0530 | [diff] [blame] | 169 | } |
| 170 | }, |
| 171 | { "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet",{ |
Vishwanatha Subbanna | 4b000d8 | 2017-05-03 18:44:16 +0530 | [diff] [blame] | 172 | {"Two",phosphor::led::Layout::On, 0, |
| 173 | 0, phosphor::led::Layout::On}, |
| 174 | {"Six",phosphor::led::Layout::On, 0, |
| 175 | 0, phosphor::led::Layout::On}, |
| 176 | {"Three",phosphor::led::Layout::On, 0, |
| 177 | 0, phosphor::led::Layout::On}, |
| 178 | {"Seven",phosphor::led::Layout::On, 0, |
| 179 | 0, phosphor::led::Layout::On}, |
Vishwanatha Subbanna | ed49073 | 2016-12-20 15:59:29 +0530 | [diff] [blame] | 180 | } |
| 181 | }, |
| 182 | }; |
| 183 | |
| 184 | static const std::map<std::string, |
| 185 | std::set<phosphor::led::Layout::LedAction>> |
| 186 | twoGroupsWithMultipleComonLEDInDifferentState = { |
| 187 | { "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet",{ |
Vishwanatha Subbanna | 4b000d8 | 2017-05-03 18:44:16 +0530 | [diff] [blame] | 188 | {"One",phosphor::led::Layout::On, 0, |
| 189 | 0, phosphor::led::Layout::On}, |
| 190 | {"Two",phosphor::led::Layout::Blink, 0, |
| 191 | 0, phosphor::led::Layout::On}, |
| 192 | {"Three",phosphor::led::Layout::Blink, 0, |
| 193 | 0, phosphor::led::Layout::On}, |
| 194 | {"Four",phosphor::led::Layout::On, 0, |
| 195 | 0, phosphor::led::Layout::On}, |
Vishwanatha Subbanna | ed49073 | 2016-12-20 15:59:29 +0530 | [diff] [blame] | 196 | } |
| 197 | }, |
| 198 | { "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet",{ |
Vishwanatha Subbanna | 4b000d8 | 2017-05-03 18:44:16 +0530 | [diff] [blame] | 199 | {"Two",phosphor::led::Layout::On, 0, |
| 200 | 0, phosphor::led::Layout::On}, |
| 201 | {"Three",phosphor::led::Layout::Blink, 0, |
| 202 | 0, phosphor::led::Layout::On}, |
| 203 | {"Five",phosphor::led::Layout::On, 0, |
| 204 | 0, phosphor::led::Layout::On}, |
| 205 | {"Six",phosphor::led::Layout::On, 0, |
| 206 | 0, phosphor::led::Layout::On}, |
Vishwanatha Subbanna | ed49073 | 2016-12-20 15:59:29 +0530 | [diff] [blame] | 207 | } |
| 208 | }, |
| 209 | }; |
Vishwanatha Subbanna | cd569d2 | 2017-05-03 12:46:14 +0530 | [diff] [blame] | 210 | |
| 211 | static const std::map<std::string, |
| 212 | std::set<phosphor::led::Layout::LedAction>> |
Vishwanatha Subbanna | 4b000d8 | 2017-05-03 18:44:16 +0530 | [diff] [blame] | 213 | twoGroupsWithMultipleComonLEDInDifferentStateDiffPriority = { |
Vishwanatha Subbanna | cd569d2 | 2017-05-03 12:46:14 +0530 | [diff] [blame] | 214 | { "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet",{ |
Vishwanatha Subbanna | 4b000d8 | 2017-05-03 18:44:16 +0530 | [diff] [blame] | 215 | {"One",phosphor::led::Layout::On, 0, |
| 216 | 0, phosphor::led::Layout::On}, |
| 217 | {"Two",phosphor::led::Layout::Blink, 0, |
| 218 | 0, phosphor::led::Layout::On}, |
| 219 | {"Three",phosphor::led::Layout::On, 0, |
| 220 | 0, phosphor::led::Layout::Blink}, |
| 221 | {"Four",phosphor::led::Layout::On, 0, |
| 222 | 0, phosphor::led::Layout::On}, |
| 223 | {"Ten",phosphor::led::Layout::Blink, 0, |
| 224 | 0, phosphor::led::Layout::Blink}, |
Vishwanatha Subbanna | cd569d2 | 2017-05-03 12:46:14 +0530 | [diff] [blame] | 225 | } |
| 226 | }, |
| 227 | { "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet",{ |
Vishwanatha Subbanna | 4b000d8 | 2017-05-03 18:44:16 +0530 | [diff] [blame] | 228 | {"Two",phosphor::led::Layout::On, 0, |
| 229 | 0, phosphor::led::Layout::On}, |
| 230 | {"Three",phosphor::led::Layout::On, 0, |
| 231 | 0, phosphor::led::Layout::Blink}, |
| 232 | {"Five",phosphor::led::Layout::On, 0, |
| 233 | 0, phosphor::led::Layout::On}, |
| 234 | {"Six",phosphor::led::Layout::On, 0, |
| 235 | 0, phosphor::led::Layout::On}, |
| 236 | {"Ten",phosphor::led::Layout::On, 0, |
| 237 | 0, phosphor::led::Layout::Blink}, |
Vishwanatha Subbanna | cd569d2 | 2017-05-03 12:46:14 +0530 | [diff] [blame] | 238 | } |
| 239 | }, |
| 240 | }; |