blob: 8e35ddf9636ad89ae78991e24e1f63879fbbbf4a [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
Madhukar Pappireddy72d23932023-07-24 15:57:28 -050024#define HF_INTERRUPT_RECONFIGURE 0xff09
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. */
Andrew Walbranae3840d2020-08-06 15:01:02 +010027#define HF_FFA_RUN_WAIT_FOR_INTERRUPT 0xff06
Andrew Walbranf0c314d2019-10-02 14:24:26 +010028
Madhukar Pappireddy3221a442023-07-24 16:10:55 -050029/* Possible commands that reconfigure an interrupt. */
30#define INT_RECONFIGURE_TARGET_PE 0
31#define INT_RECONFIGURE_SEC_STATE 1
Madhukar Pappireddy938faaf2023-07-31 17:56:55 -050032#define INT_RECONFIGURE_ENABLE 2
Madhukar Pappireddy3221a442023-07-24 16:10:55 -050033
Andrew Walbranf0c314d2019-10-02 14:24:26 +010034/* clang-format on */