diff options
author | zwei4 <david.wei@intel.com> | 2017-05-11 10:19:38 +0800 |
---|---|---|
committer | zwei4 <david.wei@intel.com> | 2017-05-11 10:24:34 +0800 |
commit | 96ad5326ae4e0d6bf55100fe6b5b1631f17e5b43 (patch) | |
tree | b82b4548d41db9442443bbe61b1758613de7cf5d /Silicon/BroxtonSoC/BroxtonSiPkg/Library | |
parent | 836c825cf64ca43e4a8c1f7a558563a8d46d7471 (diff) | |
download | edk2-platforms-96ad5326ae4e0d6bf55100fe6b5b1631f17e5b43.tar.xz |
Fixed some GCC build errors.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: zwei4 <david.wei@intel.com>
Diffstat (limited to 'Silicon/BroxtonSoC/BroxtonSiPkg/Library')
4 files changed, 26 insertions, 25 deletions
diff --git a/Silicon/BroxtonSoC/BroxtonSiPkg/Library/PmcIpcLib/BaseIpcLib.c b/Silicon/BroxtonSoC/BroxtonSiPkg/Library/PmcIpcLib/BaseIpcLib.c index 48e037bd91..77aaa85ec4 100644 --- a/Silicon/BroxtonSoC/BroxtonSiPkg/Library/PmcIpcLib/BaseIpcLib.c +++ b/Silicon/BroxtonSoC/BroxtonSiPkg/Library/PmcIpcLib/BaseIpcLib.c @@ -1,7 +1,7 @@ /** @file
Base IPC library implementation.
- Copyright (c) 1999 - 2016, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 1999 - 2017, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
@@ -66,6 +66,7 @@ ReadyForNewIpc ( **/
EFI_STATUS
+EFIAPI
IpcSendCommandEx (
IN UINT32 Command,
IN UINT8 SubCommand,
@@ -108,7 +109,7 @@ IpcSendCommandEx ( @param[in, out] BufferSize The size, in bytes, of Buffer. Ignored if Buffer is NULL.
**/
-RETURN_STATUS
+EFI_STATUS
EFIAPI
IpcSendCommandBar0Ex (
IN UINT32 PciBar0,
diff --git a/Silicon/BroxtonSoC/BroxtonSiPkg/Library/Private/BaseCseVariableStorageLib/BaseCseVariableStorageLib.c b/Silicon/BroxtonSoC/BroxtonSiPkg/Library/Private/BaseCseVariableStorageLib/BaseCseVariableStorageLib.c index f60ed52ab8..9364953941 100644 --- a/Silicon/BroxtonSoC/BroxtonSiPkg/Library/Private/BaseCseVariableStorageLib/BaseCseVariableStorageLib.c +++ b/Silicon/BroxtonSoC/BroxtonSiPkg/Library/Private/BaseCseVariableStorageLib/BaseCseVariableStorageLib.c @@ -1,7 +1,7 @@ /** @file
CSE Variable Storage Library.
- Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 2016-2017, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
@@ -110,7 +110,7 @@ EstablishAndLoadCseVariableStores ( //
// Check if the variable store exists
//
- Status = HeciGetNVMFileSize (CseVariableFileInfo[Type]->FileName, &VariableHeaderRegionBufferSize);
+ Status = HeciGetNVMFileSize ((UINT8 *)(CseVariableFileInfo[Type]->FileName), &VariableHeaderRegionBufferSize);
//
// If there's an error finding the file, do not establish this store as
@@ -354,9 +354,9 @@ ReadCseNvmFile ( }
if (HeciProtocolActive == CseVariableHeci1Protocol) {
- return HeciReadNVMFile (CseFileName, FileOffset, Data, DataSize);
+ return HeciReadNVMFile ((UINT8 *)CseFileName, FileOffset, Data, DataSize);
} else if (Heci2Protocol != NULL) {
- return Heci2ReadNVMFile (CseFileName, FileOffset, Data, DataSize, Heci2Protocol);
+ return Heci2ReadNVMFile ((UINT8 *)CseFileName, FileOffset, Data, DataSize, Heci2Protocol);
} else {
ASSERT (FALSE);
}
@@ -412,9 +412,9 @@ UpdateCseNvmFile ( }
if (HeciProtocolActive == CseVariableHeci1Protocol) {
- return HeciWriteNVMFile (CseFileName, FileOffset, Data, DataSize, Truncate);
+ return HeciWriteNVMFile ((UINT8 *)CseFileName, FileOffset, Data, DataSize, Truncate);
} else if (Heci2Protocol != NULL) {
- Status = Heci2WriteNVMFile (CseFileName, FileOffset, Data, DataSize, Truncate);
+ Status = Heci2WriteNVMFile ((UINT8 *)CseFileName, FileOffset, Data, DataSize, Truncate);
return Status;
} else {
ASSERT (FALSE);
@@ -455,7 +455,7 @@ CreateCseNvmVariableStore ( //
// Check if a variable store already exists
//
- Status = HeciGetNVMFileSize (StoreFileName, StoreSize);
+ Status = HeciGetNVMFileSize ((UINT8 *)StoreFileName, StoreSize);
if (Status == EFI_SUCCESS || (Status != EFI_NOT_FOUND && EFI_ERROR (Status))) {
return Status;
}
@@ -731,10 +731,10 @@ FindVariableEx ( EFI_STATUS
EFIAPI
FindVariable (
- IN CONST CHAR16 *VariableName,
- IN CONST EFI_GUID *VendorGuid,
- IN CONST CSE_VARIABLE_FILE_INFO **CseVariableFileInfo,
- OUT VARIABLE_NVM_POINTER_TRACK *VariablePtrTrack
+ IN CONST CHAR16 *VariableName,
+ IN CONST EFI_GUID *VendorGuid,
+ IN CSE_VARIABLE_FILE_INFO **CseVariableFileInfo,
+ OUT VARIABLE_NVM_POINTER_TRACK *VariablePtrTrack
)
{
EFI_STATUS Status;
@@ -801,9 +801,9 @@ FindVariable ( EFI_STATUS
EFIAPI
GetNextCseVariableName (
- IN CHAR16 *VariableName,
- IN EFI_GUID *VariableGuid,
- IN CSE_VARIABLE_FILE_INFO **CseVariableFileInfo,
+ IN CONST CHAR16 *VariableName,
+ IN CONST EFI_GUID *VariableGuid,
+ IN CSE_VARIABLE_FILE_INFO **CseVariableFileInfo,
OUT VARIABLE_NVM_HEADER **VariablePtr,
OUT BOOLEAN *IsAuthVariable
)
@@ -979,9 +979,9 @@ GetNextCseVariableName ( EFI_STATUS
EFIAPI
GetCseVariable (
- IN CONST CSE_VARIABLE_FILE_INFO **CseVariableFileInfo,
- IN CONST CHAR16 *VariableName,
- IN CONST EFI_GUID *VariableGuid,
+ IN CSE_VARIABLE_FILE_INFO **CseVariableFileInfo,
+ IN CONST CHAR16 *VariableName,
+ IN CONST EFI_GUID *VariableGuid,
OUT UINT32 *Attributes OPTIONAL,
IN OUT UINTN *DataSize,
OUT VOID *Data,
diff --git a/Silicon/BroxtonSoC/BroxtonSiPkg/Library/Private/DxeSmmCseVariableStorageSelectorLib/CseVariableStorageSelectorLib.c b/Silicon/BroxtonSoC/BroxtonSiPkg/Library/Private/DxeSmmCseVariableStorageSelectorLib/CseVariableStorageSelectorLib.c index 1087196154..be65bd8a1b 100644 --- a/Silicon/BroxtonSoC/BroxtonSiPkg/Library/Private/DxeSmmCseVariableStorageSelectorLib/CseVariableStorageSelectorLib.c +++ b/Silicon/BroxtonSoC/BroxtonSiPkg/Library/Private/DxeSmmCseVariableStorageSelectorLib/CseVariableStorageSelectorLib.c @@ -31,9 +31,9 @@ EFI_HECI_PROTOCOL *mHeci2Protocol = NULL; CSE_VARIABLE_FILE_TYPE
EFIAPI
GetCseVariableStoreFileType (
- IN CONST CHAR16 *VariableName,
- IN CONST EFI_GUID *VendorGuid,
- IN CONST CSE_VARIABLE_FILE_INFO **CseVariableFileInfo
+ IN CONST CHAR16 *VariableName,
+ IN CONST EFI_GUID *VendorGuid,
+ IN CSE_VARIABLE_FILE_INFO **CseVariableFileInfo
)
{
CSE_VARIABLE_FILE_TYPE Type;
diff --git a/Silicon/BroxtonSoC/BroxtonSiPkg/Library/Private/PeiCseVariableStorageSelectorLib/PeiCseVariableStorageSelectorLib.c b/Silicon/BroxtonSoC/BroxtonSiPkg/Library/Private/PeiCseVariableStorageSelectorLib/PeiCseVariableStorageSelectorLib.c index a9d93fe680..f2caaa4f56 100644 --- a/Silicon/BroxtonSoC/BroxtonSiPkg/Library/Private/PeiCseVariableStorageSelectorLib/PeiCseVariableStorageSelectorLib.c +++ b/Silicon/BroxtonSoC/BroxtonSiPkg/Library/Private/PeiCseVariableStorageSelectorLib/PeiCseVariableStorageSelectorLib.c @@ -32,9 +32,9 @@ CSE_VARIABLE_FILE_TYPE
EFIAPI
GetCseVariableStoreFileType (
- IN CONST CHAR16 *VariableName,
- IN CONST EFI_GUID *VendorGuid,
- IN CONST CSE_VARIABLE_FILE_INFO **CseVariableFileInfo
+ IN CONST CHAR16 *VariableName,
+ IN CONST EFI_GUID *VendorGuid,
+ IN CSE_VARIABLE_FILE_INFO **CseVariableFileInfo
)
{
CSE_VARIABLE_FILE_TYPE Type;
|