Manojkiran Eda | 2746fb4 | 2021-08-29 10:59:27 +0530 | [diff] [blame] | 1 | // This is a sample JSON configuration file for BIOS string type |
Carol Wang | 473d2c9 | 2019-08-22 16:03:34 +0800 | [diff] [blame] | 2 | { |
| 3 | "entries":[ |
| 4 | { |
| 5 | "attribute_name" : "str_example1", |
Manojkiran Eda | 2746fb4 | 2021-08-29 10:59:27 +0530 | [diff] [blame] | 6 | // Possible values of string type {Unknown=0x00, ASCII=0x01, Hex=0x02, |
| 7 | // UTF-8=0x03, UTF-16LE=0x04, UTF-16BE=0x05, Vendor Specific=0xFF} |
Carol Wang | 473d2c9 | 2019-08-22 16:03:34 +0800 | [diff] [blame] | 8 | "string_type" : "ASCII", |
| 9 | "minimum_string_length" : 1, |
| 10 | "maximum_string_length" : 100, |
| 11 | "default_string_length" : 3, |
| 12 | "default_string" : "abc", |
Manojkiran Eda | 2746fb4 | 2021-08-29 10:59:27 +0530 | [diff] [blame] | 13 | // This BIOS attribute has a D-Bus property as backend. |
Carol Wang | 473d2c9 | 2019-08-22 16:03:34 +0800 | [diff] [blame] | 14 | "dbus": |
| 15 | { |
| 16 | "object_path" : "/xyz/abc/def", |
| 17 | "interface" : "xyz.openbmc_project.str_example1.value", |
| 18 | "property_name" : "Str_example1", |
| 19 | "property_type" : "string" |
| 20 | } |
| 21 | }, |
| 22 | { |
| 23 | "attribute_name" : "str_example2", |
| 24 | "string_type" : "Hex", |
| 25 | "minimum_string_length" : 0, |
| 26 | "maximum_string_length" : 100, |
| 27 | "default_string_length" : 0, |
| 28 | "default_string" : "", |
| 29 | "dbus": |
| 30 | { |
| 31 | "object_path" : "/xyz/abc/def", |
| 32 | "interface" : "xyz.openbmc_project.str_example2.value", |
| 33 | "property_name" : "Str_example2", |
| 34 | "property_type" : "string" |
| 35 | } |
| 36 | }, |
| 37 | { |
Manojkiran Eda | 2746fb4 | 2021-08-29 10:59:27 +0530 | [diff] [blame] | 38 | // This is an example of BIOS String Read only attribute |
Carol Wang | 473d2c9 | 2019-08-22 16:03:34 +0800 | [diff] [blame] | 39 | "attribute_name" : "str_example3", |
| 40 | "string_type" : "Unknown", |
| 41 | "minimum_string_length" : 1, |
| 42 | "maximum_string_length" : 100, |
| 43 | "default_string_length" : 2, |
| 44 | "default_string" : "ef" |
| 45 | } |
| 46 | ] |
| 47 | } |