]> git.proxmox.com Git - mirror_edk2.git/commitdiff
OvmfPkg PlatformFvbLib: Change PlatformFvbDataWritten
authorjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Sun, 9 Jan 2011 03:50:39 +0000 (03:50 +0000)
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Sun, 9 Jan 2011 03:50:39 +0000 (03:50 +0000)
The new parameters closely match the
EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL Write function
parameters.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11239 6f19259b-4bc3-4df7-8a09-765794883524

OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.c
OvmfPkg/Include/Library/PlatformFvbLib.h
OvmfPkg/Library/EmuVariableFvbLib/EmuVariableFvbLib.c
OvmfPkg/Library/PlatformFvbLibNull/PlatformFvbLibNull.c

index 4229110719975ef1a59f7ffc04908439bec36d59..2076a8c6e9bb071e224da1494f359fc2f414eaf4 100644 (file)
@@ -2,7 +2,7 @@
   Firmware Block Services to support emulating non-volatile variables\r
   by pretending that a memory buffer is storage for the NV variables.\r
 \r
-  Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -473,7 +473,7 @@ FvbProtocolWrite (
 \r
   if (*NumBytes > 0) {\r
     CopyMem (FvbDataPtr, Buffer, *NumBytes);\r
-    PlatformFvbDataWritten (This, Lba);\r
+    PlatformFvbDataWritten (This, Lba, Offset, *NumBytes, Buffer);\r
   }\r
 \r
   return EFI_SUCCESS;\r
index d543d228a14c9ea5d79b562bafde9757a0a91e32..00d152cfdd60b4b00952b9a701f9abfdfe886b20 100644 (file)
@@ -2,7 +2,7 @@
   Library to define platform customization functions for a\r
   Firmare Volume Block driver.\r
 \r
-  Copyright (c) 2009, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
 \r
   @param[in] This     EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL instance.\r
   @param[in] Lba      The starting logical block index to written to.\r
+  @param[in] Offset   Offset into the block at which to begin writing.\r
+  @param[in] NumBytes The number of bytes written.\r
+  @param[in] Buffer   Pointer to the buffer that was written.\r
 \r
 **/\r
 VOID\r
 EFIAPI\r
 PlatformFvbDataWritten (\r
   IN CONST  EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL  *This,\r
-  IN        EFI_LBA                             Lba\r
+  IN        EFI_LBA                             Lba,\r
+  IN        UINTN                               Offset,\r
+  IN        UINTN                               NumBytes,\r
+  IN        UINT8                               *Buffer\r
   );\r
 \r
 #endif\r
index 7eea27c3203b0143679432edb20a3b6e52d401fa..88e33cb02c0d8c39b2d13a10f0402267076d884f 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   OVMF platform customization for EMU Variable FVB driver\r
 \r
-  Copyright (c) 2009, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
 \r
   @param[in] This     EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL instance.\r
   @param[in] Lba      The starting logical block index to written to.\r
+  @param[in] Offset   Offset into the block at which to begin writing.\r
+  @param[in] NumBytes The number of bytes written.\r
+  @param[in] Buffer   Pointer to the buffer that was written.\r
 \r
 **/\r
 VOID\r
 EFIAPI\r
 PlatformFvbDataWritten (\r
   IN CONST  EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL  *This,\r
-  IN        EFI_LBA                             Lba\r
+  IN        EFI_LBA                             Lba,\r
+  IN        UINTN                               Offset,\r
+  IN        UINTN                               NumBytes,\r
+  IN        UINT8                               *Buffer\r
   )\r
 {\r
   STATIC EFI_EVENT EventToSignal = NULL;\r
index e1a39bea2845027baa59d5b7193af1e277726af9..0edbaca5bf1fb65885dfee2a5bc7642bb43878d4 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   NULL PlatformFvbLib library instance\r
 \r
-  Copyright (c) 2009, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
 \r
   @param[in] This     EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL instance.\r
   @param[in] Lba      The starting logical block index to written to.\r
+  @param[in] Offset   Offset into the block at which to begin writing.\r
+  @param[in] NumBytes The number of bytes written.\r
+  @param[in] Buffer   Pointer to the buffer that was written.\r
 \r
 **/\r
 VOID\r
 EFIAPI\r
 PlatformFvbDataWritten (\r
   IN CONST  EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL  *This,\r
-  IN        EFI_LBA                             Lba\r
+  IN        EFI_LBA                             Lba,\r
+  IN        UINTN                               Offset,\r
+  IN        UINTN                               NumBytes,\r
+  IN        UINT8                               *Buffer\r
   )\r
 {\r
 }\r