]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Add preparation for FAR release.
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 21 Dec 2007 03:27:03 +0000 (03:27 +0000)
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 21 Dec 2007 03:27:03 +0000 (03:27 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4413 6f19259b-4bc3-4df7-8a09-765794883524

OptionRomPkg/AtapiPassThruDxe/AtapiPassThruDxe.inf
OptionRomPkg/AtapiPassThruDxe/AtapiPassThruDxe.msa [new file with mode: 0644]
OptionRomPkg/CirrusLogic5430Dxe/CirrusLogic5430Dxe.inf
OptionRomPkg/CirrusLogic5430Dxe/CirrusLogic5430Dxe.msa [new file with mode: 0644]
OptionRomPkg/OptionRomPkg.dec
OptionRomPkg/OptionRomPkg.nspd [new file with mode: 0644]
OptionRomPkg/ReadMe.txt

index 9fe6f5459ae1e6e3151b08abc05a241f42c90eff..735101b36c9a9b4d7100428ad86167470008f158 100644 (file)
@@ -1,9 +1,9 @@
 #/** @file\r
-# Description file for the Atapi Passthru component.\r
+# Description file for the Atapi Pass Thru driver.\r
 #\r
 # This driver simulates SCSI devices with Atapi devices to test the SCSI io\r
 #  protocol.\r
-# Copyright (c) 2006 - 2007, Intel Corporation\r
+# Copyright (c) 2007, Intel Corporation\r
 #\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
@@ -17,7 +17,7 @@
 \r
 [Defines]\r
   INF_VERSION                    = 0x00010005\r
-  BASE_NAME                      = AtapiPassThru\r
+  BASE_NAME                      = AtapiPassThruDxe\r
   FILE_GUID                      = E49061CE-99A7-41d3-AB3A-36E5CFBAD63E\r
   MODULE_TYPE                    = UEFI_DRIVER\r
   VERSION_STRING                 = 1.0\r
diff --git a/OptionRomPkg/AtapiPassThruDxe/AtapiPassThruDxe.msa b/OptionRomPkg/AtapiPassThruDxe/AtapiPassThruDxe.msa
new file mode 100644 (file)
index 0000000..a6b4779
--- /dev/null
@@ -0,0 +1,95 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<ModuleSurfaceArea xmlns="http://www.TianoCore.org/2006/Edk2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\r
+  <MsaHeader>\r
+    <ModuleName>AtapiPassThruDxe</ModuleName>\r
+    <ModuleType>UEFI_DRIVER</ModuleType>\r
+    <GuidValue>E49061CE-99A7-41d3-AB3A-36E5CFBAD63E</GuidValue>\r
+    <Version>0.1</Version>\r
+    <Abstract>Description file for the Atapi Pass Thru driver.</Abstract>\r
+    <Description>This driver simulates SCSI devices with Atapi devices to test the SCSI IO protocol.</Description>\r
+    <Copyright>Copyright (c) 2007, Intel Corporation.</Copyright>\r
+    <License>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 http://opensource.org/licenses/bsd-license.php
+      THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES
+      OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.</License>\r
+    <Specification>FRAMEWORK_BUILD_PACKAGING_SPECIFICATION   0x00000052</Specification>\r
+  </MsaHeader>\r
+  <ModuleDefinitions>\r
+    <SupportedArchitectures>IA32 X64 IPF EBC</SupportedArchitectures>\r
+    <BinaryModule>false</BinaryModule>\r
+    <OutputFileBasename>AtapiPassThruDxe</OutputFileBasename>\r
+  </ModuleDefinitions>\r
+  <SourceFiles>\r
+    <Filename>AtapiPassThru.c</Filename>\r
+    <Filename>AtapiPassThru.h</Filename>\r
+    <Filename>ComponentName.c</Filename>\r
+    <Filename>DriverSupportedEfiVersion.c</Filename>\r
+  </SourceFiles>\r
+  <LibraryClassDefinitions>\r
+    <LibraryClass Usage="ALWAYS_CONSUMED">\r
+      <Keyword>DebugLib</Keyword>\r
+    </LibraryClass>\r
+    <LibraryClass Usage="ALWAYS_CONSUMED">\r
+      <Keyword>BaseMemoryLib</Keyword>\r
+    </LibraryClass>\r
+    <LibraryClass Usage="ALWAYS_CONSUMED">\r
+      <Keyword>UefiDriverEntryPoint</Keyword>\r
+    </LibraryClass>\r
+    <LibraryClass Usage="ALWAYS_CONSUMED">\r
+      <Keyword>UefiBootServicesTableLib</Keyword>\r
+    </LibraryClass>\r
+    <LibraryClass Usage="ALWAYS_CONSUMED">\r
+      <Keyword>UefiLib</Keyword>\r
+    </LibraryClass>\r
+    <LibraryClass Usage="ALWAYS_CONSUMED">\r
+      <Keyword>BaseLib</Keyword>\r
+    </LibraryClass>\r
+    <LibraryClass Usage="ALWAYS_CONSUMED">\r
+      <Keyword>MemoryAllocationLib</Keyword>\r
+    </LibraryClass>\r
+  </LibraryClassDefinitions>\r
+  <Protocols>\r
+    <Protocol Usage="BY_START">\r
+      <ProtocolCName>gEfiScsiPassThruProtocolGuid</ProtocolCName>\r
+    </Protocol>\r
+    <Protocol Usage="BY_START">\r
+      <ProtocolCName>gEfiExtScsiPassThruProtocolGuid</ProtocolCName>\r
+    </Protocol>\r
+    <Protocol Usage="TO_START">\r
+      <ProtocolCName>gEfiPciIoProtocolGuid</ProtocolCName>\r
+    </Protocol>\r
+    <Protocol Usage="ALWAYS_PRODUCED">\r
+      <ProtocolCName>gEfiDriverSupportedEfiVersionProtocolGuid</ProtocolCName>\r
+    </Protocol>\r
+  </Protocols>\r
+  <PcdCoded>\r
+    <PcdEntry PcdItemType="FEATURE_FLAG">\r
+      <C_Name>PcdSupportScsiPassThru</C_Name>\r
+      <TokenSpaceGuidCName>gOptionRomPkgTokenSpaceGuid</TokenSpaceGuidCName>\r
+      <HelpText>Atapi Pass Thru driver supports to produce Scsi Pass Thru protocol.</HelpText>\r
+    </PcdEntry>\r
+    <PcdEntry PcdItemType="FEATURE_FLAG">\r
+      <C_Name>PcdExtSupportScsiPassThru</C_Name>\r
+      <TokenSpaceGuidCName>gOptionRomPkgTokenSpaceGuid</TokenSpaceGuidCName>\r
+      <HelpText>Atapi Pass Thru driver supports to produce Ext Scsi Pass Thru protocol.</HelpText>\r
+    </PcdEntry>\r
+    <PcdEntry PcdItemType="DYNAMIC">\r
+      <C_Name>PcdDriverSupportedEfiVersion</C_Name>\r
+      <TokenSpaceGuidCName>gOptionRomPkgTokenSpaceGuid</TokenSpaceGuidCName>\r
+      <HelpText>The firmware version field filled in EFI Driver Supported EFI Version protocol.</HelpText>\r
+    </PcdEntry>\r
+  </PcdCoded>\r
+  <Externs>\r
+    <Specification>EFI_SPECIFICATION_VERSION 0x00020000</Specification>\r
+    <Specification>EDK_RELEASE_VERSION 0x00020000</Specification>\r
+    <Extern>\r
+      <ModuleEntryPoint>InitializeAtapiPassThru</ModuleEntryPoint>\r
+    </Extern>\r
+  </Externs>\r
+  <PackageDependencies>\r
+    <Package PackageVersion="0.1" PackageGuid="1E73767F-8F52-4603-AEB4-F29B510B6766"/>\r
+    <Package PackageVersion="0.1" PackageGuid="AA3865E8-7F30-4f59-8696-99F560101852"/>\r
+  </PackageDependencies>\r
+</ModuleSurfaceArea>
\ No newline at end of file
index a540feff2949abd1643baa94becdd10757e9f04d..8749727e4de244ed7f1d78d77b202052b3d3b2f8 100644 (file)
@@ -23,7 +23,7 @@
 \r
 [Defines]\r
   INF_VERSION                    = 0x00010005\r
-  BASE_NAME                      = CirrusLogic5430UgaDraw\r
+  BASE_NAME                      = CirrusLogic5430Dxe\r
   FILE_GUID                      = 555F76EA-785F-40d7-9174-153C43636C68\r
   MODULE_TYPE                    = UEFI_DRIVER\r
   VERSION_STRING                 = 1.0\r
diff --git a/OptionRomPkg/CirrusLogic5430Dxe/CirrusLogic5430Dxe.msa b/OptionRomPkg/CirrusLogic5430Dxe/CirrusLogic5430Dxe.msa
new file mode 100644 (file)
index 0000000..0620eb2
--- /dev/null
@@ -0,0 +1,94 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<ModuleSurfaceArea xmlns="http://www.TianoCore.org/2006/Edk2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\r
+  <MsaHeader>\r
+    <ModuleName>AtapiPassThruDxe</ModuleName>\r
+    <ModuleType>UEFI_DRIVER</ModuleType>\r
+    <GuidValue>555F76EA-785F-40d7-9174-153C43636C68</GuidValue>\r
+    <Version>0.1</Version>\r
+    <Abstract>Component description file for CirrusLogic5430 module.</Abstract>\r
+    <Description>Cirrus Logic 5430 Controller Driver.</Description>\r
+    <Copyright>Copyright (c) 2007, Intel Corporation.</Copyright>\r
+    <License>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 http://opensource.org/licenses/bsd-license.php
+      THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES
+      OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.</License>\r
+    <Specification>FRAMEWORK_BUILD_PACKAGING_SPECIFICATION   0x00000052</Specification>\r
+  </MsaHeader>\r
+  <ModuleDefinitions>\r
+    <SupportedArchitectures>IA32 X64 IPF EBC</SupportedArchitectures>\r
+    <BinaryModule>false</BinaryModule>\r
+    <OutputFileBasename>AtapiPassThruDxe</OutputFileBasename>\r
+  </ModuleDefinitions>\r
+  <SourceFiles>\r
+    <Filename>CirrusLogic5430.c</Filename>\r
+    <Filename>CirrusLogic5430.h</Filename>\r
+    <Filename>CirrusLogic5430GraphicsOutput.c</Filename>\r
+    <Filename>CirrusLogic5430UgaDraw.c</Filename>\r
+    <Filename>ComponentName.c</Filename>\r
+    <Filename>DriverSupportedEfiVersion.c</Filename>\r
+  </SourceFiles>\r
+  <LibraryClassDefinitions>\r
+    <LibraryClass Usage="ALWAYS_CONSUMED">\r
+      <Keyword>DebugLib</Keyword>\r
+    </LibraryClass>\r
+    <LibraryClass Usage="ALWAYS_CONSUMED">\r
+      <Keyword>UefiDriverEntryPoint</Keyword>\r
+    </LibraryClass>\r
+    <LibraryClass Usage="ALWAYS_CONSUMED">\r
+      <Keyword>UefiBootServicesTableLib</Keyword>\r
+    </LibraryClass>\r
+    <LibraryClass Usage="ALWAYS_CONSUMED">\r
+      <Keyword>UefiLib</Keyword>\r
+    </LibraryClass>\r
+    <LibraryClass Usage="ALWAYS_CONSUMED">\r
+      <Keyword>BaseLib</Keyword>\r
+    </LibraryClass>\r
+    <LibraryClass Usage="ALWAYS_CONSUMED">\r
+      <Keyword>MemoryAllocationLib</Keyword>\r
+    </LibraryClass>\r
+  </LibraryClassDefinitions>\r
+  <Protocols>\r
+    <Protocol Usage="BY_START">\r
+      <ProtocolCName>gEfiScsiPassThruProtocolGuid</ProtocolCName>\r
+    </Protocol>\r
+    <Protocol Usage="BY_START">\r
+      <ProtocolCName>gEfiExtScsiPassThruProtocolGuid</ProtocolCName>\r
+    </Protocol>\r
+    <Protocol Usage="TO_START">\r
+      <ProtocolCName>gEfiPciIoProtocolGuid</ProtocolCName>\r
+    </Protocol>\r
+    <Protocol Usage="ALWAYS_PRODUCED">\r
+      <ProtocolCName>gEfiDriverSupportedEfiVersionProtocolGuid</ProtocolCName>\r
+    </Protocol>\r
+  </Protocols>\r
+  <PcdCoded>\r
+    <PcdEntry PcdItemType="FEATURE_FLAG">\r
+      <C_Name>PcdSupportGop</C_Name>\r
+      <TokenSpaceGuidCName>gOptionRomPkgTokenSpaceGuid</TokenSpaceGuidCName>\r
+      <HelpText>Cirrus Logic 5430 driver supports to produce GOP protocol.</HelpText>\r
+    </PcdEntry>\r
+    <PcdEntry PcdItemType="FEATURE_FLAG">\r
+      <C_Name>PcdExtSupportUga</C_Name>\r
+      <TokenSpaceGuidCName>gOptionRomPkgTokenSpaceGuid</TokenSpaceGuidCName>\r
+      <HelpText>Cirrus Logic 5430 driver supports to produce UGA protocol.</HelpText>\r
+    </PcdEntry>\r
+    <PcdEntry PcdItemType="DYNAMIC">\r
+      <C_Name>PcdDriverSupportedEfiVersion</C_Name>\r
+      <TokenSpaceGuidCName>gOptionRomPkgTokenSpaceGuid</TokenSpaceGuidCName>\r
+      <HelpText>The firmware version field filled in EFI Driver Supported EFI Version protocol.</HelpText>\r
+    </PcdEntry>\r
+  </PcdCoded>\r
+  <Externs>\r
+    <Specification>EFI_SPECIFICATION_VERSION 0x00020000</Specification>\r
+    <Specification>EDK_RELEASE_VERSION 0x00020000</Specification>\r
+    <Extern>\r
+      <ModuleEntryPoint>InitializeCirrusLogic5430</ModuleEntryPoint>\r
+    </Extern>\r
+  </Externs>\r
+  <PackageDependencies>\r
+    <Package PackageVersion="0.1" PackageGuid="1E73767F-8F52-4603-AEB4-F29B510B6766"/>\r
+    <Package PackageVersion="0.1" PackageGuid="AA3865E8-7F30-4f59-8696-99F560101852"/>\r
+  </PackageDependencies>\r
+</ModuleSurfaceArea>
\ No newline at end of file
index d626d18b27ccd8868f25182ada7e3b4dedd3088c..281b4d5d28fc32da044a732c79ace1f058be0005 100644 (file)
@@ -36,3 +36,6 @@
 [PcdsPatchableInModule.common]\r
   gOptionRomPkgTokenSpaceGuid.PcdDriverSupportedEfiVersion|0x0002000a|UINT32|0x00010003\r
 \r
+[Guids.common]\r
+  gOptionRomPkgTokenSpaceGuid = { 0x1e43298f, 0x3478, 0x41a7, { 0xb5, 0x77, 0x86, 0x6, 0x46, 0x35, 0xc7, 0x28 } };\r
+\r
diff --git a/OptionRomPkg/OptionRomPkg.nspd b/OptionRomPkg/OptionRomPkg.nspd
new file mode 100644 (file)
index 0000000..7a4d6d0
--- /dev/null
@@ -0,0 +1,83 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<PackageSurfaceArea xmlns="http://www.TianoCore.org/2006/Edk2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\r
+  <SpdHeader>\r
+    <PackageName>OptionRomPkg</PackageName>\r
+    <GuidValue>AA3865E8-7F30-4f59-8696-99F560101852</GuidValue>\r
+    <Version>0.1</Version>\r
+    <Abstract>Option Rom Package Reference Implementations.</Abstract>\r
+    <Description>This package is designed to interoperate with the EDK II open source project
+at http://www.tianocore.org, and this package is required to build PCI compliant
+Option ROM image for all CPU architectures, including EBC target.
+A single driver can support mixes of EFI 1.1, UEFI 2.0 and UEFI 2.1.</Description>\r
+    <Copyright>Copyright (c) 2007, Intel Corporation.</Copyright>\r
+    <License>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 http://opensource.org/licenses/bsd-license.php
+      THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES
+      OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.</License>\r
+    <Specification>FRAMEWORK_BUILD_PACKAGING_SPECIFICATION   0x00000052</Specification>\r
+  </SpdHeader>\r
+  <PackageDefinitions>\r
+    <ReadOnly>false</ReadOnly>\r
+    <RePackage>false</RePackage>\r
+  </PackageDefinitions>\r
+  <MsaFiles>\r
+    <Filename>AtapiPassThruDxe/AtapiPassThruDxe.msa</Filename>\r
+    <Filename>CirrusLogic5430Dxe/CirrusLogic5430Dxe.msa</Filename>\r
+  </MsaFiles>\r
+  <GuidDeclarations>\r
+    <Entry Name="OptionRomPkgTokenSpace" GuidTypeList="TOKEN_SPACE_GUID">\r
+      <C_Name>gOptionRomPkgTokenSpaceGuid</C_Name>\r
+      <GuidValue>1E43298F-3478-41a7-B577-86064635C728</GuidValue>\r
+      <HelpText>Token space GUID for OptionRomPkg</HelpText>\r
+    </Entry>\r
+  </GuidDeclarations>\r
+  <PcdDeclarations>\r
+    <PcdEntry>\r
+      <C_Name>PcdSupportScsiPassThru</C_Name>\r
+      <Token>0x00010001</Token>\r
+      <TokenSpaceGuidCName>gOptionRomPkgTokenSpaceGuid</TokenSpaceGuidCName>\r
+      <DatumType>BOOLEAN</DatumType>\r
+      <ValidUsage>FEATURE_FLAG</ValidUsage>\r
+      <DefaultValue>TRUE</DefaultValue>\r
+      <HelpText>Option Rom Package driver to support the Scsi Pass Thru protocol</HelpText>\r
+    </PcdEntry>\r
+    <PcdEntry>\r
+      <C_Name>PcdSupportExtScsiPassThru</C_Name>\r
+      <Token>0x00010002</Token>\r
+      <TokenSpaceGuidCName>gOptionRomPkgTokenSpaceGuid</TokenSpaceGuidCName>\r
+      <DatumType>BOOLEAN</DatumType>\r
+      <ValidUsage>FEATURE_FLAG</ValidUsage>\r
+      <DefaultValue>TRUE</DefaultValue>\r
+      <HelpText>Option Rom Package driver to support the Ext Scsi Pass Thru protocol</HelpText>\r
+    </PcdEntry>\r
+    <PcdEntry>\r
+      <C_Name>PcdDriverSupportedEfiVersion</C_Name>\r
+      <Token>0x00010003</Token>\r
+      <TokenSpaceGuidCName>gOptionRomPkgTokenSpaceGuid</TokenSpaceGuidCName>\r
+      <DatumType>UINT32</DatumType>\r
+      <ValidUsage>FIXED_AT_BUILD PATCHABLE_IN_MODULE</ValidUsage>\r
+      <DefaultValue>0x0002000a</DefaultValue>\r
+      <HelpText>The firmware version field of Driver Supported EFI version protocol.</HelpText>\r
+    </PcdEntry>\r
+    <PcdEntry>\r
+      <C_Name>PcdSupportGop</C_Name>\r
+      <Token>0x00010004</Token>\r
+      <TokenSpaceGuidCName>gOptionRomPkgTokenSpaceGuid</TokenSpaceGuidCName>\r
+      <DatumType>BOOLEAN</DatumType>\r
+      <ValidUsage>FEATURE_FLAG</ValidUsage>\r
+      <DefaultValue>TRUE</DefaultValue>\r
+      <HelpText>The driver in OptionRomPkg to support GOP protocol.</HelpText>\r
+    </PcdEntry>\r
+    <PcdEntry>\r
+      <C_Name>PcdSupportUga</C_Name>\r
+      <Token>0x00010005</Token>\r
+      <TokenSpaceGuidCName>gOptionRomPkgTokenSpaceGuid</TokenSpaceGuidCName>\r
+      <DatumType>BOOLEAN</DatumType>\r
+      <ValidUsage>FEATURE_FLAG</ValidUsage>\r
+      <DefaultValue>TRUE</DefaultValue>\r
+      <HelpText>The driver in OptionRomPkg to support UGA protocol.</HelpText>\r
+    </PcdEntry>\r
+  </PcdDeclarations>\r
+</PackageSurfaceArea>
\ No newline at end of file
index dc51fbcb0bd42a176e73df4da1be1ef71290e6f9..5eb81cb0c2c0822eaf01b56fbef035fbdeeca2d3 100644 (file)
@@ -5,7 +5,7 @@ AtapiPassThru:
    \r
   AtapiPassThru driver in this package can selectively produce ScsiPassThru\r
   and/or ExtScsiPassThru protocol based on feature flags of PcdSupportScsiPassThru\r
-  and PcdExtScsiPassThru.\r
+  and PcdSupportExtScsiPassThru.\r
 \r
 CirrusLogic5430:\r
   Sample implementation of UGA Draw or Graphics Output Protocol for the Cirrus\r