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.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