John Wang | daebf4d | 2019-08-28 16:30:24 +0800 | [diff] [blame] | 1 | { |
| 2 | "entries":[ |
| 3 | { |
| 4 | "attribute_name" : "VDD_AVSBUS_RAIL", |
| 5 | "lower_bound" : 0, |
| 6 | "upper_bound" : 15, |
| 7 | "scalar_increment" : 1, |
| 8 | "default_value" : 0, |
Manojkiran Eda | 2746fb4 | 2021-08-29 10:59:27 +0530 | [diff] [blame] | 9 | // This BIOS attribute has a D-Bus property as backend. |
John Wang | daebf4d | 2019-08-28 16:30:24 +0800 | [diff] [blame] | 10 | "dbus":{ |
| 11 | "object_path" : "/xyz/openbmc_project/avsbus", |
| 12 | "interface" : "xyz.openbmc.AvsBus.Manager", |
| 13 | "property_type" : "uint8_t", |
| 14 | "property_name" : "Rail" |
| 15 | } |
| 16 | }, |
| 17 | { |
Manojkiran Eda | 2746fb4 | 2021-08-29 10:59:27 +0530 | [diff] [blame] | 18 | // This is an example of BIOS Integer Read only attribute |
John Wang | daebf4d | 2019-08-28 16:30:24 +0800 | [diff] [blame] | 19 | "attribute_name" : "SBE_IMAGE_MINIMUM_VALID_ECS", |
| 20 | "lower_bound" : 1, |
| 21 | "upper_bound" : 15, |
| 22 | "scalar_increment" : 1, |
| 23 | "default_value" : 2 |
| 24 | }, |
| 25 | { |
Manojkiran Eda | 2746fb4 | 2021-08-29 10:59:27 +0530 | [diff] [blame] | 26 | // This atttribute has invalid default value or scalar_increment, when |
| 27 | // scalar_increment=2 and lower_bound=1, default_value must be 1, 3, 5... |
John Wang | daebf4d | 2019-08-28 16:30:24 +0800 | [diff] [blame] | 28 | "attribute_name" : "INTEGER_INVALID_CASE", |
| 29 | "lower_bound" : 1, |
| 30 | "upper_bound" : 15, |
| 31 | "scalar_increment" : 2, |
| 32 | "default_value" : 4 |
| 33 | } |
| 34 | ] |
| 35 | } |