]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Library/BasePalLibNull/PalCall.c
Synchronize function comment in h file
[mirror_edk2.git] / MdePkg / Library / BasePalLibNull / PalCall.c
CommitLineData
4c24c4ee 1/** @file\r
2 \r
3 Template and Sample instance of PalCallLib.\r
4 \r
9638ba6d 5 Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
6 All rights reserved. This program and the accompanying materials \r
7 are licensed and made available under the terms and conditions of the BSD License \r
8 which accompanies this distribution. The full text of the license may be found at \r
9 http://opensource.org/licenses/bsd-license.php \r
4c24c4ee 10\r
9638ba6d 11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
4c24c4ee 12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
9638ba6d 13 \r
4c24c4ee 14**/\r
9638ba6d 15\r
4c24c4ee 16#include <Base.h>\r
17#include <Library/PalLib.h>\r
18#include <Library/DebugLib.h>\r
19\r
20/**\r
21 Makes a PAL procedure call.\r
22\r
23 This is a wrapper function to make a PAL procedure call.\r
24 This is just a template as simple instance. It does not\r
25 make real PAL call. It directly reports error if called.\r
26\r
27 @param Index The PAL procedure Index number.\r
28 @param Arg2 The 2nd parameter for PAL procedure calls.\r
29 @param Arg3 The 3rd parameter for PAL procedure calls.\r
30 @param Arg4 The 4th parameter for PAL procedure calls.\r
31\r
32 @return Structure returned from the PAL Call procedure, including the status and return value.\r
33\r
34**/\r
35PAL_CALL_RETURN\r
36EFIAPI\r
37PalCall (\r
38 IN UINT64 Index,\r
39 IN UINT64 Arg2,\r
40 IN UINT64 Arg3,\r
41 IN UINT64 Arg4\r
42 )\r
43{\r
44 PAL_CALL_RETURN Ret;\r
45\r
46 Ret.Status = (UINT64) -1;\r
47 ASSERT (!RETURN_ERROR (RETURN_UNSUPPORTED));\r
48 return Ret;\r
49}\r