Inventory.Item.PCIeSlot: Add PCIeSlot.interface.yaml

PCIE slots are one type of Inventory items and the proposed
interfaces will define the characteristics

Reference: https://redfish.dmtf.org/schemas/v1/PCIeSlots.v1_4_0.yaml

Change-Id: I51dc147298dea0df0fb6cdd4d725937adda5abef
Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
diff --git a/gen/xyz/openbmc_project/Inventory/Item/PCIeSlot/meson.build b/gen/xyz/openbmc_project/Inventory/Item/PCIeSlot/meson.build
new file mode 100644
index 0000000..b3e5d94
--- /dev/null
+++ b/gen/xyz/openbmc_project/Inventory/Item/PCIeSlot/meson.build
@@ -0,0 +1,14 @@
+# Generated file; do not modify.
+generated_sources += custom_target(
+    'xyz/openbmc_project/Inventory/Item/PCIeSlot__cpp'.underscorify(),
+    input: [ meson.source_root() / 'xyz/openbmc_project/Inventory/Item/PCIeSlot.interface.yaml',  ],
+    output: [ 'server.cpp', 'server.hpp', 'client.hpp',  ],
+    command: [
+        sdbuspp_gen_meson_prog, '--command', 'cpp',
+        '--output', meson.current_build_dir(),
+        '--tool', sdbusplusplus_prog,
+        '--directory', meson.source_root(),
+        'xyz/openbmc_project/Inventory/Item/PCIeSlot',
+    ],
+)
+
diff --git a/gen/xyz/openbmc_project/Inventory/Item/meson.build b/gen/xyz/openbmc_project/Inventory/Item/meson.build
index 145bba2..6716774 100644
--- a/gen/xyz/openbmc_project/Inventory/Item/meson.build
+++ b/gen/xyz/openbmc_project/Inventory/Item/meson.build
@@ -252,6 +252,21 @@
     build_by_default: true,
 )
 
+subdir('PCIeSlot')
+generated_others += custom_target(
+    'xyz/openbmc_project/Inventory/Item/PCIeSlot__markdown'.underscorify(),
+    input: [ meson.source_root() / 'xyz/openbmc_project/Inventory/Item/PCIeSlot.interface.yaml',  ],
+    output: [ 'PCIeSlot.md' ],
+    command: [
+        sdbuspp_gen_meson_prog, '--command', 'markdown',
+        '--output', meson.current_build_dir(),
+        '--tool', sdbusplusplus_prog,
+        '--directory', meson.source_root(),
+        'xyz/openbmc_project/Inventory/Item/PCIeSlot',
+    ],
+    build_by_default: true,
+)
+
 subdir('PersistentMemory')
 generated_others += custom_target(
     'xyz/openbmc_project/Inventory/Item/PersistentMemory__markdown'.underscorify(),
diff --git a/xyz/openbmc_project/Inventory/Item/PCIeSlot.interface.yaml b/xyz/openbmc_project/Inventory/Item/PCIeSlot.interface.yaml
new file mode 100644
index 0000000..0cc41d2
--- /dev/null
+++ b/xyz/openbmc_project/Inventory/Item/PCIeSlot.interface.yaml
@@ -0,0 +1,99 @@
+description: >
+    This defines a PCIe slot to be exposed for system management.
+    It includes the slot properties.
+
+properties:
+    - name: Generation
+      type: enum[self.Generations]
+      default: 'Unknown'
+      description: >
+          The PCIe generation of the slot
+
+    - name: Lanes
+      type: size
+      description: >
+          The maximum number of PCIe lanes supported by the slot
+
+    - name: SlotType
+      type: enum[self.SlotTypes]
+      default: 'Unknown'
+      description: >
+          The type of the slot
+
+    - name: HotPluggable
+      type: boolean
+      description: >
+          Whether this PCIe slot supports hotplug
+
+enumerations:
+    - name: Generations
+      description: >
+          Possible PCIe generations
+      values:
+        - name: 'Gen1'
+          description: >
+              PCIe v1.0 slot
+
+        - name: 'Gen2'
+          description: >
+              PCIe v2.0 slot
+
+        - name: 'Gen3'
+          description: >
+              PCIe v3.0 slot
+
+        - name: 'Gen4'
+          description: >
+              PCIe v4.0 slot
+
+        - name: 'Gen5'
+          description: >
+              PCIe v5.0 slot
+
+        - name: 'Unknown'
+          description: >
+              Version of the PCIe slot is unknown
+
+    - name: SlotTypes
+      description: >
+          Possible types of a PCIe slot
+      values:
+        - name: 'FullLength'
+          description: >
+              Full-Length PCIe slot
+
+        - name: 'HalfLength'
+          description: >
+              Half-Length PCIe slot
+
+        - name: 'LowProfile'
+          description: >
+              Low-Profile or Slim PCIe slot
+
+        - name: 'Mini'
+          description: >
+              Mini PCIe slot
+
+        - name: 'M_2'
+          description: >
+              PCIe M.2 slot
+
+        - name: 'OEM'
+          description: >
+              An OEM-specific PCIe slot
+
+        - name: 'OCP3Small'
+          description: >
+              Open Compute Project 3.0 small form factor PCIe slot
+
+        - name: 'OCP3Large'
+          description: >
+              Open Compute Project 3.0 large form factor PCIe slot
+
+        - name: 'U_2'
+          description: >
+              U.2 / SFF-8639 PCIe slot or bay
+
+        - name: 'Unknown'
+          description: >
+              Type of the PCIe slot is unknown