blob: 60d0363729d976613ade666ab15e0faeb664908e [file] [log] [blame]
Patrick Venture91ac8d32018-11-01 17:03:22 -07001#include "ledlayout.hpp"
2
Patrick Williams158b2c12022-03-17 05:57:44 -05003static 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 Subbannaed490732016-12-20 15:59:29 +05309};
10
Patrick Williams158b2c12022-03-17 05:57:44 -050011static 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 Subbanna4b000d82017-05-03 18:44:16 +053017};
18
Patrick Williams158b2c12022-03-17 05:57:44 -050019static 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 Subbannaed490732016-12-20 15:59:29 +053025};
26
Patrick Williams158b2c12022-03-17 05:57:44 -050027static 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 Subbannaed490732016-12-20 15:59:29 +053037};
38
Patrick Williams158b2c12022-03-17 05:57:44 -050039static 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 Subbannaed490732016-12-20 15:59:29 +053049};
50
Patrick Williams158b2c12022-03-17 05:57:44 -050051static 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 Subbannaed490732016-12-20 15:59:29 +053065};
66
Patrick Williams158b2c12022-03-17 05:57:44 -050067static 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 Subbannaed490732016-12-20 15:59:29 +053086};
87
Patrick Williams158b2c12022-03-17 05:57:44 -050088static 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 Subbannaed490732016-12-20 15:59:29 +0530107};
108
Patrick Williams158b2c12022-03-17 05:57:44 -0500109static const phosphor::led::GroupMap
Patrick Venture91ac8d32018-11-01 17:03:22 -0700110 twoGroupsWithOneComonLEDOnOneLEDBlinkPriority = {
111 {"/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet",
112 {
Patrick Williamsed80e882022-03-17 05:03:51 -0500113 {"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 Venture91ac8d32018-11-01 17:03:22 -0700119 }},
120 {"/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet",
121 {
Patrick Williamsed80e882022-03-17 05:03:51 -0500122 {"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 Venture91ac8d32018-11-01 17:03:22 -0700128 }},
Vishwanatha Subbanna4b000d82017-05-03 18:44:16 +0530129};
130
Patrick Williams158b2c12022-03-17 05:57:44 -0500131static 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 Subbannaed490732016-12-20 15:59:29 +0530150};
151
Patrick Williams158b2c12022-03-17 05:57:44 -0500152static 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 Subbannaed490732016-12-20 15:59:29 +0530173};
174
Patrick Williams158b2c12022-03-17 05:57:44 -0500175static const phosphor::led::GroupMap
Patrick Venture91ac8d32018-11-01 17:03:22 -0700176 twoGroupsWithMultipleComonLEDInDifferentState = {
177 {"/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet",
178 {
Patrick Williamsed80e882022-03-17 05:03:51 -0500179 {"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 Venture91ac8d32018-11-01 17:03:22 -0700187 }},
188 {"/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet",
189 {
Patrick Williamsed80e882022-03-17 05:03:51 -0500190 {"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 Venture91ac8d32018-11-01 17:03:22 -0700198 }},
Vishwanatha Subbannaed490732016-12-20 15:59:29 +0530199};
Vishwanatha Subbannacd569d22017-05-03 12:46:14 +0530200
Patrick Williams158b2c12022-03-17 05:57:44 -0500201static const phosphor::led::GroupMap
Patrick Venture91ac8d32018-11-01 17:03:22 -0700202 twoGroupsWithMultipleComonLEDInDifferentStateDiffPriority = {
203 {"/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet",
204 {
Patrick Williamsed80e882022-03-17 05:03:51 -0500205 {"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 Venture91ac8d32018-11-01 17:03:22 -0700215 }},
216 {"/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet",
217 {
Patrick Williamsed80e882022-03-17 05:03:51 -0500218 {"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 Venture91ac8d32018-11-01 17:03:22 -0700228 }},
Vishwanatha Subbannacd569d22017-05-03 12:46:14 +0530229};