Skip to content

Commit

Permalink
AmpereSiliconPkg: Fix conflicts when rebasing edk2-stable202311
Browse files Browse the repository at this point in the history
This resolves temporarily the conflicts when rebasing the edk2 repo to
the edk2-stable202311 tag in IpmiCommandLibExt.

For long term support, the IpmiCommandLibExt should be migrated to the
IpmiCommandLib in the upstream.

Signed-off-by: Nhi Pham <nhi@os.amperecomputing.com>
  • Loading branch information
nhivp committed Mar 15, 2024
1 parent 6bea449 commit 48f04b2
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 77 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#include <Uefi.h>

#include <IndustryStandard/IpmiNetFnApp.h>
#include <IndustryStandard/IpmiNetFnAppExt.h>
#include <Library/DebugLib.h>
#include <Library/SmbusLib.h>
#include <Library/UefiBootServicesTableLib.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#include <PiPei.h>

#include <IndustryStandard/IpmiNetFnApp.h>
#include <IndustryStandard/IpmiNetFnAppExt.h>
#include <Library/DebugLib.h>
#include <Library/SmbusLib.h>
#include <Library/PeiServicesLib.h>
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ IpmiGetBmcLanInfo (
**/
EFI_STATUS
EFIAPI
IpmiSetSystemBootOptions (
IpmiSetSystemBootOptionsExt (
IN IPMI_SET_BOOT_OPTIONS_REQUEST *SetBootOptionsRequest,
IN UINT32 SetBootOptionsRequestSize,
OUT UINT8 *CompletionCode
Expand All @@ -107,7 +107,7 @@ IpmiSetSystemBootOptions (
**/
EFI_STATUS
EFIAPI
IpmiGetSystemBootOptions (
IpmiGetSystemBootOptionsExt (
IN UINT8 ParameterSelector,
OUT IPMI_GET_BOOT_OPTIONS_RESPONSE *GetBootOptionsResponse,
IN OUT UINT32 *GetBootOptionsResponseSize
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

#include <Uefi.h>

#include <IndustryStandard/IpmiNetFnAppExt.h>
#include <Library/BaseLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/DebugLib.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#include <Uefi.h>

#include <IndustryStandard/Ipmi.h>
#include <IndustryStandard/IpmiNetFnAppExt.h>
#include <Library/BaseMemoryLib.h>
#include <Library/DebugLib.h>
#include <Library/IpmiCommandLibExt.h>
Expand Down Expand Up @@ -48,7 +47,7 @@ IpmiGetBmcLanInfo (
// Get Channel Information
//
ZeroMem (&GetChannelInfoRequest, sizeof (GetChannelInfoRequest));
GetChannelInfoRequest.Bits.ChannelNumber = BmcChannel;
GetChannelInfoRequest.ChannelNumber.Bits.ChannelNo = BmcChannel;

ResponseSize = sizeof (GetChannelInfoResponse);
Status = IpmiSubmitCommand (
Expand All @@ -69,7 +68,7 @@ IpmiGetBmcLanInfo (
//
if (EFI_ERROR (Status)
|| GetChannelInfoResponse.CompletionCode != IPMI_COMP_CODE_NORMAL
|| GetChannelInfoResponse.MediumType.Bits.ChannelMediumType != BMC_CHANNEL_MEDIUM_TYPE_ETHERNET)
|| GetChannelInfoResponse.MediumType.Bits.ChannelMediumType != IPMI_CHANNEL_MEDIA_TYPE_802_3_LAN)
{
return EFI_NOT_FOUND;
}
Expand Down Expand Up @@ -170,7 +169,7 @@ IpmiGetBmcLanInfo (
**/
EFI_STATUS
EFIAPI
IpmiSetSystemBootOptions (
IpmiSetSystemBootOptionsExt (
IN IPMI_SET_BOOT_OPTIONS_REQUEST *SetBootOptionsRequest,
IN UINT32 SetBootOptionsRequestSize,
OUT UINT8 *CompletionCode
Expand Down Expand Up @@ -232,7 +231,7 @@ IpmiSetSystemBootOptions (
**/
EFI_STATUS
EFIAPI
IpmiGetSystemBootOptions (
IpmiGetSystemBootOptionsExt (
IN UINT8 ParameterSelector,
OUT IPMI_GET_BOOT_OPTIONS_RESPONSE *GetBootOptionsResponse,
IN OUT UINT32 *GetBootOptionsResponseSize
Expand Down Expand Up @@ -308,7 +307,7 @@ IpmiSetBootInfoAck (
ParameterData->WriteMask = BIT0;
ParameterData->BootInitiatorAcknowledgeData = 0x0;

Status = IpmiSetSystemBootOptions (
Status = IpmiSetSystemBootOptionsExt (
SetBootOptionsRequest,
SetBootOptionsRequestSize,
&CompletionCode
Expand Down Expand Up @@ -350,7 +349,7 @@ IpmiGetBootInfoAck (

ParameterData = (IPMI_BOOT_OPTIONS_RESPONSE_PARAMETER_4 *)&GetBootOptionsResponse->ParameterData;

Status = IpmiGetSystemBootOptions (
Status = IpmiGetSystemBootOptionsExt (
IPMI_BOOT_OPTIONS_PARAMETER_BOOT_INFO_ACK,
GetBootOptionsResponse,
&GetBootOptionsResponseSize
Expand Down Expand Up @@ -389,7 +388,7 @@ IpmiClearBootFlags (

SetBootOptionsRequest->ParameterValid.Bits.ParameterSelector = IPMI_BOOT_OPTIONS_PARAMETER_BOOT_FLAGS;

Status = IpmiSetSystemBootOptions (
Status = IpmiSetSystemBootOptionsExt (
SetBootOptionsRequest,
SetBootOptionsRequestSize,
&CompletionCode
Expand Down Expand Up @@ -431,7 +430,7 @@ IpmiGetBootFlags (

ParameterData = (IPMI_BOOT_OPTIONS_RESPONSE_PARAMETER_5 *)&GetBootOptionsResponse->ParameterData;

Status = IpmiGetSystemBootOptions (
Status = IpmiGetSystemBootOptionsExt (
IPMI_BOOT_OPTIONS_PARAMETER_BOOT_FLAGS,
GetBootOptionsResponse,
&GetBootOptionsResponseSize
Expand Down Expand Up @@ -481,7 +480,7 @@ IpmiClearCmosBootFlags (

ParameterData = (IPMI_BOOT_OPTIONS_RESPONSE_PARAMETER_5 *)&GetBootOptionsResponse->ParameterData;

Status = IpmiGetSystemBootOptions (
Status = IpmiGetSystemBootOptionsExt (
IPMI_BOOT_OPTIONS_PARAMETER_BOOT_FLAGS,
GetBootOptionsResponse,
&GetBootOptionsResponseSize
Expand All @@ -506,7 +505,7 @@ IpmiClearCmosBootFlags (
ParameterData->Data2.Bits.CmosClear = IPMI_BOOT_FLAG_CLEAR_CMOS_NO;
CopyMem (&SetBootOptionsRequest->ParameterData, ParameterData, sizeof (IPMI_BOOT_OPTIONS_RESPONSE_PARAMETER_5));

Status = IpmiSetSystemBootOptions (
Status = IpmiSetSystemBootOptionsExt (
SetBootOptionsRequest,
SetBootOptionsRequestSize,
&CompletionCode
Expand Down

0 comments on commit 48f04b2

Please sign in to comment.