blob: e18ffefe722c4c8c2c59f8da3ebf565c4904961b [file] [log] [blame]
Manojkiran Eda2746fb42021-08-29 10:59:27 +05301// This is a sample JSON configuration file for BIOS enumeration type
Tom Joseph52552ef2019-06-20 09:50:15 +05302{
3 "entries":[
4 {
5 "attribute_name" : "HMCManagedState",
6 "possible_values" : [ "On", "Off" ],
7 "default_values" : [ "On" ],
Manojkiran Eda2746fb42021-08-29 10:59:27 +05308 // This BIOS attribute has a D-Bus property as backend.
Tom Joseph52552ef2019-06-20 09:50:15 +05309 "dbus":
10 {
Carol Wangf7d1a362019-11-18 15:34:14 +080011 "object_path" : "/xyz/abc/def",
Tom Joseph52552ef2019-06-20 09:50:15 +053012 "interface" : "xyz.openbmc_project.HMCManaged.State",
13 "property_name" : "State",
14 "property_type" : "string",
Manojkiran Eda2746fb42021-08-29 10:59:27 +053015 // Number of property_values should match to the number of possible values.
16 // Each is entry in the possible_values is mapped to entry in property_values.
Tom Joseph52552ef2019-06-20 09:50:15 +053017 "property_values" : ["xyz.openbmc_project.State.On", "xyz.openbmc_project.State.Off"]
18 }
19 },
20 {
21 "attribute_name" : "FWBootSide",
22 "possible_values" : [ "Perm", "Temp" ],
23 "default_values" : [ "Perm" ],
24 "dbus":
25 {
26 "object_path" : "/xyz/abc/def",
27 "interface" : "xyz.openbmc.FWBoot.Side",
28 "property_name" : "Side",
29 "property_type" : "bool",
30 "property_values" : [true, false]
31 }
32 },
33 {
34 "attribute_name" : "InbandCodeUpdate",
35 "possible_values" : [ "Allowed", "NotAllowed" ],
36 "default_values" : [ "Allowed" ],
37 "dbus":
38 {
39 "object_path" : "/xyz/abc/def",
40 "interface" : "xyz.openbmc.InBandCodeUpdate",
41 "property_name" : "Policy",
42 "property_type" : "uint8_t",
43 "property_values" : [0, 1]
44 }
45 },
46 {
Manojkiran Eda2746fb42021-08-29 10:59:27 +053047 // This is an example of BIOS Enumeration Read only attribute
Tom Joseph52552ef2019-06-20 09:50:15 +053048 "attribute_name" : "CodeUpdatePolicy",
49 "possible_values" : [ "Concurrent", "Disruptive" ],
50 "default_values" : [ "Concurrent" ]
51 }
52 ]
53}