summaryrefslogtreecommitdiffstats
path: root/FatPkg
diff options
context:
space:
mode:
authorQing Huang <qing.huang@intel.com>2007-12-21 03:27:26 +0000
committerJordan Justen <jordan.l.justen@intel.com>2016-04-06 23:22:43 -0700
commit657e361255df2beed01e5ac881a2af35f9ed56a1 (patch)
tree83af81de9e80d1949a43188c4a4d85334e63c6cc /FatPkg
parentb9ec93308b33bcb0bb37d6213a76c3fed0b5bc0b (diff)
downloadedk2-657e361255df2beed01e5ac881a2af35f9ed56a1.tar.gz
edk2-657e361255df2beed01e5ac881a2af35f9ed56a1.tar.bz2
edk2-657e361255df2beed01e5ac881a2af35f9ed56a1.zip
Add preparation for FAR release.
(based on FatPkg commit 231d94be998ca1c72f23d2ac6cd5238e9afdc886) [jordan.l.justen@intel.com: Use script to relicense to 2-clause BSD] Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Acked-by: Mark Doran <mark.doran@intel.com> Acked-by: Laszlo Ersek <lersek@redhat.com>
Diffstat (limited to 'FatPkg')
-rw-r--r--FatPkg/EnhancedFatDxe/Fat.msa135
-rw-r--r--FatPkg/EnhancedFatDxe/UnicodeCollation.c13
-rw-r--r--FatPkg/FatPkg.nspd53
3 files changed, 189 insertions, 12 deletions
diff --git a/FatPkg/EnhancedFatDxe/Fat.msa b/FatPkg/EnhancedFatDxe/Fat.msa
new file mode 100644
index 0000000000..cb99a5db99
--- /dev/null
+++ b/FatPkg/EnhancedFatDxe/Fat.msa
@@ -0,0 +1,135 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ModuleSurfaceArea xmlns="http://www.TianoCore.org/2006/Edk2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <MsaHeader>
+ <ModuleName>Fat</ModuleName>
+ <ModuleType>UEFI_DRIVER</ModuleType>
+ <GuidValue>961578FE-B6B7-44c3-AF35-6BC705CD2B1F</GuidValue>
+ <Version>1.0</Version>
+ <Abstract>Component description file for FAT module.</Abstract>
+ <Description>This UEFI driver detects the FAT file system in the disk. It also produces the Simple File System protocol for the consumer to perform file and directory operations on the disk.</Description>
+ <Copyright>Copyright (c) 2004 - 2007, Intel Corporation</Copyright>
+ <License>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>
+ <Specification>FRAMEWORK_BUILD_PACKAGING_SPECIFICATION 0x00000052</Specification>
+ </MsaHeader>
+ <ModuleDefinitions>
+ <SupportedArchitectures>IA32 X64 IPF EBC</SupportedArchitectures>
+ <BinaryModule>false</BinaryModule>
+ <OutputFileBasename>Fat</OutputFileBasename>
+ </ModuleDefinitions>
+ <LibraryClassDefinitions>
+ <LibraryClass Usage="ALWAYS_CONSUMED">
+ <Keyword>DebugLib</Keyword>
+ </LibraryClass>
+ <LibraryClass Usage="ALWAYS_CONSUMED">
+ <Keyword>UefiDriverEntryPoint</Keyword>
+ </LibraryClass>
+ <LibraryClass Usage="ALWAYS_CONSUMED">
+ <Keyword>UefiLib</Keyword>
+ </LibraryClass>
+ <LibraryClass Usage="ALWAYS_CONSUMED">
+ <Keyword>BaseLib</Keyword>
+ </LibraryClass>
+ <LibraryClass Usage="ALWAYS_CONSUMED">
+ <Keyword>BaseMemoryLib</Keyword>
+ </LibraryClass>
+ <LibraryClass Usage="ALWAYS_CONSUMED">
+ <Keyword>MemoryAllocationLib</Keyword>
+ </LibraryClass>
+ <LibraryClass Usage="ALWAYS_CONSUMED">
+ <Keyword>UefiBootServicesTableLib</Keyword>
+ </LibraryClass>
+ <LibraryClass Usage="ALWAYS_CONSUMED">
+ <Keyword>UefiRuntimeServicesTableLib</Keyword>
+ </LibraryClass>
+ </LibraryClassDefinitions>
+ <SourceFiles>
+ <Filename>Data.c</Filename>
+ <Filename>Delete.c</Filename>
+ <Filename>Fat.c</Filename>
+ <Filename>Flush.c</Filename>
+ <Filename>FileSpace.c</Filename>
+ <Filename>Info.c</Filename>
+ <Filename>Init.c</Filename>
+ <Filename>Misc.c</Filename>
+ <Filename>Open.c</Filename>
+ <Filename>OpenVolume.c</Filename>
+ <Filename>ReadWrite.c</Filename>
+ <Filename>Fat.h</Filename>
+ <Filename>FatFileSystem.h</Filename>
+ <Filename>ComponentName.c</Filename>
+ <Filename>DirectoryManage.c</Filename>
+ <Filename>Hash.c</Filename>
+ <Filename>FileName.c</Filename>
+ <Filename>DiskCache.c</Filename>
+ <Filename>DirectoryCache.c</Filename>
+ <Filename>UnicodeCollation.c</Filename>
+ </SourceFiles>
+ <NonProcessedFiles>
+ <Filename>Debug.c</Filename>
+ </NonProcessedFiles>
+ <PackageDependencies>
+ <Package PackageGuid="1E73767F-8F52-4603-AEB4-F29B510B6766"/>
+ <Package PackageGuid="8EA68A2C-99CB-4332-85C6-DD5864EAA674"/>
+ </PackageDependencies>
+ <Protocols>
+ <Protocol Usage="TO_START">
+ <ProtocolCName>gEfiBlockIoProtocolGuid</ProtocolCName>
+ </Protocol>
+ <Protocol Usage="TO_START">
+ <ProtocolCName>gEfiDiskIoProtocolGuid</ProtocolCName>
+ </Protocol>
+ <Protocol Usage="TO_START">
+ <ProtocolCName>gEfiUnicodeCollationProtocolGuid</ProtocolCName>
+ </Protocol>
+ <Protocol Usage="TO_START">
+ <ProtocolCName>gEfiUnicodeCollation2ProtocolGuid</ProtocolCName>
+ </Protocol>
+ <Protocol Usage="BY_START">
+ <ProtocolCName>gEfiSimpleFileSystemProtocolGuid</ProtocolCName>
+ </Protocol>
+ </Protocols>
+ <Variables>
+ <Variable Usage="ALWAYS_CONSUMED">
+ <VariableName>0x0050 0x006c 0x0061 0x0074 0x0066 0x006f 0x0072 0x006d 0x004c 0x0061 0x006e 0x0067</VariableName>
+ <GuidC_Name>gEfiGlobalVariableGuid</GuidC_Name>
+ <HelpText>Variable Name: L"PlatformLang"</HelpText>
+ </Variable>
+ <Variable Usage="ALWAYS_CONSUMED">
+ <VariableName>0x004c 0x0061 0x006e 0x0067</VariableName>
+ <GuidC_Name>gEfiGlobalVariableGuid</GuidC_Name>
+ <HelpText>Variable Name: L"Lang"</HelpText>
+ </Variable>
+ </Variables>
+ <Guids>
+ <GuidCNames Usage="ALWAYS_CONSUMED">
+ <GuidCName>gEfiGlobalVariableGuid</GuidCName>
+ </GuidCNames>
+ <GuidCNames Usage="ALWAYS_CONSUMED">
+ <GuidCName>gEfiFileSystemInfoGuid</GuidCName>
+ </GuidCNames>
+ <GuidCNames Usage="ALWAYS_CONSUMED">
+ <GuidCName>gEfiFileInfoGuid</GuidCName>
+ </GuidCNames>
+ <GuidCNames Usage="ALWAYS_CONSUMED">
+ <GuidCName>gEfiFileSystemVolumeLabelInfoIdGuid</GuidCName>
+ </GuidCNames>
+ </Guids>
+ <Externs>
+ <Specification>EFI_SPECIFICATION_VERSION 0x00020000</Specification>
+ <Specification>EDK_RELEASE_VERSION 0x00020000</Specification>
+ <Extern>
+ <ModuleEntryPoint>FatEntryPoint</ModuleEntryPoint>
+ <ModuleUnloadImage>FatUnload</ModuleUnloadImage>
+ </Extern>
+ <Extern>
+ <DriverBinding>gFatDriverBinding</DriverBinding>
+ <ComponentName>gFatComponentName</ComponentName>
+ </Extern>
+ </Externs>
+</ModuleSurfaceArea> \ No newline at end of file
diff --git a/FatPkg/EnhancedFatDxe/UnicodeCollation.c b/FatPkg/EnhancedFatDxe/UnicodeCollation.c
index d74dc1e697..67f1b7c805 100644
--- a/FatPkg/EnhancedFatDxe/UnicodeCollation.c
+++ b/FatPkg/EnhancedFatDxe/UnicodeCollation.c
@@ -13,18 +13,7 @@
**/
-#include <Uefi.h>
-
-#include <Guid/GlobalVariable.h>
-#include <Protocol/UnicodeCollation.h>
-
-#include <Library/BaseLib.h>
-#include <Library/BaseMemoryLib.h>
-#include <Library/DebugLib.h>
-#include <Library/PcdLib.h>
-#include <Library/MemoryAllocationLib.h>
-#include <Library/UefiBootServicesTableLib.h>
-#include <Library/UefiRuntimeServicesTableLib.h>
+#include "Fat.h"
STATIC EFI_UNICODE_COLLATION_PROTOCOL *mUnicodeCollationInterface = NULL;
diff --git a/FatPkg/FatPkg.nspd b/FatPkg/FatPkg.nspd
new file mode 100644
index 0000000000..60d7f3fca1
--- /dev/null
+++ b/FatPkg/FatPkg.nspd
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<PackageSurfaceArea xmlns="http://www.TianoCore.org/2006/Edk2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <SpdHeader>
+ <PackageName>FatPkg</PackageName>
+ <GuidValue>8EA68A2C-99CB-4332-85C6-DD5864EAA674</GuidValue>
+ <Version>1.0</Version>
+ <Abstract>Edk FAT Package</Abstract>
+ <Description>FAT 32 Driver</Description>
+ <Copyright>Copyright (c) 2006, Intel Corporation.</Copyright>
+ <License>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>
+ <Specification>FRAMEWORK_BUILD_PACKAGING_SPECIFICATION 0x00000052</Specification>
+ </SpdHeader>
+ <PackageDefinitions>
+ <ReadOnly>false</ReadOnly>
+ <RePackage>false</RePackage>
+ </PackageDefinitions>
+ <MsaFiles>
+ <Filename>EnhancedFatDxe/Fat.msa</Filename>
+ </MsaFiles>
+ <GuidDeclarations>
+ <Entry Name="Fat Package Token space Guid" GuidTypeList="TOKEN_SPACE_GUID">
+ <C_Name>gEfiFatPkgTokenSpaceGuid</C_Name>
+ <GuidValue>c8e92dba-1d92-411f-ae0a-1dbed8f13299</GuidValue>
+ <HelpText/>
+ </Entry>
+ </GuidDeclarations>
+ <PcdDeclarations>
+ <PcdEntry>
+ <C_Name>PcdUnicodeCollationSupport</C_Name>
+ <Token>0x00010001</Token>
+ <TokenSpaceGuidCName>gEfiFatPkgTokenSpaceGuid</TokenSpaceGuidCName>
+ <DatumType>BOOLEAN</DatumType>
+ <ValidUsage>FEATURE_FLAG</ValidUsage>
+ <DefaultValue>TRUE</DefaultValue>
+ <HelpText>Support Unicode Collation</HelpText>
+ </PcdEntry>
+ <PcdEntry>
+ <C_Name>PcdUnicodeCollationSupport2</C_Name>
+ <Token>0x00010002</Token>
+ <TokenSpaceGuidCName>gFatPkgTokenSpaceGuid</TokenSpaceGuidCName>
+ <DatumType>BOOLEAN</DatumType>
+ <ValidUsage>FEATURE_FLAG</ValidUsage>
+ <DefaultValue>TRUE</DefaultValue>
+ <HelpText>Support Unicode Collation 2.</HelpText>
+ </PcdEntry>
+ </PcdDeclarations>
+</PackageSurfaceArea> \ No newline at end of file