NIC: Add new NIC dump entry interface

NIC is a new type of dump in openbmc/phosphor-debug-collector.

Change-Id: Ie9ae8fa754d3b5d57b1e008394491fa1ef80012e
Signed-off-by: eddylu <puzzy8338@gmail.com>
diff --git a/gen/xyz/openbmc_project/Dump/Entry/NIC/meson.build b/gen/xyz/openbmc_project/Dump/Entry/NIC/meson.build
new file mode 100644
index 0000000..2843d91
--- /dev/null
+++ b/gen/xyz/openbmc_project/Dump/Entry/NIC/meson.build
@@ -0,0 +1,15 @@
+# Generated file; do not modify.
+generated_sources += custom_target(
+    'xyz/openbmc_project/Dump/Entry/NIC__cpp'.underscorify(),
+    input: [ '../../../../../../yaml/xyz/openbmc_project/Dump/Entry/NIC.interface.yaml',  ],
+    output: [ 'common.hpp', 'server.cpp', 'server.hpp', 'aserver.hpp', 'client.hpp',  ],
+    depend_files: sdbusplusplus_depfiles,
+    command: [
+        sdbuspp_gen_meson_prog, '--command', 'cpp',
+        '--output', meson.current_build_dir(),
+        '--tool', sdbusplusplus_prog,
+        '--directory', meson.current_source_dir() / '../../../../../../yaml',
+        'xyz/openbmc_project/Dump/Entry/NIC',
+    ],
+)
+
diff --git a/gen/xyz/openbmc_project/Dump/Entry/meson.build b/gen/xyz/openbmc_project/Dump/Entry/meson.build
index 72134bd..570e83d 100644
--- a/gen/xyz/openbmc_project/Dump/Entry/meson.build
+++ b/gen/xyz/openbmc_project/Dump/Entry/meson.build
@@ -43,6 +43,21 @@
     ],
 )
 
+subdir('NIC')
+generated_others += custom_target(
+    'xyz/openbmc_project/Dump/Entry/NIC__markdown'.underscorify(),
+    input: [ '../../../../../yaml/xyz/openbmc_project/Dump/Entry/NIC.interface.yaml',  ],
+    output: [ 'NIC.md' ],
+    depend_files: sdbusplusplus_depfiles,
+    command: [
+        sdbuspp_gen_meson_prog, '--command', 'markdown',
+        '--output', meson.current_build_dir(),
+        '--tool', sdbusplusplus_prog,
+        '--directory', meson.current_source_dir() / '../../../../../yaml',
+        'xyz/openbmc_project/Dump/Entry/NIC',
+    ],
+)
+
 subdir('System')
 generated_others += custom_target(
     'xyz/openbmc_project/Dump/Entry/System__markdown'.underscorify(),
diff --git a/yaml/xyz/openbmc_project/Dump/Entry/NIC.interface.yaml b/yaml/xyz/openbmc_project/Dump/Entry/NIC.interface.yaml
new file mode 100644
index 0000000..8b79d69
--- /dev/null
+++ b/yaml/xyz/openbmc_project/Dump/Entry/NIC.interface.yaml
@@ -0,0 +1,5 @@
+description: >
+    Implement this to add NIC dump management.
+
+    NIC dump is generated on the NIC with debug data for debugging the issues
+    encountered on the NIC.