]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Check in library class of SalLib.
authorxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 6 Jul 2007 07:51:12 +0000 (07:51 +0000)
committerxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 6 Jul 2007 07:51:12 +0000 (07:51 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3105 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Include/IndustryStandard/Sal.h
MdePkg/Include/Library/SalLib.h [new file with mode: 0644]
MdePkg/MdePkg.dec
MdePkg/MdePkg.nspd

index 3b023029d929e6dc0e4446ae246c5331d83f5f68..fe703a35c8d93dbf9640cefea81c7e020a43f257 100644 (file)
@@ -96,6 +96,7 @@ typedef SAL_RETURN_REGS (EFIAPI *SAL_PROC)
 #define EFI_SAL_PCI_CONFIG_READ         0x01000010\r
 #define EFI_SAL_PCI_CONFIG_WRITE        0x01000011\r
 #define EFI_SAL_FREQ_BASE               0x01000012\r
+#define EFI_SAL_PHYSICAL_ID_INFO        0x01000013\r
 #define EFI_SAL_UPDATE_PAL              0x01000020\r
 \r
 #define EFI_SAL_FUNCTION_ID_MASK        0x0000ffff\r
diff --git a/MdePkg/Include/Library/SalLib.h b/MdePkg/Include/Library/SalLib.h
new file mode 100644 (file)
index 0000000..9f707fa
--- /dev/null
@@ -0,0 +1,61 @@
+/** @file\r
+  SAL Library Functions\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:  SalLib.h\r
+\r
+**/\r
+\r
+#ifndef __SAL_LIB__\r
+#define __SAL_LIB__\r
+\r
+#include <IndustryStandard/Sal.h>\r
+\r
+/**\r
+  Makes a SAL procedure call.\r
+  \r
+  This is a wrapper function to make a SAL procedure call.  \r
+  No parameter checking is performed on the 8 input parameters,\r
+  but there are some common rules that the caller should follow\r
+  when making a SAL call.  Any address passed to SAL as buffers\r
+  for return parameters must be 8-byte aligned.  Unaligned\r
+  addresses may cause undefined results.  For those parameters\r
+  defined as reserved or some fields defined as reserved must be\r
+  zero filled or the invalid argument return value may be returned\r
+  or undefined result may occur during the execution of the procedure.\r
+  This function is only available on IPF.\r
+\r
+  @param  Index       The SAL procedure Index number\r
+  @param  Arg2        The 2nd parameter for SAL procedure calls\r
+  @param  Arg3        The 3rd parameter for SAL procedure calls\r
+  @param  Arg4        The 4th parameter for SAL procedure calls\r
+  @param  Arg5        The 5th parameter for SAL procedure calls\r
+  @param  Arg6        The 6th parameter for SAL procedure calls\r
+  @param  Arg7        The 7th parameter for SAL procedure calls\r
+  @param  Arg8        The 8th parameter for SAL procedure calls\r
+\r
+  @return SAL returned registers.\r
+\r
+**/\r
+SAL_RETURN_REGS\r
+EFIAPI\r
+SalCall (\r
+  IN UINT64  Index,\r
+  IN UINT64  Arg2,\r
+  IN UINT64  Arg3,\r
+  IN UINT64  Arg4,\r
+  IN UINT64  Arg5,\r
+  IN UINT64  Arg6,\r
+  IN UINT64  Arg7,\r
+  IN UINT64  Arg8\r
+  );\r
+\r
+#endif\r
index f65a5a34fe7faa8563dd3619cd8ffbc0c71a2423..fc895cc812bc0b73828fd25f845242a343983333 100644 (file)
   BaseLib|Include/Library/BaseLib.h\r
   BasePeCoffLib|Include/Library/PeCoffLib.h\r
   \r
+[LibraryClasses.IPF]\r
+  SalLib|Include/Library/SalLib.h\r
+\r
 ################################################################################\r
 #\r
 # Global Guid Definition section - list of Global Guid C Name Data Structures\r
index 978f6febaf2288154e5fccc7a835a928294e7538..f7c709eeac47bfe732b19694cfb8e7577bdb38a1 100644 (file)
       <IncludeHeader>Include/Library/CustomDecompressLib.h</IncludeHeader>\r
       <HelpText/>\r
     </LibraryClass>\r
+    <LibraryClass Name="SalLib" SupArchList="IPF">\r
+      <IncludeHeader>Include/Library/SalLib.h</IncludeHeader>\r
+      <HelpText>Implement the SAL call</HelpText>\r
+    </LibraryClass>\r
   </LibraryClassDeclarations>\r
   <MsaFiles>\r
     <Filename>Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.msa</Filename>\r