]> git.proxmox.com Git - mirror_edk2.git/blame - ArmPlatformPkg/Library/LcdPlatformNullLib/LcdPlatformNullLib.c
ArmPlatformPkg: Apply uncrustify changes
[mirror_edk2.git] / ArmPlatformPkg / Library / LcdPlatformNullLib / LcdPlatformNullLib.c
CommitLineData
e10c7914
GP
1/** @file\r
2\r
3 Copyright (c) 2017, Linaro, Ltd. All rights reserved.\r
4257dfaa 4 Copyright (c) 2018, Arm Limited. All rights reserved.\r
e10c7914 5\r
f4dfad05 6 SPDX-License-Identifier: BSD-2-Clause-Patent\r
e10c7914
GP
7\r
8**/\r
9\r
10#include <Base.h>\r
11#include <Uefi/UefiBaseType.h>\r
12#include <Library/DebugLib.h>\r
13#include <Library/LcdPlatformLib.h>\r
14\r
4257dfaa
GP
15/** Platform related initialization function.\r
16\r
17 @param[in] Handle Handle to the LCD device instance.\r
18\r
19 @retval EFI_UNSUPPORTED Interface is not supported.\r
20**/\r
e10c7914
GP
21EFI_STATUS\r
22LcdPlatformInitializeDisplay (\r
40b0b23e 23 IN EFI_HANDLE Handle\r
e10c7914
GP
24 )\r
25{\r
26 ASSERT (FALSE);\r
27 return EFI_UNSUPPORTED;\r
28}\r
29\r
4257dfaa
GP
30/** Allocate VRAM memory in DRAM for the framebuffer\r
31 (unless it is reserved already).\r
32\r
33 The allocated address can be used to set the framebuffer.\r
34\r
35 @param[out] VramBaseAddress A pointer to the framebuffer address.\r
36 @param[out] VramSize A pointer to the size of the frame\r
37 buffer in bytes\r
38\r
39 @retval EFI_UNSUPPORTED Interface is not supported.\r
40**/\r
e10c7914
GP
41EFI_STATUS\r
42LcdPlatformGetVram (\r
40b0b23e
MK
43 OUT EFI_PHYSICAL_ADDRESS *VramBaseAddress,\r
44 OUT UINTN *VramSize\r
e10c7914
GP
45 )\r
46{\r
47 ASSERT (FALSE);\r
48 return EFI_UNSUPPORTED;\r
49}\r
50\r
4257dfaa
GP
51/** Return total number of modes supported.\r
52\r
53 Note: Valid mode numbers are 0 to MaxMode - 1\r
54 See Section 12.9 of the UEFI Specification 2.7\r
55\r
56 @retval UINT32 Zero number of modes supported\r
57 in a NULL library implementation.\r
58**/\r
e10c7914
GP
59UINT32\r
60LcdPlatformGetMaxMode (\r
61 VOID\r
62 )\r
63{\r
64 ASSERT (FALSE);\r
65 return 0;\r
66}\r
67\r
4257dfaa
GP
68/** Set the requested display mode.\r
69\r
70 @param[in] ModeNumber Mode Number.\r
71\r
72 @retval EFI_UNSUPPORTED Interface is not supported.\r
73**/\r
e10c7914
GP
74EFI_STATUS\r
75LcdPlatformSetMode (\r
40b0b23e 76 IN UINT32 ModeNumber\r
e10c7914
GP
77 )\r
78{\r
79 ASSERT (FALSE);\r
80 return EFI_UNSUPPORTED;\r
81}\r
82\r
4257dfaa
GP
83/** Return information for the requested mode number.\r
84\r
85 @param[in] ModeNumber Mode Number.\r
86 @param[out] Info Pointer for returned mode information\r
87 (on success).\r
88\r
89 @retval EFI_UNSUPPORTED Interface is not supported.\r
90\r
91**/\r
e10c7914
GP
92EFI_STATUS\r
93LcdPlatformQueryMode (\r
94 IN UINT32 ModeNumber,\r
95 OUT EFI_GRAPHICS_OUTPUT_MODE_INFORMATION *Info\r
96 )\r
97{\r
98 ASSERT (FALSE);\r
99 return EFI_UNSUPPORTED;\r
100}\r
101\r
4257dfaa
GP
102/** Return display timing information for the requested mode number.\r
103\r
104 @param[in] ModeNumber Mode Number.\r
105\r
106 @param[out] HRes Pointer to horizontal resolution.\r
107 @param[out] HSync Pointer to horizontal sync width.\r
108 @param[out] HBackPorch Pointer to horizontal back porch.\r
109 @param[out] HFrontPorch Pointer to horizontal front porch.\r
110 @param[out] VRes Pointer to vertical resolution.\r
111 @param[out] VSync Pointer to vertical sync width.\r
112 @param[out] VBackPorch Pointer to vertical back porch.\r
113 @param[out] VFrontPorch Pointer to vertical front porch.\r
114\r
115 @retval EFI_UNSUPPORTED Interface is not supported.\r
116**/\r
e10c7914
GP
117EFI_STATUS\r
118LcdPlatformGetTimings (\r
40b0b23e
MK
119 IN UINT32 ModeNumber,\r
120 OUT SCAN_TIMINGS **Horizontal,\r
121 OUT SCAN_TIMINGS **Vertical\r
e10c7914
GP
122 )\r
123{\r
124 ASSERT (FALSE);\r
125 return EFI_UNSUPPORTED;\r
126}\r
127\r
4257dfaa
GP
128/** Return bits per pixel information for a mode number.\r
129\r
130 @param[in] ModeNumber Mode Number.\r
131\r
132 @param[out] Bpp Pointer to value bits per pixel information.\r
133\r
134 @retval EFI_UNSUPPORTED Interface is not supported.\r
135\r
136**/\r
e10c7914
GP
137EFI_STATUS\r
138LcdPlatformGetBpp (\r
40b0b23e
MK
139 IN UINT32 ModeNumber,\r
140 OUT LCD_BPP *Bpp\r
e10c7914
GP
141 )\r
142{\r
143 ASSERT (FALSE);\r
144 return EFI_UNSUPPORTED;\r
145}\r