blob: 73f482aa52e229545ecf97dfc341294cde3e4cc9 [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. */
Andrew Walbranae3840d2020-08-06 15:01:02 +010018#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
Madhukar Pappireddyf675bb62021-08-03 12:57:10 -050023#define HF_INTERRUPT_DEACTIVATE 0xff08
Andrew Walbranf0c314d2019-10-02 14:24:26 +010024
Andrew Walbranb5ab43c2020-04-30 11:32:54 +010025/* Custom FF-A-like calls returned from FFA_RUN. */
Andrew Walbranae3840d2020-08-06 15:01:02 +010026#define HF_FFA_RUN_WAIT_FOR_INTERRUPT 0xff06
27#define HF_FFA_RUN_WAKE_UP 0xff07
Andrew Walbranf0c314d2019-10-02 14:24:26 +010028
Andrew Walbrana0e30b02020-10-22 15:55:45 +010029/* This matches what Trusty and its TF-A module currently use. */
Andrew Walbranf0c314d2019-10-02 14:24:26 +010030#define HF_DEBUG_LOG 0xbd000000
31
32/* clang-format on */