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