bios: Define json structure for integer attribute

Define json structure for "Specific BIOS Attribute Table
Fields for BIOSInteger and BIOSIntegerReadOnly Types",
see DSP0247 Version 1.0.0 Table 9.

In the json, VDD_AVSBUS_RAIL is an example for BIOSInteger
type and SBE_IMAGE_MINIMUM_VALID_ECS is an exmaple for
BIOSIntegerReadOnly Type

Signed-off-by: John Wang <wangzqbj@inspur.com>
Change-Id: I08190923df2c100062194ccb2e266407bc63ef31
diff --git a/libpldmresponder/examples/bios/integer_attrs.json b/libpldmresponder/examples/bios/integer_attrs.json
new file mode 100644
index 0000000..a38c4a0
--- /dev/null
+++ b/libpldmresponder/examples/bios/integer_attrs.json
@@ -0,0 +1,35 @@
+{
+   "entries":[
+      {
+         "attribute_name" : "VDD_AVSBUS_RAIL",
+         "lower_bound" : 0,
+         "upper_bound" : 15,
+         "scalar_increment" : 1,
+         "default_value" : 0,
+         # This BIOS attribute has a D-Bus property as backend.
+         "dbus":{
+            "object_path" : "/xyz/openbmc_project/avsbus",
+            "interface" : "xyz.openbmc.AvsBus.Manager",
+            "property_type" : "uint8_t",
+            "property_name" : "Rail"
+         }
+      },
+      {
+         # This is an example of BIOS Integer Read only attribute
+         "attribute_name" : "SBE_IMAGE_MINIMUM_VALID_ECS",
+         "lower_bound" : 1,
+         "upper_bound" : 15,
+         "scalar_increment" : 1,
+         "default_value" : 2
+      },
+      {
+         # This atttribute has invalid default value or scalar_increment, when
+         # scalar_increment=2 and lower_bound=1, default_value must be 1, 3, 5...
+         "attribute_name" : "INTEGER_INVALID_CASE",
+         "lower_bound" : 1,
+         "upper_bound" : 15,
+         "scalar_increment" : 2,
+         "default_value" : 4
+      }
+   ]
+}
diff --git a/test/bios_jsons/integer_attrs.json b/test/bios_jsons/integer_attrs.json
new file mode 100644
index 0000000..dcbcc0a
--- /dev/null
+++ b/test/bios_jsons/integer_attrs.json
@@ -0,0 +1,31 @@
+{
+   "entries":[
+      {
+         "attribute_name" : "VDD_AVSBUS_RAIL",
+         "lower_bound" : 0,
+         "upper_bound" : 15,
+         "scalar_increment" : 1,
+         "default_value" : 0,
+         "dbus":{
+            "object_path" : "/xyz/openbmc_project/avsbus",
+            "interface" : "xyz.openbmc.AvsBus.Manager",
+            "property_type" : "uint8_t",
+            "property_name" : "Rail"
+         }
+      },
+      {
+         "attribute_name" : "SBE_IMAGE_MINIMUM_VALID_ECS",
+         "lower_bound" : 1,
+         "upper_bound" : 15,
+         "scalar_increment" : 1,
+         "default_value" : 2
+      },
+      {
+         "attribute_name" : "INTEGER_INVALID_CASE",
+         "lower_bound" : 1,
+         "upper_bound" : 15,
+         "scalar_increment" : 2,
+         "default_value" : 4
+      }
+   ]
+}