open_power: add OCC errors from openpower-occ-control

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I91f1a459fecc623168f65a3b17ff50974344eec7
diff --git a/gen/org/open_power/OCC/Device/meson.build b/gen/org/open_power/OCC/Device/meson.build
new file mode 100644
index 0000000..84af1ab
--- /dev/null
+++ b/gen/org/open_power/OCC/Device/meson.build
@@ -0,0 +1,15 @@
+# Generated file; do not modify.
+generated_sources += custom_target(
+    'org/open_power/OCC/Device__cpp'.underscorify(),
+    input: [ '../../../../../yaml/org/open_power/OCC/Device.errors.yaml',  ],
+    output: [ 'error.cpp', 'error.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',
+        'org/open_power/OCC/Device',
+    ],
+)
+
diff --git a/gen/org/open_power/OCC/meson.build b/gen/org/open_power/OCC/meson.build
index 3eb1677..6c00760 100644
--- a/gen/org/open_power/OCC/meson.build
+++ b/gen/org/open_power/OCC/meson.build
@@ -1,4 +1,19 @@
 # Generated file; do not modify.
+subdir('Device')
+generated_others += custom_target(
+    'org/open_power/OCC/Device__markdown'.underscorify(),
+    input: [ '../../../../yaml/org/open_power/OCC/Device.errors.yaml',  ],
+    output: [ 'Device.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',
+        'org/open_power/OCC/Device',
+    ],
+)
+
 subdir('PassThrough')
 generated_others += custom_target(
     'org/open_power/OCC/PassThrough__markdown'.underscorify(),
diff --git a/yaml/org/open_power/OCC/Device.errors.yaml b/yaml/org/open_power/OCC/Device.errors.yaml
new file mode 100644
index 0000000..9e8d09a
--- /dev/null
+++ b/yaml/org/open_power/OCC/Device.errors.yaml
@@ -0,0 +1,15 @@
+# org.open_power.OCC.Device.OpenFailure
+- name: OpenFailure
+  description: Opening OCC device failed.
+
+# org.open_power.OCC.Device.ReadFailure
+- name: ReadFailure
+  description: Reading from OCC failed.
+
+# org.open_power.OCC.Device.WriteFailure
+- name: WriteFailure
+  description: Writing to OCC failed.
+
+# org.open_power.OCC.Device.ConfigFailure
+- name: ConfigFailure
+  description: Configuring device failed.
diff --git a/yaml/org/open_power/OCC/Device.metadata.yaml b/yaml/org/open_power/OCC/Device.metadata.yaml
new file mode 100644
index 0000000..ee79e2d
--- /dev/null
+++ b/yaml/org/open_power/OCC/Device.metadata.yaml
@@ -0,0 +1,15 @@
+- name: OpenFailure
+  inherits:
+      - xyz.openbmc_project.Common.Callout.Device
+
+- name: ReadFailure
+  inherits:
+      - xyz.openbmc_project.Common.Callout.Device
+
+- name: WriteFailure
+  inherits:
+      - xyz.openbmc_project.Common.Callout.Device
+
+- name: ConfigFailure
+  inherits:
+      - xyz.openbmc_project.Common.Callout.Device