blob: 81b806eb9df5bfcd6d543b542e312b7637548a8f [file] [log] [blame]
Manojkiran Eda2746fb42021-08-29 10:59:27 +05301// This is a sample JSON configuration file for BIOS string type
Carol Wang473d2c92019-08-22 16:03:34 +08002{
Patrick Williams36180642022-12-08 06:13:03 -06003 "entries": [
4 {
5 "attribute_name": "str_example1",
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}
8 "string_type": "ASCII",
9 "minimum_string_length": 1,
10 "maximum_string_length": 100,
11 "default_string_length": 3,
12 "default_string": "abc",
13 // This BIOS attribute has a D-Bus property as backend.
14 "dbus": {
15 "object_path": "/xyz/abc/def",
16 "interface": "xyz.openbmc_project.str_example1.value",
17 "property_name": "Str_example1",
18 "property_type": "string"
Carol Wang473d2c92019-08-22 16:03:34 +080019 }
Patrick Williams36180642022-12-08 06:13:03 -060020 },
21 {
22 "attribute_name": "str_example2",
23 "string_type": "Hex",
24 "minimum_string_length": 0,
25 "maximum_string_length": 100,
26 "default_string_length": 0,
27 "default_string": "",
28 "dbus": {
29 "object_path": "/xyz/abc/def",
30 "interface": "xyz.openbmc_project.str_example2.value",
31 "property_name": "Str_example2",
32 "property_type": "string"
Carol Wang473d2c92019-08-22 16:03:34 +080033 }
Patrick Williams36180642022-12-08 06:13:03 -060034 },
35 {
36 // This is an example of BIOS String Read only attribute
37 "attribute_name": "str_example3",
38 "string_type": "Unknown",
39 "minimum_string_length": 1,
40 "maximum_string_length": 100,
41 "default_string_length": 2,
42 "default_string": "ef"
43 }
Carol Wang473d2c92019-08-22 16:03:34 +080044 ]
45}