1*7ba70c82SAlexander Hansen #include "grouplayout.hpp" 291ac8d3aSPatrick Venture #include "ledlayout.hpp" 391ac8d3aSPatrick Venture 4158b2c14SPatrick Williams static const phosphor::led::GroupMap singleLedOn = { 591ac8d3aSPatrick Venture {"/xyz/openbmc_project/ledmanager/groups/SingleLed", 6*7ba70c82SAlexander Hansen {0, 791ac8d3aSPatrick Venture { 8ed80e885SPatrick Williams {"One", phosphor::led::Layout::Action::On, 0, 0, 9ed80e885SPatrick Williams phosphor::led::Layout::Action::Blink}, 10*7ba70c82SAlexander Hansen }}}, 11ed490734SVishwanatha Subbanna }; 12ed490734SVishwanatha Subbanna 13158b2c14SPatrick Williams static const phosphor::led::GroupMap singleLedBlink = { 1491ac8d3aSPatrick Venture {"/xyz/openbmc_project/ledmanager/groups/SingleLed", 15*7ba70c82SAlexander Hansen {0, 1691ac8d3aSPatrick Venture { 17ed80e885SPatrick Williams {"One", phosphor::led::Layout::Action::Blink, 0, 0, 18ed80e885SPatrick Williams phosphor::led::Layout::Action::Blink}, 19*7ba70c82SAlexander Hansen }}}, 204b000d8dSVishwanatha Subbanna }; 214b000d8dSVishwanatha Subbanna 22158b2c14SPatrick Williams static const phosphor::led::GroupMap singleLedBlinkOverrideOn = { 2391ac8d3aSPatrick Venture {"/xyz/openbmc_project/ledmanager/groups/SingleLed", 24*7ba70c82SAlexander Hansen {0, 2591ac8d3aSPatrick Venture { 26ed80e885SPatrick Williams {"One", phosphor::led::Layout::Action::Blink, 0, 0, 27ed80e885SPatrick Williams phosphor::led::Layout::Action::On}, 28*7ba70c82SAlexander Hansen }}}, 29ed490734SVishwanatha Subbanna }; 30ed490734SVishwanatha Subbanna 31158b2c14SPatrick Williams static const phosphor::led::GroupMap multipleLedsOn = { 3291ac8d3aSPatrick Venture {"/xyz/openbmc_project/ledmanager/groups/MultipleLeds", 33*7ba70c82SAlexander Hansen {0, 3491ac8d3aSPatrick Venture { 35ed80e885SPatrick Williams {"One", phosphor::led::Layout::Action::On, 0, 0, 36ed80e885SPatrick Williams phosphor::led::Layout::Action::On}, 37ed80e885SPatrick Williams {"Two", phosphor::led::Layout::Action::On, 0, 0, 38ed80e885SPatrick Williams phosphor::led::Layout::Action::On}, 39ed80e885SPatrick Williams {"Three", phosphor::led::Layout::Action::On, 0, 0, 40ed80e885SPatrick Williams phosphor::led::Layout::Action::On}, 41*7ba70c82SAlexander Hansen }}}, 4291ac8d3aSPatrick Venture }; 4391ac8d3aSPatrick Venture 44158b2c14SPatrick Williams static const phosphor::led::GroupMap multipleLedsBlink = { 4591ac8d3aSPatrick Venture {"/xyz/openbmc_project/ledmanager/groups/MultipleLeds", 46*7ba70c82SAlexander Hansen {0, 4791ac8d3aSPatrick Venture { 48ed80e885SPatrick Williams {"One", phosphor::led::Layout::Action::Blink, 0, 0, 49ed80e885SPatrick Williams phosphor::led::Layout::Action::Blink}, 50ed80e885SPatrick Williams {"Two", phosphor::led::Layout::Action::Blink, 0, 0, 51ed80e885SPatrick Williams phosphor::led::Layout::Action::Blink}, 52ed80e885SPatrick Williams {"Three", phosphor::led::Layout::Action::Blink, 0, 0, 53ed80e885SPatrick Williams phosphor::led::Layout::Action::Blink}, 54*7ba70c82SAlexander Hansen }}}, 5591ac8d3aSPatrick Venture }; 5691ac8d3aSPatrick Venture 57158b2c14SPatrick Williams static const phosphor::led::GroupMap multipleLedsOnAndBlink = { 5891ac8d3aSPatrick Venture {"/xyz/openbmc_project/ledmanager/groups/MultipleLedsMix", 59*7ba70c82SAlexander Hansen {0, 6091ac8d3aSPatrick Venture { 61ed80e885SPatrick Williams {"One", phosphor::led::Layout::Action::Blink, 0, 0, 62ed80e885SPatrick Williams phosphor::led::Layout::Action::Blink}, 63ed80e885SPatrick Williams {"Two", phosphor::led::Layout::Action::On, 0, 0, 64ed80e885SPatrick Williams phosphor::led::Layout::Action::Blink}, 65ed80e885SPatrick Williams {"Three", phosphor::led::Layout::Action::Blink, 0, 0, 66ed80e885SPatrick Williams phosphor::led::Layout::Action::On}, 67ed80e885SPatrick Williams {"Four", phosphor::led::Layout::Action::On, 0, 0, 68ed80e885SPatrick Williams phosphor::led::Layout::Action::Blink}, 69ed80e885SPatrick Williams {"Five", phosphor::led::Layout::Action::On, 0, 0, 70ed80e885SPatrick Williams phosphor::led::Layout::Action::Blink}, 71*7ba70c82SAlexander Hansen }}}, 72ed490734SVishwanatha Subbanna }; 73ed490734SVishwanatha Subbanna 74158b2c14SPatrick Williams static const phosphor::led::GroupMap twoGroupsWithDistinctLEDsOn = { 7591ac8d3aSPatrick Venture {"/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet", 76*7ba70c82SAlexander Hansen {0, 7791ac8d3aSPatrick Venture { 78ed80e885SPatrick Williams {"One", phosphor::led::Layout::Action::On, 0, 0, 79ed80e885SPatrick Williams phosphor::led::Layout::Action::Blink}, 80ed80e885SPatrick Williams {"Two", phosphor::led::Layout::Action::On, 0, 0, 81ed80e885SPatrick Williams phosphor::led::Layout::Action::On}, 82ed80e885SPatrick Williams {"Three", phosphor::led::Layout::Action::On, 0, 0, 83ed80e885SPatrick Williams phosphor::led::Layout::Action::Blink}, 84*7ba70c82SAlexander Hansen }}}, 8591ac8d3aSPatrick Venture {"/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet", 86*7ba70c82SAlexander Hansen {0, 8791ac8d3aSPatrick Venture { 88ed80e885SPatrick Williams {"Four", phosphor::led::Layout::Action::On, 0, 0, 89ed80e885SPatrick Williams phosphor::led::Layout::Action::Blink}, 90ed80e885SPatrick Williams {"Five", phosphor::led::Layout::Action::On, 0, 0, 91ed80e885SPatrick Williams phosphor::led::Layout::Action::Blink}, 92ed80e885SPatrick Williams {"Six", phosphor::led::Layout::Action::On, 0, 0, 93ed80e885SPatrick Williams phosphor::led::Layout::Action::On}, 94*7ba70c82SAlexander Hansen }}}, 95ed490734SVishwanatha Subbanna }; 96ed490734SVishwanatha Subbanna 97158b2c14SPatrick Williams static const phosphor::led::GroupMap twoGroupsWithOneComonLEDOn = { 9891ac8d3aSPatrick Venture {"/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet", 99*7ba70c82SAlexander Hansen {0, 10091ac8d3aSPatrick Venture { 101ed80e885SPatrick Williams {"One", phosphor::led::Layout::Action::On, 0, 0, 102ed80e885SPatrick Williams phosphor::led::Layout::Action::On}, 103ed80e885SPatrick Williams {"Two", phosphor::led::Layout::Action::On, 0, 0, 104ed80e885SPatrick Williams phosphor::led::Layout::Action::On}, 105ed80e885SPatrick Williams {"Three", phosphor::led::Layout::Action::On, 0, 0, 106ed80e885SPatrick Williams phosphor::led::Layout::Action::On}, 107*7ba70c82SAlexander Hansen }}}, 10891ac8d3aSPatrick Venture {"/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet", 109*7ba70c82SAlexander Hansen {0, 11091ac8d3aSPatrick Venture { 111ed80e885SPatrick Williams {"Four", phosphor::led::Layout::Action::On, 0, 0, 112ed80e885SPatrick Williams phosphor::led::Layout::Action::On}, 113ed80e885SPatrick Williams {"Three", phosphor::led::Layout::Action::On, 0, 0, 114ed80e885SPatrick Williams phosphor::led::Layout::Action::On}, 115ed80e885SPatrick Williams {"Six", phosphor::led::Layout::Action::On, 0, 0, 116ed80e885SPatrick Williams phosphor::led::Layout::Action::On}, 117*7ba70c82SAlexander Hansen }}}, 1184b000d8dSVishwanatha Subbanna }; 1194b000d8dSVishwanatha Subbanna 120158b2c14SPatrick Williams static const phosphor::led::GroupMap 12191ac8d3aSPatrick Venture twoGroupsWithOneComonLEDOnOneLEDBlinkPriority = { 12291ac8d3aSPatrick Venture {"/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet", 123*7ba70c82SAlexander Hansen {0, 12491ac8d3aSPatrick Venture { 125ed80e885SPatrick Williams {"One", phosphor::led::Layout::Action::On, 0, 0, 126ed80e885SPatrick Williams phosphor::led::Layout::Action::On}, 127ed80e885SPatrick Williams {"Two", phosphor::led::Layout::Action::On, 0, 0, 128ed80e885SPatrick Williams phosphor::led::Layout::Action::On}, 129ed80e885SPatrick Williams {"Three", phosphor::led::Layout::Action::Blink, 0, 0, 130ed80e885SPatrick Williams phosphor::led::Layout::Action::Blink}, 131*7ba70c82SAlexander Hansen }}}, 13291ac8d3aSPatrick Venture {"/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet", 133*7ba70c82SAlexander Hansen {0, 13491ac8d3aSPatrick Venture { 135ed80e885SPatrick Williams {"Four", phosphor::led::Layout::Action::On, 0, 0, 136ed80e885SPatrick Williams phosphor::led::Layout::Action::On}, 137ed80e885SPatrick Williams {"Three", phosphor::led::Layout::Action::On, 0, 0, 138ed80e885SPatrick Williams phosphor::led::Layout::Action::Blink}, 139ed80e885SPatrick Williams {"Six", phosphor::led::Layout::Action::On, 0, 0, 140ed80e885SPatrick Williams phosphor::led::Layout::Action::On}, 141*7ba70c82SAlexander Hansen }}}, 142ed490734SVishwanatha Subbanna }; 143ed490734SVishwanatha Subbanna 144158b2c14SPatrick Williams static const phosphor::led::GroupMap twoGroupsWithOneComonLEDOnPriority = { 14591ac8d3aSPatrick Venture {"/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet", 146*7ba70c82SAlexander Hansen {0, 14791ac8d3aSPatrick Venture { 148ed80e885SPatrick Williams {"One", phosphor::led::Layout::Action::On, 0, 0, 149ed80e885SPatrick Williams phosphor::led::Layout::Action::On}, 150ed80e885SPatrick Williams {"Two", phosphor::led::Layout::Action::On, 0, 0, 151ed80e885SPatrick Williams phosphor::led::Layout::Action::On}, 152ed80e885SPatrick Williams {"Three", phosphor::led::Layout::Action::Blink, 0, 0, 153ed80e885SPatrick Williams phosphor::led::Layout::Action::On}, 154*7ba70c82SAlexander Hansen }}}, 15591ac8d3aSPatrick Venture {"/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet", 156*7ba70c82SAlexander Hansen {0, 15791ac8d3aSPatrick Venture { 158ed80e885SPatrick Williams {"Four", phosphor::led::Layout::Action::On, 0, 0, 159ed80e885SPatrick Williams phosphor::led::Layout::Action::On}, 160ed80e885SPatrick Williams {"Three", phosphor::led::Layout::Action::On, 0, 0, 161ed80e885SPatrick Williams phosphor::led::Layout::Action::On}, 162ed80e885SPatrick Williams {"Six", phosphor::led::Layout::Action::On, 0, 0, 163ed80e885SPatrick Williams phosphor::led::Layout::Action::On}, 164*7ba70c82SAlexander Hansen }}}, 16591ac8d3aSPatrick Venture }; 16691ac8d3aSPatrick Venture 167158b2c14SPatrick Williams static const phosphor::led::GroupMap twoGroupsWithMultiplComonLEDOn = { 16891ac8d3aSPatrick Venture {"/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet", 169*7ba70c82SAlexander Hansen {0, 17091ac8d3aSPatrick Venture { 171ed80e885SPatrick Williams {"One", phosphor::led::Layout::Action::On, 0, 0, 172ed80e885SPatrick Williams phosphor::led::Layout::Action::On}, 173ed80e885SPatrick Williams {"Two", phosphor::led::Layout::Action::On, 0, 0, 174ed80e885SPatrick Williams phosphor::led::Layout::Action::On}, 175ed80e885SPatrick Williams {"Three", phosphor::led::Layout::Action::On, 0, 0, 176ed80e885SPatrick Williams phosphor::led::Layout::Action::On}, 177*7ba70c82SAlexander Hansen }}}, 17891ac8d3aSPatrick Venture {"/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet", 179*7ba70c82SAlexander Hansen {0, 18091ac8d3aSPatrick Venture { 181ed80e885SPatrick Williams {"Two", phosphor::led::Layout::Action::On, 0, 0, 182ed80e885SPatrick Williams phosphor::led::Layout::Action::On}, 183ed80e885SPatrick Williams {"Six", phosphor::led::Layout::Action::On, 0, 0, 184ed80e885SPatrick Williams phosphor::led::Layout::Action::On}, 185ed80e885SPatrick Williams {"Three", phosphor::led::Layout::Action::On, 0, 0, 186ed80e885SPatrick Williams phosphor::led::Layout::Action::On}, 187ed80e885SPatrick Williams {"Seven", phosphor::led::Layout::Action::On, 0, 0, 188ed80e885SPatrick Williams phosphor::led::Layout::Action::On}, 189*7ba70c82SAlexander Hansen }}}, 190ed490734SVishwanatha Subbanna }; 191ed490734SVishwanatha Subbanna 192158b2c14SPatrick Williams static const phosphor::led::GroupMap 193ed490734SVishwanatha Subbanna twoGroupsWithMultipleComonLEDInDifferentState = { 19491ac8d3aSPatrick Venture {"/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet", 195*7ba70c82SAlexander Hansen {0, 19691ac8d3aSPatrick Venture { 197ed80e885SPatrick Williams {"One", phosphor::led::Layout::Action::On, 0, 0, 198ed80e885SPatrick Williams phosphor::led::Layout::Action::On}, 199ed80e885SPatrick Williams {"Two", phosphor::led::Layout::Action::Blink, 0, 0, 200ed80e885SPatrick Williams phosphor::led::Layout::Action::On}, 201ed80e885SPatrick Williams {"Three", phosphor::led::Layout::Action::Blink, 0, 0, 202ed80e885SPatrick Williams phosphor::led::Layout::Action::On}, 203ed80e885SPatrick Williams {"Four", phosphor::led::Layout::Action::On, 0, 0, 204ed80e885SPatrick Williams phosphor::led::Layout::Action::On}, 205*7ba70c82SAlexander Hansen }}}, 20691ac8d3aSPatrick Venture {"/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet", 207*7ba70c82SAlexander Hansen {0, 20891ac8d3aSPatrick Venture { 209ed80e885SPatrick Williams {"Two", phosphor::led::Layout::Action::On, 0, 0, 210ed80e885SPatrick Williams phosphor::led::Layout::Action::On}, 211ed80e885SPatrick Williams {"Three", phosphor::led::Layout::Action::Blink, 0, 0, 212ed80e885SPatrick Williams phosphor::led::Layout::Action::On}, 213ed80e885SPatrick Williams {"Five", phosphor::led::Layout::Action::On, 0, 0, 214ed80e885SPatrick Williams phosphor::led::Layout::Action::On}, 215ed80e885SPatrick Williams {"Six", phosphor::led::Layout::Action::On, 0, 0, 216ed80e885SPatrick Williams phosphor::led::Layout::Action::On}, 217*7ba70c82SAlexander Hansen }}}, 218ed490734SVishwanatha Subbanna }; 219cd569d24SVishwanatha Subbanna 220158b2c14SPatrick Williams static const phosphor::led::GroupMap 2214b000d8dSVishwanatha Subbanna twoGroupsWithMultipleComonLEDInDifferentStateDiffPriority = { 22291ac8d3aSPatrick Venture {"/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet", 223*7ba70c82SAlexander Hansen {0, 22491ac8d3aSPatrick Venture { 225ed80e885SPatrick Williams {"One", phosphor::led::Layout::Action::On, 0, 0, 226ed80e885SPatrick Williams phosphor::led::Layout::Action::On}, 227ed80e885SPatrick Williams {"Two", phosphor::led::Layout::Action::Blink, 0, 0, 228ed80e885SPatrick Williams phosphor::led::Layout::Action::On}, 229ed80e885SPatrick Williams {"Three", phosphor::led::Layout::Action::On, 0, 0, 230ed80e885SPatrick Williams phosphor::led::Layout::Action::Blink}, 231ed80e885SPatrick Williams {"Four", phosphor::led::Layout::Action::On, 0, 0, 232ed80e885SPatrick Williams phosphor::led::Layout::Action::On}, 233ed80e885SPatrick Williams {"Ten", phosphor::led::Layout::Action::Blink, 0, 0, 234ed80e885SPatrick Williams phosphor::led::Layout::Action::Blink}, 235*7ba70c82SAlexander Hansen }}}, 23691ac8d3aSPatrick Venture {"/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet", 237*7ba70c82SAlexander Hansen {0, 23891ac8d3aSPatrick Venture { 239ed80e885SPatrick Williams {"Two", phosphor::led::Layout::Action::On, 0, 0, 240ed80e885SPatrick Williams phosphor::led::Layout::Action::On}, 241ed80e885SPatrick Williams {"Three", phosphor::led::Layout::Action::On, 0, 0, 242ed80e885SPatrick Williams phosphor::led::Layout::Action::Blink}, 243ed80e885SPatrick Williams {"Five", phosphor::led::Layout::Action::On, 0, 0, 244ed80e885SPatrick Williams phosphor::led::Layout::Action::On}, 245ed80e885SPatrick Williams {"Six", phosphor::led::Layout::Action::On, 0, 0, 246ed80e885SPatrick Williams phosphor::led::Layout::Action::On}, 247ed80e885SPatrick Williams {"Ten", phosphor::led::Layout::Action::On, 0, 0, 248ed80e885SPatrick Williams phosphor::led::Layout::Action::Blink}, 249*7ba70c82SAlexander Hansen }}}, 250cd569d24SVishwanatha Subbanna }; 251