]> git.proxmox.com Git - mirror_edk2.git/blame - OvmfPkg/Library/EmuVariableFvbLib/EmuVariableFvbLib.c
Update the copyright notice format
[mirror_edk2.git] / OvmfPkg / Library / EmuVariableFvbLib / EmuVariableFvbLib.c
CommitLineData
61069836 1/** @file\r
2 OVMF platform customization for EMU Variable FVB driver\r
3\r
4 Copyright (c) 2009, Intel Corporation\r
5 All rights reserved. This program and the accompanying materials\r
6 are licensed and made available under the terms and conditions of the BSD License\r
7 which accompanies this distribution. The full text of the license may be found at\r
8 http://opensource.org/licenses/bsd-license.php\r
9\r
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13**/\r
14\r
15#include "PiDxe.h"\r
16#include <Library/DebugLib.h>\r
17#include <Library/PcdLib.h>\r
18#include <Library/PlatformFvbLib.h>\r
19#include <Library/UefiBootServicesTableLib.h>\r
20#include <Library/UefiRuntimeLib.h>\r
21\r
22\r
23/**\r
24 This function will be called following a call to the\r
25 EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL Write function.\r
26\r
27 @param[in] This EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL instance.\r
28 @param[in] Lba The starting logical block index to written to.\r
29\r
30**/\r
31VOID\r
32EFIAPI\r
33PlatformFvbDataWritten (\r
34 IN CONST EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *This,\r
35 IN EFI_LBA Lba\r
36 )\r
37{\r
38 STATIC EFI_EVENT EventToSignal = NULL;\r
39\r
40 if (!EfiAtRuntime ()) {\r
41 if (EventToSignal == NULL) {\r
42 EventToSignal = (EFI_EVENT)(UINTN) PcdGet64 (PcdEmuVariableEvent);\r
43 }\r
44 if (EventToSignal != NULL) {\r
45 gBS->SignalEvent (EventToSignal);\r
46 }\r
47 }\r
48}\r
49\r
50\r