LcdPlatformNullLib.c 3.8 KB

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