]> git.proxmox.com Git - mirror_edk2.git/blame - OldMdePkg/Include/Library/SalLib.h
Check in library class declaration for SAL Lib, together with related definition.
[mirror_edk2.git] / OldMdePkg / Include / Library / SalLib.h
CommitLineData
a197b1ad 1/** @file\r
2 SAL Library Functions\r
3\r
4 Copyright (c) 2007, Intel Corporation\r
5 All rights reserved. This program and the accompanying materials\r
6 are licensed and made available under the terms and conditions of the BSD License\r
7 which accompanies this distribution. The full text of the license may be found at\r
8 http://opensource.org/licenses/bsd-license.php\r
9\r
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13 Module Name: SalLib.h\r
14\r
15**/\r
16\r
17#ifndef __SAL_LIB__\r
18#define __SAL_LIB__\r
19\r
20\r
21/**\r
22 Makes a SAL procedure call.\r
23 \r
24 This is a wrapper function to make a SAL procedure call. \r
25 No parameter checking is performed on the 8 input parameters,\r
26 but there are some common rules that the caller should follow\r
27 when making a SAL call. Any address passed to SAL as buffers\r
28 for return parameters must be 8-byte aligned. Unaligned\r
29 addresses may cause undefined results. For those parameters\r
30 defined as reserved or some fields defined as reserved must be\r
31 zero filled or the invalid argument return value may be returned\r
32 or undefined result may occur during the execution of the procedure.\r
33 This function is only available on IPF.\r
34\r
35 @param Index The SAL procedure Index number\r
36 @param Arg2 The 2nd parameter for SAL procedure calls\r
37 @param Arg3 The 3rd parameter for SAL procedure calls\r
38 @param Arg4 The 4th parameter for SAL procedure calls\r
39 @param Arg5 The 5th parameter for SAL procedure calls\r
40 @param Arg6 The 6th parameter for SAL procedure calls\r
41 @param Arg7 The 7th parameter for SAL procedure calls\r
42 @param Arg8 The 8th parameter for SAL procedure calls\r
43\r
44 @return SAL returned registers.\r
45\r
46**/\r
47SAL_RETURN_REGS\r
48EFIAPI\r
49SalCall (\r
50 IN UINT64 Index,\r
51 IN UINT64 Arg2,\r
52 IN UINT64 Arg3,\r
53 IN UINT64 Arg4,\r
54 IN UINT64 Arg5,\r
55 IN UINT64 Arg6,\r
56 IN UINT64 Arg7,\r
57 IN UINT64 Arg8\r
58 );\r
59\r
60#endif\r