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