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