Add hardware dump entry interface and type

Hardware dumps get collected during a critical
failure on the hardware units like processor
chips.
This commits add following:
 - The interface for hardware dump entry.
 - Updated the arguments list with following
      - Hardware: A new dump type to list of supported
        dumps
      - FailingUnitId: Id of the hardware unit failed

Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
Change-Id: Id209cca5d4ff167d21c45c752a687280aa469830
diff --git a/gen/com/ibm/Dump/Entry/Hardware/meson.build b/gen/com/ibm/Dump/Entry/Hardware/meson.build
new file mode 100644
index 0000000..9e2ab20
--- /dev/null
+++ b/gen/com/ibm/Dump/Entry/Hardware/meson.build
@@ -0,0 +1,14 @@
+# Generated file; do not modify.
+generated_sources += custom_target(
+    'com/ibm/Dump/Entry/Hardware__cpp'.underscorify(),
+    input: [ '../../../../../../yaml/com/ibm/Dump/Entry/Hardware.interface.yaml',  ],
+    output: [ 'server.cpp', 'server.hpp', 'client.hpp',  ],
+    command: [
+        sdbuspp_gen_meson_prog, '--command', 'cpp',
+        '--output', meson.current_build_dir(),
+        '--tool', sdbusplusplus_prog,
+        '--directory', meson.current_source_dir() / '../../../../../../yaml',
+        'com/ibm/Dump/Entry/Hardware',
+    ],
+)
+
diff --git a/gen/com/ibm/Dump/Entry/meson.build b/gen/com/ibm/Dump/Entry/meson.build
index 1ec6118..716414a 100644
--- a/gen/com/ibm/Dump/Entry/meson.build
+++ b/gen/com/ibm/Dump/Entry/meson.build
@@ -1,4 +1,18 @@
 # Generated file; do not modify.
+subdir('Hardware')
+generated_others += custom_target(
+    'com/ibm/Dump/Entry/Hardware__markdown'.underscorify(),
+    input: [ '../../../../../yaml/com/ibm/Dump/Entry/Hardware.interface.yaml',  ],
+    output: [ 'Hardware.md' ],
+    command: [
+        sdbuspp_gen_meson_prog, '--command', 'markdown',
+        '--output', meson.current_build_dir(),
+        '--tool', sdbusplusplus_prog,
+        '--directory', meson.current_source_dir() / '../../../../../yaml',
+        'com/ibm/Dump/Entry/Hardware',
+    ],
+)
+
 subdir('Hostboot')
 generated_others += custom_target(
     'com/ibm/Dump/Entry/Hostboot__markdown'.underscorify(),
diff --git a/yaml/com/ibm/Dump/Create.interface.yaml b/yaml/com/ibm/Dump/Create.interface.yaml
index eca690e..c5cf772 100644
--- a/yaml/com/ibm/Dump/Create.interface.yaml
+++ b/yaml/com/ibm/Dump/Create.interface.yaml
@@ -25,6 +25,10 @@
         - name: 'DumpType'
           description: >
               Type of the dump to be collected
+        - name: 'FailingUnitId'
+          description: >
+              A unique id of failing hardware unit which is causing the dump.
+              The value should be a 32 bit unsigned integer.
 
     - name: DumpType
       description: >
@@ -34,3 +38,6 @@
           description: >
               Hostboot dump is collected during a boot failure during the
               hostboot booting phase.
+        - name: 'Hardware'
+          desription: >
+              Hardware dump is collected during a system checkstop.
diff --git a/yaml/com/ibm/Dump/Entry/Hardware.interface.yaml b/yaml/com/ibm/Dump/Entry/Hardware.interface.yaml
new file mode 100644
index 0000000..fd9ac4b
--- /dev/null
+++ b/yaml/com/ibm/Dump/Entry/Hardware.interface.yaml
@@ -0,0 +1,7 @@
+description: >
+    Implement this to add Hardware dump management.
+
+    Hardware dump is a collection hardware state information,
+    including various registers, and it is used for debugging
+    system checkstop. checkstop is the descriptive term for
+    entire system termination by the hardware due to a detected error.