]> git.proxmox.com Git - mirror_edk2.git/blame - ArmPkg/Library/ArmMtlNullLib/ArmMtlNullLib.c
ArmPkg: Apply uncrustify changes
[mirror_edk2.git] / ArmPkg / Library / ArmMtlNullLib / ArmMtlNullLib.c
CommitLineData
38a00bae
GP
1/** @file\r
2\r
3 Copyright (c) 2017-2018, Arm Limited. All rights reserved.\r
4\r
4059386c 5 SPDX-License-Identifier: BSD-2-Clause-Patent\r
38a00bae
GP
6\r
7 System Control and Management Interface V1.0\r
8 http://infocenter.arm.com/help/topic/com.arm.doc.den0056a/\r
9 DEN0056A_System_Control_and_Management_Interface.pdf\r
10**/\r
11\r
12#include <Library/ArmMtlLib.h>\r
13#include <Library/DebugLib.h>\r
14\r
15/** Wait until channel is free.\r
16\r
17 @param[in] Channel Pointer to a channel.\r
18 @param[in] TimeOutInMicroSeconds Timeout in micro seconds.\r
19\r
20 @retval EFI_UNSUPPORTED Interface not implemented.\r
21**/\r
22EFI_STATUS\r
23MtlWaitUntilChannelFree (\r
24 IN MTL_CHANNEL *Channel,\r
25 IN UINTN TimeOutInMicroSeconds\r
26 )\r
27{\r
28 return EFI_UNSUPPORTED;\r
29}\r
30\r
31/** Return the address of the message payload.\r
32\r
33 @param[in] Channel Pointer to a channel.\r
34\r
35 @retval UINT32* Pointer to the payload.\r
36**/\r
429309e0 37UINT32 *\r
38a00bae
GP
38MtlGetChannelPayload (\r
39 IN MTL_CHANNEL *Channel\r
40 )\r
41{\r
42 ASSERT (FALSE);\r
43 return NULL;\r
44}\r
45\r
46/** Return pointer to a channel for the requested channel type.\r
47\r
48 @param[in] ChannelType ChannelType, Low or High priority channel.\r
49 MTL_CHANNEL_TYPE_LOW or\r
50 MTL_CHANNEL_TYPE_HIGH\r
51\r
52 @param[out] Channel Holds pointer to the channel.\r
53\r
54 @retval EFI_UNSUPPORTED Requested channel type not supported or\r
55 interface not implemented.\r
56**/\r
57EFI_STATUS\r
58MtlGetChannel (\r
59 IN MTL_CHANNEL_TYPE ChannelType,\r
60 OUT MTL_CHANNEL **Channel\r
61 )\r
62{\r
63 return EFI_UNSUPPORTED;\r
64}\r
65\r
66/** Mark the channel busy and ring the doorbell.\r
67\r
68 @param[in] Channel Pointer to a channel.\r
69 @param[in] MessageHeader Message header.\r
70\r
71 @param[out] PayloadLength Message length.\r
72\r
73 @retval EFI_UNSUPPORTED Interface not implemented.\r
74**/\r
75EFI_STATUS\r
76MtlSendMessage (\r
77 IN MTL_CHANNEL *Channel,\r
78 IN UINT32 MessageHeader,\r
79 OUT UINT32 PayloadLength\r
80 )\r
81{\r
82 return EFI_UNSUPPORTED;\r
83}\r
84\r
85/** Wait for a response on a channel.\r
86\r
87 If channel is free after sending message, it implies SCP responded\r
88 with a response on the channel.\r
89\r
90 @param[in] Channel Pointer to a channel.\r
91\r
92 @retval EFI_UNSUPPORTED Interface not implemented.\r
93**/\r
94EFI_STATUS\r
95MtlReceiveMessage (\r
96 IN MTL_CHANNEL *Channel,\r
97 OUT UINT32 *MessageHeader,\r
98 OUT UINT32 *PayloadLength\r
99 )\r
100{\r
101 return EFI_UNSUPPORTED;\r
102}\r