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