MemoryAccept.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /** @file
  2. The file provides the protocol to provide interface to accept memory.
  3. Copyright (c) 2021 - 2022, Intel Corporation. All rights reserved.<BR>
  4. SPDX-License-Identifier: BSD-2-Clause-Patent
  5. **/
  6. #ifndef MEMORY_ACCEPT_H_
  7. #define MEMORY_ACCEPT_H_
  8. #define EDKII_MEMORY_ACCEPT_PROTOCOL_GUID \
  9. { 0x38c74800, 0x5590, 0x4db4, { 0xa0, 0xf3, 0x67, 0x5d, 0x9b, 0x8e, 0x80, 0x26 } };
  10. typedef struct _EDKII_MEMORY_ACCEPT_PROTOCOL EDKII_MEMORY_ACCEPT_PROTOCOL;
  11. /**
  12. @param This A pointer to a EDKII_MEMORY_ACCEPT_PROTOCOL.
  13. **/
  14. typedef
  15. EFI_STATUS
  16. (EFIAPI *EDKII_ACCEPT_MEMORY)(
  17. IN EDKII_MEMORY_ACCEPT_PROTOCOL *This,
  18. IN EFI_PHYSICAL_ADDRESS StartAddress,
  19. IN UINTN Size
  20. );
  21. ///
  22. /// The EDKII_MEMORY_ACCEPT_PROTOCOL provides the ability for memory services
  23. /// to accept memory.
  24. ///
  25. struct _EDKII_MEMORY_ACCEPT_PROTOCOL {
  26. EDKII_ACCEPT_MEMORY AcceptMemory;
  27. };
  28. extern EFI_GUID gEdkiiMemoryAcceptProtocolGuid;
  29. #endif