summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>2017-05-02 08:00:11 -0500
committerPatrick Williams <patrick@stwcx.xyz>2017-06-08 13:08:17 +0000
commit0067ba2edbbe3257431531b124f1460dd19d0d48 (patch)
treea64eb72cb5e265d436475cc5962df071e0fa7486
parent7b54884c0460f529efd047c7c5d1d679c9333a29 (diff)
downloadphosphor-dbus-interfaces-0067ba2edbbe3257431531b124f1460dd19d0d48.zip
phosphor-dbus-interfaces-0067ba2edbbe3257431531b124f1460dd19d0d48.tar.gz
D-Bus interfaces for describing State.
Change-Id: Ic52faba7a24bcf58f3326b1587282ca8398e9a70 Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
-rw-r--r--xyz/openbmc_project/Control/Boot/RebootAttempts.interface.yaml8
-rw-r--r--xyz/openbmc_project/State/Boot/Progress.interface.yaml30
-rw-r--r--xyz/openbmc_project/State/OperatingSystem/Status.interface.yaml33
3 files changed, 71 insertions, 0 deletions
diff --git a/xyz/openbmc_project/Control/Boot/RebootAttempts.interface.yaml b/xyz/openbmc_project/Control/Boot/RebootAttempts.interface.yaml
new file mode 100644
index 0000000..a7f388d
--- /dev/null
+++ b/xyz/openbmc_project/Control/Boot/RebootAttempts.interface.yaml
@@ -0,0 +1,8 @@
+description: >
+ Implement to specify reboot attempts left.
+
+properties:
+ - name: AttemptsLeft
+ type: uint32
+ description: >
+ Current number of reboot attempts left.
diff --git a/xyz/openbmc_project/State/Boot/Progress.interface.yaml b/xyz/openbmc_project/State/Boot/Progress.interface.yaml
new file mode 100644
index 0000000..74ad6d8
--- /dev/null
+++ b/xyz/openbmc_project/State/Boot/Progress.interface.yaml
@@ -0,0 +1,30 @@
+description: >
+ Implement to indicate progress of ongoing boot.
+
+properties:
+ - name: BootProgress
+ type: enum[self.ProgressStages]
+ default: Unspecified
+ description: >
+ Current boot progress
+
+enumerations:
+ - name: ProgressStages
+ description: >
+ The boot progress stage
+ values:
+ - name: Unspecified
+ description: >
+ Unknown state.
+ - name: MemoryInit
+ description: >
+ Memory Initialization
+ - name: SecondaryProcInit
+ description: >
+ Secondary Processor Initialization
+ - name: OSStart
+ description: >
+ Starting Operating System.
+ - name: MotherboardInit
+ description: >
+ Motherboard/Basebord Initialization.
diff --git a/xyz/openbmc_project/State/OperatingSystem/Status.interface.yaml b/xyz/openbmc_project/State/OperatingSystem/Status.interface.yaml
new file mode 100644
index 0000000..60852f3
--- /dev/null
+++ b/xyz/openbmc_project/State/OperatingSystem/Status.interface.yaml
@@ -0,0 +1,33 @@
+description: >
+ Implement to set the operating system status.
+
+properties:
+ - name: OperatingSystemState
+ type: enum[self.OSStatus]
+ default: BootComplete
+ description: >
+ Current state of the operating system.
+
+enumerations:
+ - name: OSStatus
+ description: >
+ The operaing system statuses.
+ values:
+ - name: CBoot
+ description: >
+ C Boot Completed.
+ - name: PXEBoot
+ description: >
+ PXE Boot Completed.
+ - name: DiagBoot
+ description: >
+ Diagnostic Boot Completed.
+ - name: CDROMBoot
+ description: >
+ CD-ROM Boot completed.
+ - name: ROMBoot
+ description: >
+ ROM Boot Completed
+ - name: BootComplete
+ description: >
+ Boot Completed or Unspecified Boot Device.
OpenPOWER on IntegriCloud