blob: 8c58506110f25dc5a7626504ce2b374be57813fb [file] [log] [blame]
Alexander Hansen7ba70c82024-07-23 13:46:25 +02001#include "grouplayout.hpp"
Patrick Venture91ac8d32018-11-01 17:03:22 -07002#include "ledlayout.hpp"
3
Patrick Williams158b2c12022-03-17 05:57:44 -05004static const phosphor::led::GroupMap singleLedOn = {
5 {"/xyz/openbmc_project/ledmanager/groups/SingleLed",
Alexander Hansen7ba70c82024-07-23 13:46:25 +02006 {0,
7 {
8 {"One", phosphor::led::Layout::Action::On, 0, 0,
9 phosphor::led::Layout::Action::Blink},
10 }}},
Vishwanatha Subbannaed490732016-12-20 15:59:29 +053011};
12
Patrick Williams158b2c12022-03-17 05:57:44 -050013static const phosphor::led::GroupMap singleLedBlink = {
14 {"/xyz/openbmc_project/ledmanager/groups/SingleLed",
Alexander Hansen7ba70c82024-07-23 13:46:25 +020015 {0,
16 {
17 {"One", phosphor::led::Layout::Action::Blink, 0, 0,
18 phosphor::led::Layout::Action::Blink},
19 }}},
Vishwanatha Subbanna4b000d82017-05-03 18:44:16 +053020};
21
Patrick Williams158b2c12022-03-17 05:57:44 -050022static const phosphor::led::GroupMap singleLedBlinkOverrideOn = {
23 {"/xyz/openbmc_project/ledmanager/groups/SingleLed",
Alexander Hansen7ba70c82024-07-23 13:46:25 +020024 {0,
25 {
26 {"One", phosphor::led::Layout::Action::Blink, 0, 0,
27 phosphor::led::Layout::Action::On},
28 }}},
Vishwanatha Subbannaed490732016-12-20 15:59:29 +053029};
30
Patrick Williams158b2c12022-03-17 05:57:44 -050031static const phosphor::led::GroupMap multipleLedsOn = {
32 {"/xyz/openbmc_project/ledmanager/groups/MultipleLeds",
Alexander Hansen7ba70c82024-07-23 13:46:25 +020033 {0,
34 {
35 {"One", phosphor::led::Layout::Action::On, 0, 0,
36 phosphor::led::Layout::Action::On},
37 {"Two", phosphor::led::Layout::Action::On, 0, 0,
38 phosphor::led::Layout::Action::On},
39 {"Three", phosphor::led::Layout::Action::On, 0, 0,
40 phosphor::led::Layout::Action::On},
41 }}},
Vishwanatha Subbannaed490732016-12-20 15:59:29 +053042};
43
Patrick Williams158b2c12022-03-17 05:57:44 -050044static const phosphor::led::GroupMap multipleLedsBlink = {
45 {"/xyz/openbmc_project/ledmanager/groups/MultipleLeds",
Alexander Hansen7ba70c82024-07-23 13:46:25 +020046 {0,
47 {
48 {"One", phosphor::led::Layout::Action::Blink, 0, 0,
49 phosphor::led::Layout::Action::Blink},
50 {"Two", phosphor::led::Layout::Action::Blink, 0, 0,
51 phosphor::led::Layout::Action::Blink},
52 {"Three", phosphor::led::Layout::Action::Blink, 0, 0,
53 phosphor::led::Layout::Action::Blink},
54 }}},
Vishwanatha Subbannaed490732016-12-20 15:59:29 +053055};
56
Patrick Williams158b2c12022-03-17 05:57:44 -050057static const phosphor::led::GroupMap multipleLedsOnAndBlink = {
58 {"/xyz/openbmc_project/ledmanager/groups/MultipleLedsMix",
Alexander Hansen7ba70c82024-07-23 13:46:25 +020059 {0,
60 {
61 {"One", phosphor::led::Layout::Action::Blink, 0, 0,
62 phosphor::led::Layout::Action::Blink},
63 {"Two", phosphor::led::Layout::Action::On, 0, 0,
64 phosphor::led::Layout::Action::Blink},
65 {"Three", phosphor::led::Layout::Action::Blink, 0, 0,
66 phosphor::led::Layout::Action::On},
67 {"Four", phosphor::led::Layout::Action::On, 0, 0,
68 phosphor::led::Layout::Action::Blink},
69 {"Five", phosphor::led::Layout::Action::On, 0, 0,
70 phosphor::led::Layout::Action::Blink},
71 }}},
Vishwanatha Subbannaed490732016-12-20 15:59:29 +053072};
73
Patrick Williams158b2c12022-03-17 05:57:44 -050074static const phosphor::led::GroupMap twoGroupsWithDistinctLEDsOn = {
75 {"/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet",
Alexander Hansen7ba70c82024-07-23 13:46:25 +020076 {0,
77 {
78 {"One", phosphor::led::Layout::Action::On, 0, 0,
79 phosphor::led::Layout::Action::Blink},
80 {"Two", phosphor::led::Layout::Action::On, 0, 0,
81 phosphor::led::Layout::Action::On},
82 {"Three", phosphor::led::Layout::Action::On, 0, 0,
83 phosphor::led::Layout::Action::Blink},
84 }}},
Patrick Williams158b2c12022-03-17 05:57:44 -050085 {"/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet",
Alexander Hansen7ba70c82024-07-23 13:46:25 +020086 {0,
87 {
88 {"Four", phosphor::led::Layout::Action::On, 0, 0,
89 phosphor::led::Layout::Action::Blink},
90 {"Five", phosphor::led::Layout::Action::On, 0, 0,
91 phosphor::led::Layout::Action::Blink},
92 {"Six", phosphor::led::Layout::Action::On, 0, 0,
93 phosphor::led::Layout::Action::On},
94 }}},
Vishwanatha Subbannaed490732016-12-20 15:59:29 +053095};
96
Patrick Williams158b2c12022-03-17 05:57:44 -050097static const phosphor::led::GroupMap twoGroupsWithOneComonLEDOn = {
98 {"/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet",
Alexander Hansen7ba70c82024-07-23 13:46:25 +020099 {0,
100 {
101 {"One", phosphor::led::Layout::Action::On, 0, 0,
102 phosphor::led::Layout::Action::On},
103 {"Two", phosphor::led::Layout::Action::On, 0, 0,
104 phosphor::led::Layout::Action::On},
105 {"Three", phosphor::led::Layout::Action::On, 0, 0,
106 phosphor::led::Layout::Action::On},
107 }}},
Patrick Williams158b2c12022-03-17 05:57:44 -0500108 {"/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet",
Alexander Hansen7ba70c82024-07-23 13:46:25 +0200109 {0,
110 {
111 {"Four", phosphor::led::Layout::Action::On, 0, 0,
112 phosphor::led::Layout::Action::On},
113 {"Three", phosphor::led::Layout::Action::On, 0, 0,
114 phosphor::led::Layout::Action::On},
115 {"Six", phosphor::led::Layout::Action::On, 0, 0,
116 phosphor::led::Layout::Action::On},
117 }}},
Vishwanatha Subbannaed490732016-12-20 15:59:29 +0530118};
119
Patrick Williams158b2c12022-03-17 05:57:44 -0500120static const phosphor::led::GroupMap
Patrick Venture91ac8d32018-11-01 17:03:22 -0700121 twoGroupsWithOneComonLEDOnOneLEDBlinkPriority = {
122 {"/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet",
Alexander Hansen7ba70c82024-07-23 13:46:25 +0200123 {0,
124 {
125 {"One", phosphor::led::Layout::Action::On, 0, 0,
126 phosphor::led::Layout::Action::On},
127 {"Two", phosphor::led::Layout::Action::On, 0, 0,
128 phosphor::led::Layout::Action::On},
129 {"Three", phosphor::led::Layout::Action::Blink, 0, 0,
130 phosphor::led::Layout::Action::Blink},
131 }}},
Patrick Venture91ac8d32018-11-01 17:03:22 -0700132 {"/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet",
Alexander Hansen7ba70c82024-07-23 13:46:25 +0200133 {0,
134 {
135 {"Four", phosphor::led::Layout::Action::On, 0, 0,
136 phosphor::led::Layout::Action::On},
137 {"Three", phosphor::led::Layout::Action::On, 0, 0,
138 phosphor::led::Layout::Action::Blink},
139 {"Six", phosphor::led::Layout::Action::On, 0, 0,
140 phosphor::led::Layout::Action::On},
141 }}},
Vishwanatha Subbanna4b000d82017-05-03 18:44:16 +0530142};
143
Patrick Williams158b2c12022-03-17 05:57:44 -0500144static const phosphor::led::GroupMap twoGroupsWithOneComonLEDOnPriority = {
145 {"/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet",
Alexander Hansen7ba70c82024-07-23 13:46:25 +0200146 {0,
147 {
148 {"One", phosphor::led::Layout::Action::On, 0, 0,
149 phosphor::led::Layout::Action::On},
150 {"Two", phosphor::led::Layout::Action::On, 0, 0,
151 phosphor::led::Layout::Action::On},
152 {"Three", phosphor::led::Layout::Action::Blink, 0, 0,
153 phosphor::led::Layout::Action::On},
154 }}},
Patrick Williams158b2c12022-03-17 05:57:44 -0500155 {"/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet",
Alexander Hansen7ba70c82024-07-23 13:46:25 +0200156 {0,
157 {
158 {"Four", phosphor::led::Layout::Action::On, 0, 0,
159 phosphor::led::Layout::Action::On},
160 {"Three", phosphor::led::Layout::Action::On, 0, 0,
161 phosphor::led::Layout::Action::On},
162 {"Six", phosphor::led::Layout::Action::On, 0, 0,
163 phosphor::led::Layout::Action::On},
164 }}},
Vishwanatha Subbannaed490732016-12-20 15:59:29 +0530165};
166
Patrick Williams158b2c12022-03-17 05:57:44 -0500167static const phosphor::led::GroupMap twoGroupsWithMultiplComonLEDOn = {
168 {"/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet",
Alexander Hansen7ba70c82024-07-23 13:46:25 +0200169 {0,
170 {
171 {"One", phosphor::led::Layout::Action::On, 0, 0,
172 phosphor::led::Layout::Action::On},
173 {"Two", phosphor::led::Layout::Action::On, 0, 0,
174 phosphor::led::Layout::Action::On},
175 {"Three", phosphor::led::Layout::Action::On, 0, 0,
176 phosphor::led::Layout::Action::On},
177 }}},
Patrick Williams158b2c12022-03-17 05:57:44 -0500178 {"/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet",
Alexander Hansen7ba70c82024-07-23 13:46:25 +0200179 {0,
180 {
181 {"Two", phosphor::led::Layout::Action::On, 0, 0,
182 phosphor::led::Layout::Action::On},
183 {"Six", phosphor::led::Layout::Action::On, 0, 0,
184 phosphor::led::Layout::Action::On},
185 {"Three", phosphor::led::Layout::Action::On, 0, 0,
186 phosphor::led::Layout::Action::On},
187 {"Seven", phosphor::led::Layout::Action::On, 0, 0,
188 phosphor::led::Layout::Action::On},
189 }}},
Vishwanatha Subbannaed490732016-12-20 15:59:29 +0530190};
191
Patrick Williams158b2c12022-03-17 05:57:44 -0500192static const phosphor::led::GroupMap
Patrick Venture91ac8d32018-11-01 17:03:22 -0700193 twoGroupsWithMultipleComonLEDInDifferentState = {
194 {"/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet",
Alexander Hansen7ba70c82024-07-23 13:46:25 +0200195 {0,
196 {
197 {"One", phosphor::led::Layout::Action::On, 0, 0,
198 phosphor::led::Layout::Action::On},
199 {"Two", phosphor::led::Layout::Action::Blink, 0, 0,
200 phosphor::led::Layout::Action::On},
201 {"Three", phosphor::led::Layout::Action::Blink, 0, 0,
202 phosphor::led::Layout::Action::On},
203 {"Four", phosphor::led::Layout::Action::On, 0, 0,
204 phosphor::led::Layout::Action::On},
205 }}},
Patrick Venture91ac8d32018-11-01 17:03:22 -0700206 {"/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet",
Alexander Hansen7ba70c82024-07-23 13:46:25 +0200207 {0,
208 {
209 {"Two", phosphor::led::Layout::Action::On, 0, 0,
210 phosphor::led::Layout::Action::On},
211 {"Three", phosphor::led::Layout::Action::Blink, 0, 0,
212 phosphor::led::Layout::Action::On},
213 {"Five", phosphor::led::Layout::Action::On, 0, 0,
214 phosphor::led::Layout::Action::On},
215 {"Six", phosphor::led::Layout::Action::On, 0, 0,
216 phosphor::led::Layout::Action::On},
217 }}},
Vishwanatha Subbannaed490732016-12-20 15:59:29 +0530218};
Vishwanatha Subbannacd569d22017-05-03 12:46:14 +0530219
Patrick Williams158b2c12022-03-17 05:57:44 -0500220static const phosphor::led::GroupMap
Patrick Venture91ac8d32018-11-01 17:03:22 -0700221 twoGroupsWithMultipleComonLEDInDifferentStateDiffPriority = {
222 {"/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet",
Alexander Hansen7ba70c82024-07-23 13:46:25 +0200223 {0,
224 {
225 {"One", phosphor::led::Layout::Action::On, 0, 0,
226 phosphor::led::Layout::Action::On},
227 {"Two", phosphor::led::Layout::Action::Blink, 0, 0,
228 phosphor::led::Layout::Action::On},
229 {"Three", phosphor::led::Layout::Action::On, 0, 0,
230 phosphor::led::Layout::Action::Blink},
231 {"Four", phosphor::led::Layout::Action::On, 0, 0,
232 phosphor::led::Layout::Action::On},
233 {"Ten", phosphor::led::Layout::Action::Blink, 0, 0,
234 phosphor::led::Layout::Action::Blink},
235 }}},
Patrick Venture91ac8d32018-11-01 17:03:22 -0700236 {"/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet",
Alexander Hansen7ba70c82024-07-23 13:46:25 +0200237 {0,
238 {
239 {"Two", phosphor::led::Layout::Action::On, 0, 0,
240 phosphor::led::Layout::Action::On},
241 {"Three", phosphor::led::Layout::Action::On, 0, 0,
242 phosphor::led::Layout::Action::Blink},
243 {"Five", phosphor::led::Layout::Action::On, 0, 0,
244 phosphor::led::Layout::Action::On},
245 {"Six", phosphor::led::Layout::Action::On, 0, 0,
246 phosphor::led::Layout::Action::On},
247 {"Ten", phosphor::led::Layout::Action::On, 0, 0,
248 phosphor::led::Layout::Action::Blink},
249 }}},
Vishwanatha Subbannacd569d22017-05-03 12:46:14 +0530250};