]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Library/BasePalLibNull/PalCall.c
Function headers in .h and .c files synchronized with spec
[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
5 Copyright (c) 2006 - 2008, Intel Corporation\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
10\r
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
13\r
14**/\r
15#include <Base.h>\r
16#include <Library/PalLib.h>\r
17#include <Library/DebugLib.h>\r
18\r
19/**\r
20 Makes a PAL procedure call.\r
21\r
22 This is a wrapper function to make a PAL procedure call.\r
23 This is just a template as simple instance. It does not\r
24 make real PAL call. It directly reports error if called.\r
25\r
26 @param Index The PAL procedure Index number.\r
27 @param Arg2 The 2nd parameter for PAL procedure calls.\r
28 @param Arg3 The 3rd parameter for PAL procedure calls.\r
29 @param Arg4 The 4th parameter for PAL procedure calls.\r
30\r
31 @return Structure returned from the PAL Call procedure, including the status and return value.\r
32\r
33**/\r
34PAL_CALL_RETURN\r
35EFIAPI\r
36PalCall (\r
37 IN UINT64 Index,\r
38 IN UINT64 Arg2,\r
39 IN UINT64 Arg3,\r
40 IN UINT64 Arg4\r
41 )\r
42{\r
43 PAL_CALL_RETURN Ret;\r
44\r
45 Ret.Status = (UINT64) -1;\r
46 ASSERT (!RETURN_ERROR (RETURN_UNSUPPORTED));\r
47 return Ret;\r
48}\r