Add error definitions for CFAM access fails.

Change-Id: I2089c74456fb5857759f8870ed6818996f16c2c4
Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
diff --git a/org/open_power/Proc/CFAM.errors.yaml b/org/open_power/Proc/CFAM.errors.yaml
new file mode 100644
index 0000000..b414185
--- /dev/null
+++ b/org/open_power/Proc/CFAM.errors.yaml
@@ -0,0 +1,15 @@
+# org.open_power.Proc.CFAM.OpenFailure
+- name: OpenFailure
+  description: Failed to open the device.
+
+# org.open_power.Proc.CFAM.ReadFailure
+- name: ReadFailure
+  description: Failed to read from the device.
+
+# org.open_power.Proc.CFAM.WriteFailure
+- name: WriteFailure
+  description: Failed to write to the device.
+
+# org.open_power.Proc.CFAM.SeekFailure
+- name: SeekFailure
+  description: Failed to seek on the device.
diff --git a/org/open_power/Proc/CFAM.metadata.yaml b/org/open_power/Proc/CFAM.metadata.yaml
new file mode 100644
index 0000000..5077f81
--- /dev/null
+++ b/org/open_power/Proc/CFAM.metadata.yaml
@@ -0,0 +1,25 @@
+- name: OpenFailure
+  meta:
+    - str: "ERRNO=%d"
+      type: int32
+    - str: "PATH=%s"
+      type: string
+
+- name: ReadFailure
+  inherits:
+    - xyz.openbmc_project.Common.Callout.Device
+
+- name: WriteFailure
+  inherits:
+    - xyz.openbmc_project.Common.Callout.Device
+
+- name: SeekFailure
+  meta:
+    - str: "ERRNO=%d"
+      type: int32
+    - str: "ADDRESS=0x%0x"
+      type: uint16
+    - str: "OFFSET=%d"
+      type: uint16
+    - str: "PATH=%s"
+      type: string