blob: cc6d14c60e512d3d8080b8d360d7c88629c13fa6 [file] [log] [blame]
Andrew Scull6d2db332018-10-10 15:28:17 +01001/*
Andrew Walbran692b3252019-03-07 15:51:31 +00002 * Copyright 2018 The Hafnium Authors.
Andrew Scull6d2db332018-10-10 15:28:17 +01003 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * https://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#pragma once
18
Andrew Walbranb5ab43c2020-04-30 11:32:54 +010019#include "hf/ffa.h"
Andrew Scull6d2db332018-10-10 15:28:17 +010020#include "hf/types.h"
21
Andrew Walbranf0c314d2019-10-02 14:24:26 +010022/* Keep macro alignment */
23/* clang-format off */
24
25/* TODO: Define constants below according to spec. */
26#define HF_VM_GET_COUNT 0xff01
27#define HF_VCPU_GET_COUNT 0xff02
Andrew Walbranbfffb0f2019-11-05 14:02:34 +000028#define HF_MAILBOX_WRITABLE_GET 0xff03
29#define HF_MAILBOX_WAITER_GET 0xff04
30#define HF_INTERRUPT_ENABLE 0xff05
31#define HF_INTERRUPT_GET 0xff06
32#define HF_INTERRUPT_INJECT 0xff07
Andrew Walbranf0c314d2019-10-02 14:24:26 +010033
Andrew Walbranb5ab43c2020-04-30 11:32:54 +010034/* Custom FF-A-like calls returned from FFA_RUN. */
35#define HF_FFA_RUN_WAIT_FOR_INTERRUPT 0xff09
36#define HF_FFA_RUN_WAKE_UP 0xff0a
Andrew Walbranf0c314d2019-10-02 14:24:26 +010037
38/* This matches what Trusty and its ATF module currently use. */
39#define HF_DEBUG_LOG 0xbd000000
40
41/* clang-format on */