summaryrefslogtreecommitdiff
path: root/ManageabilityPkg/Library
AgeCommit message (Collapse)AuthorFilesLines
2026-09-01ManageabilityPkg/PrivateInclude: Add EFIAPI to C header fileAbner Chang7-0/+22
Add EFIAPI to the functions published in the C header files. Signed-off-by: Abner Chang <abner.chang@amd.com>
2026-07-31ManageabilityPkg: SsifWriteRequest post-refactor cleanupLeif Lindholm1-5/+2
Now the logic of the function is less convoluted, drop some redundant casts, variable initialisations and move the MiddleCount definition into the only block where it's used. Signed-off-by: Leif Lindholm <leif.lindholm@oss.qualcomm.com>
2026-07-31ManageabilityPkg: SsifWriteRequest loop refactoringLeif Lindholm1-41/+17
A multi-part request can consist of a Start, zero-to-several Middle, and an End packet. For what I can only assume was an attempt to confuse the enemy, SsifWriteRequest () handled this by setting up three separate loops. Rewrite this as a single loop in order to reduce confusion for revewers and compilers. Signed-off-by: Leif Lindholm <leif.lindholm@oss.qualcomm.com>
2026-07-31ManageabilityPkg: fix/cleanup request size check in SsifWriteRequestLeif Lindholm1-4/+2
From the IPMI v2.0 (April 21, 2015 E7 Markup) specification, Table 22-12, Get System Interface Capabilities Command: "Input message size in bytes. (1 based.)" ... "A BMC that supports multi-part Start and End would return a value from 33 to 64. A BMC that supports multi-part with Middle transactions would return a value from 65 to 255." Yet the comment in the existing code describes this as being a counter of the number of middle packets, with Start and End packets counting outside of that. This seems very incorrect to me. Address this, and simplify the code, by using the already existing global variable mMaxRequestSize. Update the debug error message text to reflect the functional change. Signed-off-by: Leif Lindholm <leif.lindholm@oss.qualcomm.com>
2026-07-31ManageabilityPkg: refactor SsifWriteRequest #1Leif Lindholm1-1/+4
Separate input validation from argument marshalling. Signed-off-by: Leif Lindholm <leif.lindholm@oss.qualcomm.com>
2026-07-31ManageabilityPkg: reorganise ManageabilityTransportSsifLibLeif Lindholm8-403/+4
For some reason this module was created "backwards", with .inf files in subdirectories, as well as identical apart from failes to keep in sync source files for Dxe and Pei drivers. Flip the thing the right way around and delete the duplicated files. Signed-off-by: Leif Lindholm <leif.lindholm@oss.qualcomm.com>
2026-07-31ManageabilityPkg: simplify HelperManageabilityPayLoadDebugPrint ()Leif Lindholm1-27/+35
While reviewing PR #12035, I found this function a bit overcomplicated, with a bunch of live-coded integers, so I reworked it for improved human and compiler readability. Signed-off-by: Leif Lindholm <leif.lindholm@oss.qualcomm.com>
2026-06-25ManageabilityPkg: Follow pragma once coding conventionMichael Kubacki4-16/+4
Update recent changes in ManageabilityPkg to follow the latest EDK II C Coding Standards Specification (5.3) to use '#pragma once' instead of traditional macro-based include guards in header files. https://tianocore-docs.github.io/edk2-CCodingStandardsSpecification/draft/5_source_files/53_include_files.html#53-include-files Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
2026-06-24ManageabilityPkg: TransportHelperLib: Fix uninitialized variable warningTuan Phan1-0/+1
In HelperManageabilityPayLoadDebugPrint(), Page256 is only assigned inside an if block within the while loop but is accessed outside of it, causing an uninitialized variable warning. Initialize Page256 to zero before the while loop to fix this. Signed-off-by: Tuan Phan <tuan.phan@oss.qualcomm.com>
2026-06-24ManageabilityPkg: TransportSsifLib: Fix uninitialized variable warningTuan Phan1-0/+1
In SsifWriteRequest(), MiddleCount is only assigned inside an if block but is accessed in a subsequent loop, causing an uninitialized variable warning. Initialize MiddleCount to zero at declaration to fix this. Signed-off-by: Tuan Phan <tuan.phan@oss.qualcomm.com>
2026-06-19ManageabilityPkg: Fix build failure issue on CLANGDWARF X64Qihang Gao1-0/+1
When building ManageabilityPkg with `-a X64 -t CLANGDWARF`, error message is throwed: BaseManageabilityTransportHelper.c:462:3: error: '__builtin_ms_va_start' used in System V ABI function 462 | VA_START (Marker, Format); | ^ Functions that call VA_START()/VA_END() must be declared with EFIAPI. The function HelperManageabilityDebugPrint() should also be declared with EFIAPI to ensure compliance with Microsoft X64 calling convention for CLANG. Signed-off-by: Qihang Gao <gaoqihang@loongson.cn>
2026-05-06ManageabilityPkg: add configurable KCS status-check timeout PCDAbdul Lateef Attar4-7/+10
Replace the hardcoded IPMI_KCS_TIMEOUT_5_SEC macro in WaitStatusSet() and WaitStatusClear() with PcdKcsStatusCheckTimeout so platform firmware can tune the KCS timeout without recompiling the library. - ManageabilityPkg.dec: declare PcdKcsStatusCheckTimeout (UINT64, 5000000 us) - KcsCommon.c: use PcdGet64(PcdKcsStatusCheckTimeout); add DEBUG on timeout - ManageabilityTransportKcs.h: remove now-unused IPMI_KCS_TIMEOUT_5_SEC macro - BaseManageabilityTransportKcs.inf, Dxe/DxeManageabilityTransportKcs.inf: add PcdKcsStatusCheckTimeout to [FixedPcd] Co-authored-by: Abner Chang <abner.chang@amd.com> Signed-off-by: Abdul Lateef Attar <AbdulLateef.Attar@amd.com>
2026-04-27ManageabilityPkg: Initial version of ManageabilityPkgAbner Chang42-0/+7049
ManageabilityPkg is migrated from edk2-platform repository. The last commit ID of ManageabilityPkg on edk2-platform is <4538a1b94c0e55d58e3841b2d640df7da0a3b149>. Signed-off-by: Abner Chang <abner.chang@amd.com>