1 /*
2  * Copyright 2018 The Hafnium Authors.
3  *
4  * Use of this source code is governed by a BSD-style
5  * license that can be found in the LICENSE file or at
6  * https://opensource.org/licenses/BSD-3-Clause.
7  */
8 
9 #pragma once
10 
11 #include "hf/ffa.h"
12 #include "hf/types.h"
13 
14 /* Keep macro alignment */
15 /* clang-format off */
16 
17 /* TODO: Define constants below according to spec. */
18 #define HF_MAILBOX_WRITABLE_GET        0xff01
19 #define HF_MAILBOX_WAITER_GET          0xff02
20 #define HF_INTERRUPT_ENABLE            0xff03
21 #define HF_INTERRUPT_GET               0xff04
22 #define HF_INTERRUPT_INJECT            0xff05
23 #define HF_INTERRUPT_DEACTIVATE	       0xff08
24 
25 /* Custom FF-A-like calls returned from FFA_RUN. */
26 #define HF_FFA_RUN_WAIT_FOR_INTERRUPT 0xff06
27 
28 /* This matches what Trusty and its TF-A module currently use. */
29 #define HF_DEBUG_LOG            0xbd000000
30 
31 /* clang-format on */
32