microsoft/mu_feature_ffa
Publicmirrored fromhttps://github.com/microsoft/mu_feature_ffaAvailable
FfaFeaturePkg/Include/Guid/NotificationServiceFfa.h
42lines · modecode
| 1 | /** @file |
| 2 | Provides function interfaces to communicate with Notification service through FF-A. |
| 3 | |
| 4 | Copyright (c), Microsoft Corporation. |
| 5 | |
| 6 | SPDX-License-Identifier: BSD-2-Clause-Patent |
| 7 | **/ |
| 8 | |
| 9 | #ifndef NOTIFICATION_SERVICE_FFA_H_ |
| 10 | #define NOTIFICATION_SERVICE_FFA_H_ |
| 11 | |
| 12 | #define NOTIFICATION_SERVICE_UUID \ |
| 13 | { 0xe474d87e, 0x5731, 0x4044, { 0xa7, 0x27, 0xcb, 0x3e, 0x8c, 0xf3, 0xc8, 0xdf } } |
| 14 | |
| 15 | #define NOTIFICATION_STATUS_SUCCESS (0) |
| 16 | #define NOTIFICATION_STATUS_NOT_SUPPORTED (-1) |
| 17 | #define NOTIFICATION_STATUS_INVALID_PARAMETER (-2) |
| 18 | #define NOTIFICATION_STATUS_NO_MEM (-3) |
| 19 | |
| 20 | #define NOTIFICATION_OPCODE_BASE (0) |
| 21 | #define NOTIFICATION_OPCODE_ADD (NOTIFICATION_OPCODE_BASE + 0) |
| 22 | #define NOTIFICATION_OPCODE_REMOVE (NOTIFICATION_OPCODE_BASE + 1) |
| 23 | #define NOTIFICATION_OPCODE_REGISTER (NOTIFICATION_OPCODE_BASE + 2) |
| 24 | #define NOTIFICATION_OPCODE_UNREGISTER (NOTIFICATION_OPCODE_BASE + 3) |
| 25 | #define NOTIFICATION_OPCODE_MEM_ASSIGN (NOTIFICATION_OPCODE_BASE + 4) |
| 26 | #define NOTIFICATION_OPCODE_MEM_UNASSIGN (NOTIFICATION_OPCODE_BASE + 5) |
| 27 | |
| 28 | #pragma pack (1) |
| 29 | typedef union { |
| 30 | struct { |
| 31 | UINTN PerVcpu : 1; |
| 32 | UINTN Reserved : 22; |
| 33 | UINTN Id : 9; |
| 34 | UINTN Cookie : 32; |
| 35 | } Bits; |
| 36 | UINTN Uint64; |
| 37 | } NotificationMapping; |
| 38 | #pragma pack () |
| 39 | |
| 40 | extern EFI_GUID gEfiNotificationServiceFfaGuid; |
| 41 | |
| 42 | #endif /* NOTIFICATION_SERVICE_FFA_H_ */ |
| 43 | |