From abea19dbe10720a4ef4f9e688996d71a493cebe9 Mon Sep 17 00:00:00 2001 From: qhuang8 Date: Tue, 25 Apr 2006 05:51:23 +0000 Subject: =?UTF-8?q?PeiSmbusLib=20&=20DxeSmbusLib=20=09Remove=20Arp=20Relat?= =?UTF-8?q?ed=20interfaces=20=09Change=20the=20return=20type=20of=20SmbusQ?= =?UTF-8?q?uickWrite=20from=20=E2=80=9CBOOLEAN=E2=80=9D=20to=20=E2=80=9CVO?= =?UTF-8?q?ID=E2=80=9D=20=09Complete=20interface=20SmBusBlockProcessCall()?= =?UTF-8?q?=20=09Make=20the=20PEC=20bit=20=E2=80=9Cbit=2021=E2=80=9D=20of?= =?UTF-8?q?=20SMBUS=20address.=20If=20data=20show=20that=20MSB=20helps=20t?= =?UTF-8?q?o=20save=20code=20size=20in=20BaseSmbusLib,=20we=20may=20simply?= =?UTF-8?q?=20redefine=20it=20to=20be=20MAX=5FBIT.=20UefiLib=20=09Modify?= =?UTF-8?q?=20the=20interfaces=20in=20UefiNotTiano.c=20to=20sync=20with=20?= =?UTF-8?q?spec=20MemoryAllocationLib=20=09Add=20extra=20checking=20in=20?= =?UTF-8?q?=E2=80=9CAligned=E2=80=9D=20Memory=20services=20to=20prevent=20?= =?UTF-8?q?=E2=80=9CAllocationSize=20+=20OverAllocation=E2=80=9D=20overflo?= =?UTF-8?q?w=20in=20DxeMemoryAllocationLib.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@23 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Library/UefiLib/UefiNotTiano.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'MdePkg/Library/UefiLib') diff --git a/MdePkg/Library/UefiLib/UefiNotTiano.c b/MdePkg/Library/UefiLib/UefiNotTiano.c index 2ac12f1b3a..f883c1d3c6 100644 --- a/MdePkg/Library/UefiLib/UefiNotTiano.c +++ b/MdePkg/Library/UefiLib/UefiNotTiano.c @@ -37,7 +37,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. EFI_STATUS EFIAPI EfiCreateEventLegacyBoot ( - OUT EFI_EVENT *LegacyBootEvent + OUT EFI_EVENT *LegacyBootEvent ) { EFI_STATUS Status; @@ -92,7 +92,7 @@ EfiCreateEventLegacyBoot ( EFI_STATUS EFIAPI EfiCreateEventReadyToBoot ( - IN EFI_EVENT *ReadyToBootEvent + OUT EFI_EVENT *ReadyToBootEvent ) { EFI_STATUS Status; @@ -196,7 +196,7 @@ EfiSignalEventLegacyBoot ( EFI_GUID * EFIAPI EfiGetNameGuidFromFwVolDevicePathNode ( - IN MEDIA_FW_VOL_FILEPATH_DEVICE_PATH *FvDevicePathNode + IN CONST MEDIA_FW_VOL_FILEPATH_DEVICE_PATH *FvDevicePathNode ) { ASSERT (FvDevicePathNode != NULL); @@ -207,7 +207,7 @@ EfiGetNameGuidFromFwVolDevicePathNode ( // if (DevicePathType (&FvDevicePathNode->Header) == MEDIA_DEVICE_PATH || DevicePathSubType (&FvDevicePathNode->Header) == MEDIA_FV_FILEPATH_DP) { - return &FvDevicePathNode->NameGuid; + return (EFI_GUID *) &FvDevicePathNode->NameGuid; } #else @@ -218,7 +218,7 @@ EfiGetNameGuidFromFwVolDevicePathNode ( FvDevicePathNode->Piwg.Header.SubType == MEDIA_VENDOR_DP) { if (CompareGuid (&gEfiFrameworkDevicePathGuid, &FvDevicePathNode->Piwg.PiwgSpecificDevicePath)) { if (FvDevicePathNode->Piwg.Type == PIWG_MEDIA_FW_VOL_FILEPATH_DEVICE_PATH_TYPE) { - return &FvDevicePathNode->NameGuid; + return (EFI_GUID *) &FvDevicePathNode->NameGuid; } } } @@ -237,15 +237,15 @@ EfiGetNameGuidFromFwVolDevicePathNode ( is compiled to conform with the UEFI 2.0 specification use the new device path else use the old form for backwards compatability. - @param FvDevicePathNode Pointer to a FV device path node to initialize - @param NameGuid FV file name to use in FvDevicePathNode + @param FvDevicePathNode Pointer to a FV device path node to initialize + @param NameGuid FV file name to use in FvDevicePathNode **/ VOID EFIAPI EfiInitializeFwVolDevicepathNode ( - IN MEDIA_FW_VOL_FILEPATH_DEVICE_PATH *FvDevicePathNode, - IN EFI_GUID *NameGuid + IN OUT MEDIA_FW_VOL_FILEPATH_DEVICE_PATH *FvDevicePathNode, + IN CONST EFI_GUID *NameGuid ) { ASSERT (FvDevicePathNode != NULL); -- cgit v1.2.3