X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=EmbeddedPkg%2FLibrary%2FTemplateResetSystemLib%2FResetSystemLib.c;h=328bcbcf165ceaf69660791a235d962b0214353e;hp=5c482a29f74bb208b02dafbc3775944c133ad6a4;hb=3402aac7d985bf8a9f9d3c639f3fe93609380513;hpb=62d441fb17d59958bf00c4a1f3b52bf6a0b40b24 diff --git a/EmbeddedPkg/Library/TemplateResetSystemLib/ResetSystemLib.c b/EmbeddedPkg/Library/TemplateResetSystemLib/ResetSystemLib.c index 5c482a29f7..328bcbcf16 100644 --- a/EmbeddedPkg/Library/TemplateResetSystemLib/ResetSystemLib.c +++ b/EmbeddedPkg/Library/TemplateResetSystemLib/ResetSystemLib.c @@ -1,11 +1,11 @@ /** @file Template library implementation to support ResetSystem Runtime call. - + Fill in the templates with what ever makes you system reset. Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.
- + This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -46,30 +46,30 @@ LibResetSystem ( { UINTN Address; UINT8 Data; - - + + switch (ResetType) { case EfiResetCold: // system power cycle - + // Example using IoLib functions to do IO. Address = 0x12345678; Data = MmioRead8 (Address); MmioWrite8 (Address, Data | 0x01); - + // Note this is a bad example asa MmioOr8 (Address, 0x01) does the same thing break; - + case EfiResetWarm: - // not a full power cycle, maybe memory stays around. + // not a full power cycle, maybe memory stays around. // if not support do the same thing as EfiResetCold. break; - + case EfiResetShutdown: // turn off the system. // if not support do the same thing as EfiResetCold. break; - + default: return EFI_INVALID_PARAMETER; } @@ -79,7 +79,7 @@ LibResetSystem ( // return EFI_DEVICE_ERROR; } - + /** @@ -87,7 +87,7 @@ LibResetSystem ( @param ImageHandle The firmware allocated handle for the EFI image. @param SystemTable A pointer to the EFI System Table. - + @retval EFI_SUCCESS The constructor always returns EFI_SUCCESS. **/