blob: 66f09fd47ed096e071b8bc0b8d93db4c73286985 [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 *
Andrew Walbrane959ec12020-06-17 15:01:09 +01004 * 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.
Andrew Scull6d2db332018-10-10 15:28:17 +01007 */
8
9#pragma once
10
Andrew Walbranb5ab43c2020-04-30 11:32:54 +010011#include "hf/ffa.h"
Andrew Scull6d2db332018-10-10 15:28:17 +010012#include "hf/types.h"
13
Andrew Walbranf0c314d2019-10-02 14:24:26 +010014/* Keep macro alignment */
15/* clang-format off */
16
17/* TODO: Define constants below according to spec. */
18#define HF_VM_GET_COUNT 0xff01
19#define HF_VCPU_GET_COUNT 0xff02
Andrew Walbranbfffb0f2019-11-05 14:02:34 +000020#define HF_MAILBOX_WRITABLE_GET 0xff03
21#define HF_MAILBOX_WAITER_GET 0xff04
22#define HF_INTERRUPT_ENABLE 0xff05
23#define HF_INTERRUPT_GET 0xff06
24#define HF_INTERRUPT_INJECT 0xff07
Andrew Walbranf0c314d2019-10-02 14:24:26 +010025
Andrew Walbranb5ab43c2020-04-30 11:32:54 +010026/* Custom FF-A-like calls returned from FFA_RUN. */
27#define HF_FFA_RUN_WAIT_FOR_INTERRUPT 0xff09
28#define HF_FFA_RUN_WAKE_UP 0xff0a
Andrew Walbranf0c314d2019-10-02 14:24:26 +010029
30/* This matches what Trusty and its ATF module currently use. */
31#define HF_DEBUG_LOG 0xbd000000
32
33/* clang-format on */