LcdHwNullLib.c 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /** @file
  2. Copyright (c) 2017, Linaro, Ltd. All rights reserved.
  3. SPDX-License-Identifier: BSD-2-Clause-Patent
  4. **/
  5. #include <Base.h>
  6. #include <Uefi/UefiBaseType.h>
  7. #include <Library/DebugLib.h>
  8. #include <Library/LcdPlatformLib.h>
  9. /**
  10. Check for presence of display
  11. @retval EFI_SUCCESS Platform implements display.
  12. @retval EFI_NOT_FOUND Display not found on the platform.
  13. **/
  14. EFI_STATUS
  15. LcdIdentify (
  16. VOID
  17. )
  18. {
  19. return EFI_SUCCESS;
  20. }
  21. /**
  22. Initialize display.
  23. @param FrameBaseAddress Address of the frame buffer.
  24. @retval EFI_SUCCESS Display initialization success.
  25. @retval !(EFI_SUCCESS) Display initialization failure.
  26. **/
  27. EFI_STATUS
  28. LcdInitialize (
  29. EFI_PHYSICAL_ADDRESS FrameBaseAddress
  30. )
  31. {
  32. return EFI_SUCCESS;
  33. }
  34. /**
  35. Set requested mode of the display.
  36. @param ModeNumber Display mode number.
  37. @retval EFI_SUCCESS Display set mode success.
  38. @retval EFI_DEVICE_ERROR If mode not found/supported.
  39. **/
  40. EFI_STATUS
  41. LcdSetMode (
  42. IN UINT32 ModeNumber
  43. )
  44. {
  45. return EFI_SUCCESS;
  46. }
  47. /**
  48. De-initializes the display.
  49. **/
  50. VOID
  51. LcdShutdown (
  52. VOID
  53. )
  54. {
  55. }