microsoft/mu_feature_ffa

Public

mirrored from https://github.com/microsoft/mu_feature_ffaAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v0.1.2

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

FfaFeaturePkg/Include/Library/NotificationServiceLib.h

83lines · modeblame

97eb3c34Raymond-MS1 years ago1/** @file
2Definitions for the Notification Service
3
4Copyright (c), Microsoft Corporation.
5SPDX-License-Identifier: BSD-2-Clause-Patent
6
7**/
8
9#ifndef NOTIFICATION_SERVICE_LIB_H_
10#define NOTIFICATION_SERVICE_LIB_H_
11
12#include <Base.h>
13#include <IndustryStandard/ArmFfaPartInfo.h>
14#include <Library/ArmSvcLib.h>
15#include <Library/ArmFfaLibEx.h>
16
1cf65721Raymond-MS1 years ago17typedef INT8 NotificationStatus;
97eb3c34Raymond-MS1 years ago18
19/**
20Initializes the Notification service
21
22**/
23VOID
24NotificationServiceInit (
25VOID
26);
27
28/**
29Deinitializes the Notification service
30
31**/
32VOID
33NotificationServiceDeInit (
34VOID
35);
36
37/**
38Handler for Notification service commands
39
40@param Request The incoming message
41@param Response The outgoing message
42
43**/
44VOID
45NotificationServiceHandle (
46DIRECT_MSG_ARGS_EX *Request,
47DIRECT_MSG_ARGS_EX *Response
48);
49
50/**
51Calls NotificationSet on the given ID with the given flag
52
53@param Id The ID to trigger the event on
54@param ServiceUuid The service containing the ID to trigger
55@param Flag The NotificationSet flag to use
56
57@retval NOTIFICATION_STATUS_SUCCESS Success
58@retval NOTIFICATION_STATUS_INVALID_PARAMETER Invalid parameter
59
60**/
61NotificationStatus
62NotificationServiceIdSet (
4153e647Raymond-MS1 years ago63UINT32 Id,
97eb3c34Raymond-MS1 years ago64UINT8 *ServiceUuid,
65UINT32 Flag
66);
67
68/**
69Extracts the UUID from the message arguments
70
1cf65721Raymond-MS1 years ago71@param UuidLo The lower bytes of the UUID
72@param UuidHi The higher bytes of the UUID
73@param Uuid The UUID to populate
97eb3c34Raymond-MS1 years ago74
75**/
76VOID
77NotificationServiceExtractUuid (
1cf65721Raymond-MS1 years ago78UINT64 UuidLo,
79UINT64 UuidHi,
80UINT8 *Uuid
97eb3c34Raymond-MS1 years ago81);
82
83#endif /* NOTIFICATION_SERVICE_LIB_H_ */