From 0067ba2edbbe3257431531b124f1460dd19d0d48 Mon Sep 17 00:00:00 2001 From: Dhruvaraj Subhashchandran Date: Tue, 2 May 2017 08:00:11 -0500 Subject: D-Bus interfaces for describing State. Change-Id: Ic52faba7a24bcf58f3326b1587282ca8398e9a70 Signed-off-by: Dhruvaraj Subhashchandran --- .../Control/Boot/RebootAttempts.interface.yaml | 8 ++++++ .../State/Boot/Progress.interface.yaml | 30 ++++++++++++++++++++ .../State/OperatingSystem/Status.interface.yaml | 33 ++++++++++++++++++++++ 3 files changed, 71 insertions(+) create mode 100644 xyz/openbmc_project/Control/Boot/RebootAttempts.interface.yaml create mode 100644 xyz/openbmc_project/State/Boot/Progress.interface.yaml create mode 100644 xyz/openbmc_project/State/OperatingSystem/Status.interface.yaml 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. -- cgit v1.2.1