Update d-bus interfaces for dimm
Add new properties to support more persistent memory
module specific information.
Tested:
Successful build and verified changes in
server.hpp and server.cpp.
Signed-off-by: Nirmal Patel <nirmal.patel@intel.com>
Change-Id: I1c5a367e565020fdb707b4e3400c58850755256d
diff --git a/xyz/openbmc_project/Inventory/Item/Dimm/Partition.interface.yaml b/xyz/openbmc_project/Inventory/Item/Dimm/Partition.interface.yaml
new file mode 100644
index 0000000..45105ac
--- /dev/null
+++ b/xyz/openbmc_project/Inventory/Item/Dimm/Partition.interface.yaml
@@ -0,0 +1,25 @@
+description: >
+ Implement to provide memory partition attributes.
+properties:
+ - name: PartitionId
+ type: string
+ description: >
+ Unique region ID representing a specific region within the Memory.
+ - name: SizeKiB
+ type: uint64
+ description: >
+ Size of this memory region in kibibytes (KiB).
+ - name: MemoryClassification
+ type: string
+ description: >
+ Classification of memory occupied by the given memory region.
+ - name: OffsetMiB
+ type: uint64
+ description: >
+ Offset with in the Memory that corresponds to the starting of this
+ memory region in MiB.
+ - name: PassphraseState
+ type: boolean
+ description: >
+ An indication of whether the state of the passphrase for this region
+ is enabled.
diff --git a/xyz/openbmc_project/Inventory/Item/Dimm/SecurityCapabilities.interface.yaml b/xyz/openbmc_project/Inventory/Item/Dimm/SecurityCapabilities.interface.yaml
new file mode 100644
index 0000000..e99c121
--- /dev/null
+++ b/xyz/openbmc_project/Inventory/Item/Dimm/SecurityCapabilities.interface.yaml
@@ -0,0 +1,15 @@
+description: >
+ Implement to provide security capability attributes.
+properties:
+ - name: MaxPassphraseCount
+ type: int32
+ description: >
+ Maximum number of passphrases supported for this Memory.
+ - name: PassphraseCapable
+ type: boolean
+ description: >
+ Memory passphrase set capability.
+ - name: SecurityStates
+ type: array[string]
+ description: >
+ Security states supported by the Memory.