Manojkiran Eda | 2746fb4 | 2021-08-29 10:59:27 +0530 | [diff] [blame] | 1 | // This is a sample JSON configuration file for BIOS enumeration type |
Tom Joseph | 52552ef | 2019-06-20 09:50:15 +0530 | [diff] [blame] | 2 | { |
Patrick Williams | 3618064 | 2022-12-08 06:13:03 -0600 | [diff] [blame] | 3 | "entries": [ |
| 4 | { |
| 5 | "attribute_name": "HMCManagedState", |
| 6 | "possible_values": ["On", "Off"], |
| 7 | "default_values": ["On"], |
| 8 | // This BIOS attribute has a D-Bus property as backend. |
| 9 | "dbus": { |
| 10 | "object_path": "/xyz/abc/def", |
| 11 | "interface": "xyz.openbmc_project.HMCManaged.State", |
| 12 | "property_name": "State", |
| 13 | "property_type": "string", |
| 14 | // Number of property_values should match to the number of possible values. |
| 15 | // Each is entry in the possible_values is mapped to entry in property_values. |
| 16 | "property_values": [ |
| 17 | "xyz.openbmc_project.State.On", |
| 18 | "xyz.openbmc_project.State.Off" |
| 19 | ] |
Tom Joseph | 52552ef | 2019-06-20 09:50:15 +0530 | [diff] [blame] | 20 | } |
Patrick Williams | 3618064 | 2022-12-08 06:13:03 -0600 | [diff] [blame] | 21 | }, |
| 22 | { |
| 23 | "attribute_name": "FWBootSide", |
| 24 | "possible_values": ["Perm", "Temp"], |
| 25 | "default_values": ["Perm"], |
| 26 | "dbus": { |
| 27 | "object_path": "/xyz/abc/def", |
| 28 | "interface": "xyz.openbmc.FWBoot.Side", |
| 29 | "property_name": "Side", |
| 30 | "property_type": "bool", |
| 31 | "property_values": [true, false] |
Tom Joseph | 52552ef | 2019-06-20 09:50:15 +0530 | [diff] [blame] | 32 | } |
Patrick Williams | 3618064 | 2022-12-08 06:13:03 -0600 | [diff] [blame] | 33 | }, |
| 34 | { |
| 35 | "attribute_name": "InbandCodeUpdate", |
| 36 | "possible_values": ["Allowed", "NotAllowed"], |
| 37 | "default_values": ["Allowed"], |
| 38 | "dbus": { |
| 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] |
Tom Joseph | 52552ef | 2019-06-20 09:50:15 +0530 | [diff] [blame] | 44 | } |
Patrick Williams | 3618064 | 2022-12-08 06:13:03 -0600 | [diff] [blame] | 45 | }, |
| 46 | { |
| 47 | // This is an example of BIOS Enumeration Read only attribute |
| 48 | "attribute_name": "CodeUpdatePolicy", |
| 49 | "possible_values": ["Concurrent", "Disruptive"], |
| 50 | "default_values": ["Concurrent"] |
| 51 | } |
Tom Joseph | 52552ef | 2019-06-20 09:50:15 +0530 | [diff] [blame] | 52 | ] |
| 53 | } |