]> git.proxmox.com Git - mirror_edk2.git/commitdiff
1. remove FirmwareVolumeBlock.h for IntelFrameworkPkg
authorvanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 2 Jul 2007 06:37:16 +0000 (06:37 +0000)
committervanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 2 Jul 2007 06:37:16 +0000 (06:37 +0000)
2. add [Depex] section in .inf files

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

IntelFrameworkModulePkg/Universal/DriverSampleDxe/DriverSample.dxs
IntelFrameworkModulePkg/Universal/DriverSampleDxe/DriverSample.inf
IntelFrameworkModulePkg/Universal/HiiDataBaseDxe/HiiDatabase.inf
IntelFrameworkModulePkg/Universal/StatusCode/Dxe/DxeStatusCode.inf
IntelFrameworkPkg/Include/Protocol/FirmwareVolumeBlock.h [deleted file]
MdeModulePkg/Universal/WatchDogTimerDxe/WatchDogTimer.inf
Nt32Pkg/CpuRuntimeDxe/Cpu.inf
Nt32Pkg/Library/DxeNt32OemHookStatusCodeLib/DxeNt32OemHookStatusCodeLib.inf
Nt32Pkg/MiscSubClassPlatformDxe/MiscSubclassDriver.inf
Nt32Pkg/ResetRuntimeDxe/Reset.inf
Nt32Pkg/TimerDxe/Timer.inf

index d88f5682d39267db01f37bd8367efdf8d872d59c..500e32e23878a20b6ab44158a0888ca03cfdcb1e 100644 (file)
@@ -1,13 +1,13 @@
 /*++\r
 \r
 /*++\r
 \r
-Copyright (c) 2007, Intel Corporation                                                         \r
-All rights reserved. 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
-http://opensource.org/licenses/bsd-license.php                                            \r
-                                                                                          \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+Copyright (c) 2007, Intel Corporation\r
+All rights reserved. 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
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 Module Name:\r
 \r
 \r
 Module Name:\r
 \r
@@ -16,7 +16,7 @@ Module Name:
 Abstract:\r
 \r
   Dependency expression source file.\r
 Abstract:\r
 \r
   Dependency expression source file.\r
-  \r
+\r
 --*/\r
 \r
 //\r
 --*/\r
 \r
 //\r
@@ -27,5 +27,5 @@ Abstract:
 #include <DxeDepex.h>\r
 \r
 DEPENDENCY_START\r
 #include <DxeDepex.h>\r
 \r
 DEPENDENCY_START\r
-  EFI_SIMPLE_TEXT_OUT_PROTOCOL_GUID\r
+  EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL_GUID\r
 DEPENDENCY_END\r
 DEPENDENCY_END\r
index acfeb8a873d06dc51a8ec797e6a467364cfcaaa3..1c1181cf7781ddee7fe1deb8d8cdd0d500617864 100644 (file)
   gEfiFormCallbackProtocolGuid                  # PROTOCOL ALWAYS_PRODUCED\r
   gEfiHiiProtocolGuid                           # PROTOCOL ALWAYS_CONSUMED\r
 \r
   gEfiFormCallbackProtocolGuid                  # PROTOCOL ALWAYS_PRODUCED\r
   gEfiHiiProtocolGuid                           # PROTOCOL ALWAYS_CONSUMED\r
 \r
+################################################################################\r
+#\r
+# Dependency Expression Section - list of Dependency expressions that are required for\r
+#                              this module.\r
+#\r
+################################################################################\r
+\r
+[Depex]\r
+  gEfiSimpleTextOutProtocolGuid
\ No newline at end of file
index 93c5a577d7d130ec2eab459f6275421481f360c9..963ccf35cd63ed977cd45e748b6f7cf9633b643b 100644 (file)
   gEfiFormCallbackProtocolGuid                  # PROTOCOL SOMETIMES_CONSUMED\r
   gEfiHiiProtocolGuid                           # PROTOCOL ALWAYS_PRODUCED\r
 \r
   gEfiFormCallbackProtocolGuid                  # PROTOCOL SOMETIMES_CONSUMED\r
   gEfiHiiProtocolGuid                           # PROTOCOL ALWAYS_PRODUCED\r
 \r
+################################################################################\r
+#\r
+# Dependency Expression Section - list of Dependency expressions that are required for\r
+#                              this module.\r
+#\r
+################################################################################\r
+\r
+[Depex]\r
+  TRUE\r
index 6a863bcdff4c21896e3f1482ff9d316253421a47..29623844e5730f12a105ca2b9becf49f992958f4 100644 (file)
 [PcdsDynamic.common]\r
   PcdStatusCodeRuntimeMemorySize|gEfiIntelFrameworkModulePkgTokenSpaceGuid\r
 \r
 [PcdsDynamic.common]\r
   PcdStatusCodeRuntimeMemorySize|gEfiIntelFrameworkModulePkgTokenSpaceGuid\r
 \r
+################################################################################\r
+#\r
+# Dependency Expression Section - list of Dependency expressions that are required for\r
+#                              this module.\r
+#\r
+################################################################################\r
+\r
+[Depex]\r
+  gEfiDataHubProtocolGuid AND gEfiCpuIoProtocolGuid
\ No newline at end of file
diff --git a/IntelFrameworkPkg/Include/Protocol/FirmwareVolumeBlock.h b/IntelFrameworkPkg/Include/Protocol/FirmwareVolumeBlock.h
deleted file mode 100644 (file)
index 04d5baa..0000000
+++ /dev/null
@@ -1,252 +0,0 @@
-/** @file\r
-  This file declares Firmware Volume Block protocol.\r
-\r
-  Low level firmware device access routines to abstract firmware device\r
-  hardware.\r
-\r
-  Copyright (c) 2007, Intel Corporation\r
-  All rights reserved. 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
-  http://opensource.org/licenses/bsd-license.php\r
-\r
-  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-\r
-  Module Name:  FirmwareVolumeBlock.h\r
-\r
-  @par Revision Reference:\r
-  This protocol is defined in Framework of EFI Firmware Volume Block specification.\r
-  Version 0.9\r
-\r
-**/\r
-\r
-#ifndef _FIRMWARE_VOLUME_BLOCK_H_\r
-#define _FIRMWARE_VOLUME_BLOCK_H_\r
-\r
-#include <PiDxe.h>\r
-\r
-#define EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL_GUID \\r
-  { \\r
-    0xDE28BC59, 0x6228, 0x41BD, {0xBD, 0xF6, 0xA3, 0xB9, 0xAD, 0xB5, 0x8D, 0xA1 } \\r
-  }\r
-\r
-typedef struct _EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL  EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL;\r
-\r
-/**\r
-  Retrieves Volume attributes.  No polarity translations are done.\r
-\r
-  @param  This                  Calling context\r
-  @param  Attributes            output buffer which contains attributes\r
-\r
-  @retval EFI_INVALID_PARAMETER\r
-  @retval EFI_SUCCESS\r
-\r
-**/\r
-typedef\r
-EFI_STATUS\r
-(EFIAPI *EFI_FVB_GET_ATTRIBUTES) (\r
-  IN EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL           *This,\r
-  OUT EFI_FVB_ATTRIBUTES                          *Attributes\r
-  )\r
-;\r
-\r
-/**\r
-  Sets Volume attributes.  No polarity translations are done.\r
-\r
-  @param  This                  Calling context\r
-  @param  Attributes            On input: contains new attributes\r
-                                On output: contains current attributes of FV\r
-\r
-  @retval EFI_INVALID_PARAMETER\r
-  @retval EFI_SUCCESS\r
-\r
-**/\r
-typedef\r
-EFI_STATUS\r
-(EFIAPI *EFI_FVB_SET_ATTRIBUTES) (\r
-  IN EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL           *This,\r
-  IN OUT EFI_FVB_ATTRIBUTES                       *Attributes\r
-  )\r
-;\r
-\r
-/**\r
-  Retrieves the physical address of a memory mapped FV.\r
-\r
-  @param  This                  Calling context\r
-  @param  Attributes            Address is a pointer to a caller allocated EFI_PHYSICAL_ADDRESS\r
-                                that on successful return from GetPhysicalAddress() contains the\r
-                                base address of the firmware volume.\r
-\r
-  @retval EFI_UNSUPPORTED\r
-  @retval EFI_SUCCESS\r
-\r
-**/\r
-typedef\r
-EFI_STATUS\r
-(EFIAPI *EFI_FVB_GET_PHYSICAL_ADDRESS) (\r
-  IN EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL           *This,\r
-  OUT EFI_PHYSICAL_ADDRESS                        *Address\r
-  )\r
-;\r
-\r
-/**\r
-  Retrieves the size in bytes of a specific block within an FV.\r
-\r
-  @param  This                  Calling context.\r
-  @param  Lba                   Indicates which block to return the size for.\r
-  @param  BlockSize             BlockSize is a pointer to a caller allocated\r
-                                UINTN in which the size of the block is returned.\r
-  @param  NumberOfBlocks        NumberOfBlocks is a pointer to a caller allocated\r
-                                UINTN in which the number of consecutive blocks\r
-                                starting with Lba is returned. All blocks in this\r
-                                range have a size of BlockSize.\r
-\r
-  @retval EFI_INVALID_PARAMETER\r
-  @retval EFI_SUCCESS\r
-\r
-**/\r
-typedef\r
-EFI_STATUS\r
-(EFIAPI *EFI_FVB_GET_BLOCK_SIZE) (\r
-  IN EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL           *This,\r
-  IN EFI_LBA                                      Lba,\r
-  OUT UINTN                                       *BlockSize,\r
-  OUT UINTN                                       *NumberOfBlocks\r
-  )\r
-;\r
-\r
-/**\r
-  Reads data beginning at Lba:Offset from FV and places the data in Buffer.\r
-  The read terminates either when *NumBytes of data have been read, or when\r
-  a block boundary is reached.  *NumBytes is updated to reflect the actual\r
-  number of bytes read.\r
-\r
-  @param  This                  Calling context\r
-  @param  Lba                   Block in which to begin read\r
-  @param  Offset                Offset in the block at which to begin read\r
-  @param  NumBytes              At input, indicates the requested read size. At output, indicates\r
-                                the actual number of bytes read.\r
-  @param  Buffer                Data buffer in which to place data read.\r
-\r
-  @retval EFI_INVALID_PARAMETER\r
-  @retval EFI_NOT_FOUND\r
-  @retval EFI_DEVICE_ERROR\r
-  @retval EFI_SUCCESS\r
-\r
-**/\r
-typedef\r
-EFI_STATUS\r
-(EFIAPI *EFI_FVB_READ) (\r
-  IN EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL           *This,\r
-  IN EFI_LBA                                      Lba,\r
-  IN UINTN                                        Offset,\r
-  IN OUT UINTN                                    *NumBytes,\r
-  OUT UINT8                                       *Buffer\r
-  )\r
-;\r
-\r
-/**\r
-  Writes data beginning at Lba:Offset from FV. The write terminates either\r
-  when *NumBytes of data have been written, or when a block boundary is\r
-  reached.  *NumBytes is updated to reflect the actual number of bytes\r
-  written.\r
-\r
-  @param  This                  Calling context\r
-  @param  Lba                   Block in which to begin write\r
-  @param  Offset                Offset in the block at which to begin write\r
-  @param  NumBytes              At input, indicates the requested write size. At output, indicates\r
-                                the actual number of bytes written.\r
-  @param  Buffer                Buffer containing source data for the write.\r
-\r
-  @retval EFI_INVALID_PARAMETER\r
-  @retval EFI_NOT_FOUND\r
-  @retval EFI_DEVICE_ERROR\r
-  @retval EFI_SUCCESS\r
-\r
-**/\r
-typedef\r
-EFI_STATUS\r
-(EFIAPI *EFI_FVB_WRITE) (\r
-  IN EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL           *This,\r
-  IN EFI_LBA                                      Lba,\r
-  IN UINTN                                        Offset,\r
-  IN OUT UINTN                                    *NumBytes,\r
-  IN UINT8                                        *Buffer\r
-  )\r
-;\r
-\r
-#define EFI_LBA_LIST_TERMINATOR 0xFFFFFFFFFFFFFFFFULL\r
-\r
-/**\r
-  The EraseBlock() function erases one or more blocks as denoted by the\r
-  variable argument list. The entire parameter list of blocks must be verified\r
-  prior to erasing any blocks.  If a block is requested that does not exist\r
-  within the associated firmware volume (it has a larger index than the last\r
-  block of the firmware volume), the EraseBlock() function must return\r
-  EFI_INVALID_PARAMETER without modifying the contents of the firmware volume.\r
-\r
-  @param  This                  Calling context\r
-  @param  ...                   Starting LBA followed by Number of Lba to erase. a -1 to terminate\r
-                                the list.\r
-\r
-  @retval EFI_INVALID_PARAMETER\r
-  @retval EFI_DEVICE_ERROR\r
-  @retval EFI_SUCCESS\r
-  @retval EFI_ACCESS_DENIED\r
-\r
-**/\r
-typedef\r
-EFI_STATUS\r
-(EFIAPI *EFI_FVB_ERASE_BLOCKS) (\r
-  IN EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL           *This,\r
-  ...\r
-  )\r
-;\r
-\r
-/**\r
-  @par Protocol Description:\r
-  This protocol provides control over block-oriented firmware devices.\r
-  Typically, the FFS (or an alternate file system) driver consumes the\r
-  Firmware Volume Block Protocol and produces the Firmware Volume Protocol.\r
-\r
-  @param GetAttributes\r
-  Retrieves the current volume attributes.\r
-\r
-  @param SetAttributes\r
-  Sets the current volume attributes.\r
-\r
-  @param GetPhysicalAddress\r
-  Retrieves the memory-mapped address of the firmware volume.\r
-\r
-  @param GetBlockSize\r
-  Retrieves the size for a specific block.\r
-\r
-  @param Read\r
-  Reads n bytes into a buffer from the firmware volume hardware.\r
-\r
-  @param Write\r
-  Writes n bytes from a buffer into the firmware volume hardware.\r
-\r
-  @param EraseBlocks\r
-  Erases specified block(s) and sets all values as indicated by\r
-  the EFI_FVB_ERASE_POLARITY bit.\r
-\r
-  @param ParentHandle\r
-  Handle of the parent firmware volume.\r
-\r
-**/\r
-struct _EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL {\r
-  EFI_FVB_GET_ATTRIBUTES        GetVolumeAttributes;\r
-  EFI_FVB_SET_ATTRIBUTES        SetVolumeAttributes;\r
-  EFI_FVB_GET_PHYSICAL_ADDRESS  GetPhysicalAddress;\r
-  EFI_FVB_GET_BLOCK_SIZE        GetBlockSize;\r
-  EFI_FVB_READ                  Read;\r
-  EFI_FVB_WRITE                 Write;\r
-  EFI_FVB_ERASE_BLOCKS          EraseBlocks;\r
-  EFI_HANDLE                    ParentHandle;\r
-};\r
-\r
-extern EFI_GUID gEfiFirmwareVolumeBlockProtocolGuid;\r
-\r
-#endif\r
index 07e106526d68aa3512cfc0a3a6a3fb691c297b79..7c3984d488096781580a539310aad824d7916a43 100644 (file)
 [Protocols]\r
   gEfiWatchdogTimerArchProtocolGuid             # PROTOCOL ALWAYS_PRODUCED\r
 \r
 [Protocols]\r
   gEfiWatchdogTimerArchProtocolGuid             # PROTOCOL ALWAYS_PRODUCED\r
 \r
+################################################################################\r
+#\r
+# Dependency Expression Section - list of Dependency expressions that are required for\r
+#                              this module.\r
+#\r
+################################################################################\r
 [depex]\r
 [depex]\r
-  gEfiWatchdogTimerArchProtocolGuid
\ No newline at end of file
+  gEfiTimerArchProtocolGuid
\ No newline at end of file
index 6e78412a258d00b365718c203285c0dc051ec904..e659b7b1ad072c076fc1a478ea2f441ee1c6a1cf 100644 (file)
   gEfiCpuIoProtocolGuid                         # PROTOCOL ALWAYS_PRODUCED\r
   gEfiCpuArchProtocolGuid                       # PROTOCOL ALWAYS_PRODUCED\r
 \r
   gEfiCpuIoProtocolGuid                         # PROTOCOL ALWAYS_PRODUCED\r
   gEfiCpuArchProtocolGuid                       # PROTOCOL ALWAYS_PRODUCED\r
 \r
+################################################################################\r
+#\r
+# Dependency Expression Section - list of Dependency expressions that are required for\r
+#                              this module.\r
+#\r
+################################################################################\r
+\r
+[Depex]\r
+  gEfiDataHubProtocolGuid AND gEfiHiiProtocolGuid\r
index bd00ebf909bfc46b83bd5f7de48e2f8988c16d84..463436701ccb56147e08052b35cdd92376b6f707 100644 (file)
 ################################################################################\r
 \r
 [Packages]\r
 ################################################################################\r
 \r
 [Packages]\r
-  MdePkg/MdePkg.dec\r
+  IntelFrameworkModulePkg/IntelFrameworkModulePkg.dec\r
   Nt32Pkg/Nt32Pkg.dec\r
   Nt32Pkg/Nt32Pkg.dec\r
+  MdePkg/MdePkg.dec\r
   IntelFrameworkPkg/IntelFrameworkPkg.dec\r
   IntelFrameworkPkg/IntelFrameworkPkg.dec\r
-  IntelFrameworkModulePkg/IntelFrameworkModulePkg.dec\r
 \r
 \r
 ################################################################################\r
 \r
 \r
 ################################################################################\r
index a26d6f761ca8e00d21605325390b440b236876da..6d8efdedc0701cacceaff7e1a12de35f3112791b 100644 (file)
   gEfiHiiProtocolGuid                           # PROTOCOL ALWAYS_CONSUMED\r
   gEfiDataHubProtocolGuid                       # PROTOCOL ALWAYS_CONSUMED\r
 \r
   gEfiHiiProtocolGuid                           # PROTOCOL ALWAYS_CONSUMED\r
   gEfiDataHubProtocolGuid                       # PROTOCOL ALWAYS_CONSUMED\r
 \r
+################################################################################\r
+#\r
+# Dependency Expression Section - list of Dependency expressions that are required for\r
+#                              this module.\r
+#\r
+################################################################################\r
+\r
+[Depex]\r
+  gEfiDataHubProtocolGuid AND gEfiHiiProtocolGuid
\ No newline at end of file
index bdf2733e578307a99d40ee9927f3ed76af7e88d2..dd4c5ec0308cb1b1fe4f0d665ea71a3b9d8b7668 100644 (file)
 [Protocols]\r
   gEfiResetArchProtocolGuid                     # PROTOCOL ALWAYS_PRODUCED\r
 \r
 [Protocols]\r
   gEfiResetArchProtocolGuid                     # PROTOCOL ALWAYS_PRODUCED\r
 \r
+################################################################################\r
+#\r
+# Dependency Expression Section - list of Dependency expressions that are required for\r
+#                              this module.\r
+#\r
+################################################################################\r
+\r
+[Depex]\r
+  TRUE\r
+\r
index 82a2a9e72a7a2489dd7446c2b173f63b6f25d572..d18584f03d1d225313da5f1bee27c7cddd28d0fb 100644 (file)
 [Protocols]\r
   gEfiCpuArchProtocolGuid                       # PROTOCOL ALWAYS_CONSUMED\r
   gEfiTimerArchProtocolGuid                     # PROTOCOL ALWAYS_PRODUCED\r
 [Protocols]\r
   gEfiCpuArchProtocolGuid                       # PROTOCOL ALWAYS_CONSUMED\r
   gEfiTimerArchProtocolGuid                     # PROTOCOL ALWAYS_PRODUCED\r
+\r
+################################################################################\r
+#\r
+# Dependency Expression Section - list of Dependency expressions that are required for\r
+#                              this module.\r
+#\r
+################################################################################\r
+\r
+[Depex]\r
+  gEfiCpuArchProtocolGuid
\ No newline at end of file