From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-il1-f170.google.com (mail-il1-f170.google.com [209.85.166.170]) by mx.groups.io with SMTP id smtpd.web11.404.1619215046216009374 for ; Fri, 23 Apr 2021 14:57:26 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@nuviainc-com.20150623.gappssmtp.com header.s=20150623 header.b=sRB18ktk; spf=pass (domain: nuviainc.com, ip: 209.85.166.170, mailfrom: rebecca@nuviainc.com) Received: by mail-il1-f170.google.com with SMTP id c15so41929990ilj.1 for ; Fri, 23 Apr 2021 14:57:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nuviainc-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=UzTiQr/000MvAmUhSOuPmgmRs7KnDA1D51xX2V/gTrI=; b=sRB18ktk1VFV2SP7V4PFxC4yG24AlEBu4UuhLUbTPrS5bbjeZ586T13Yw/txzs6Qtr HHY5BHj5h4Mptp0IYesb4p89+AcEAKMb2uYIpM3dglr3VvMJH4mV7BpHFYYF3In9kwXC cLvNL/KiZ9f7bC5UW4ZnVjNkPPDmCpNlom8vt747CLcRiG4B0jJFQSdy5ZLf41pcc8Qn gSsbsT7wy+2tfjJOeB3OSGg71cjZchyearE73YrfqqK+4hpN/D+s0exKA/0EHLTXNzym e9tpnGbaGGQTegsj73NCGaa0rrdb3N5OHhltjOD5QP2rUhEDzhzU+DGad0wGbZ4Urayr 2P1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=UzTiQr/000MvAmUhSOuPmgmRs7KnDA1D51xX2V/gTrI=; b=czxq7fraUiavLBEgXZD4ob1YsW0c4PyAcQtImr6NUYI2h8j9YF9KZN16jPhV0OhrpT faa22YVUV+FJOuUjTzqaJI9JhLmjaGahxKZ2VBvjDzednVIcGPX4eHEoLZGhXBnu/huN U/2wY4hdQRtu5TYB8qyGGtPZ0tPvCCS2N0Qm3YiwiEqz9NQkE5Md4cPoRGBGNTIA+hbW kIr6WEI1CIkLil/gau3gBsn5XxAh3jY0/s+/LF8PR+PEwaLsFh/AWZX8gaV6hZUv55wJ Kv7SwN/dd0e9lX2CUWdvkv2hb997/CODCZb3x5aAOmIy6AFZZDTO4Pkkv4F29iUcQ+CF uLbA== X-Gm-Message-State: AOAM531e3X25rdgURgBi1B3HQWdo60bBUngZDj3Tm6WHxGFxMGtj4o4H lSROAxDF40vU7fDFzWvG3tzrNIAEtiRZaHNHWXzg05AejQIN5Iy6kdtTYIafuwjCbLJvNPqz+us YhBWsUuk5YSh6URdHsKc5tUCbWhoBsVlNjAK8tGZKwmKG/HLiT3Ne3prvo1kq5Ona8QWEIw== X-Google-Smtp-Source: ABdhPJzXHKNcfsxr4kXtcksfs+qs3W/RMnot4otn77bQgGjeh1Y5SC8Q/ysxuo+1IKD11Et7TgWhkg== X-Received: by 2002:a92:511:: with SMTP id q17mr4582619ile.189.1619215045369; Fri, 23 Apr 2021 14:57:25 -0700 (PDT) Return-Path: Received: from cube.int.bluestop.org (c-174-52-16-57.hsd1.ut.comcast.net. [174.52.16.57]) by smtp.gmail.com with ESMTPSA id u4sm3135182iln.36.2021.04.23.14.57.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Apr 2021 14:57:24 -0700 (PDT) From: "Rebecca Cran" To: devel@edk2.groups.io Cc: Rebecca Cran , Leif Lindholm , Ard Biesheuvel , Graeme Gregory , Radoslaw Biernacki Subject: [edk2-platforms PATCH v2 1/1] SbsaQemu: Add OemMiscLib boot information and chassis status functions Date: Fri, 23 Apr 2021 15:57:19 -0600 Message-Id: <20210423215719.5256-1-rebecca@nuviainc.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add new SMBIOS Type 32 boot information and Type 3 chassis status functions that have been added to OemMiscLib in ArmPkg. Since this is a virtual platform, return fixed values for the chassis statuses. Signed-off-by: Rebecca Cran --- Platform/Qemu/SbsaQemu/OemMiscLib/OemMiscLib.c | 91 ++++++++++++++++++++ 1 file changed, 91 insertions(+) diff --git a/Platform/Qemu/SbsaQemu/OemMiscLib/OemMiscLib.c b/Platform/Qemu/SbsaQemu/OemMiscLib/OemMiscLib.c index eb405b259848..326bb56bcfa3 100644 --- a/Platform/Qemu/SbsaQemu/OemMiscLib/OemMiscLib.c +++ b/Platform/Qemu/SbsaQemu/OemMiscLib/OemMiscLib.c @@ -239,3 +239,94 @@ OemUpdateSmbiosInfo ( HiiSetString (HiiHandle, TokenToUpdate, String, NULL); } } + +/** Fetches the Type 32 boot information status. + + @return Boot status. +**/ +MISC_BOOT_INFORMATION_STATUS_DATA_TYPE +EFIAPI +OemGetBootStatus ( + VOID + ) +{ + return BootInformationStatusNoError; +} + +/** Fetches the chassis status when it was last booted. + + @return Chassis status. +**/ +MISC_CHASSIS_STATE +EFIAPI +OemGetChassisBootupState ( + VOID + ) +{ + return ChassisStateSafe; +} + +/** Fetches the chassis power supply/supplies status when last booted. + + @return Chassis power supply/supplies status. +**/ +MISC_CHASSIS_STATE +EFIAPI +OemGetChassisPowerSupplyState ( + VOID + ) +{ + return ChassisStateSafe; +} + +/** Fetches the chassis thermal status when last booted. + + @return Chassis thermal status. +**/ +MISC_CHASSIS_STATE +EFIAPI +OemGetChassisThermalState ( + VOID + ) +{ + return ChassisStateSafe; +} + +/** Fetches the chassis security status when last booted. + + @return Chassis security status. +**/ +MISC_CHASSIS_SECURITY_STATE +EFIAPI +OemGetChassisSecurityStatus ( + VOID + ) +{ + return ChassisSecurityStatusNone; +} + +/** Fetches the chassis height in RMUs (Rack Mount Units). + + @return The height of the chassis. +**/ +UINT8 +EFIAPI +OemGetChassisHeight ( + VOID + ) +{ + return 1U; +} + +/** Fetches the number of power cords. + + @return The number of power cords. +**/ +UINT8 +EFIAPI +OemGetChassisNumPowerCords ( + VOID + ) +{ + return 1; +} -- 2.26.2