blob: ad3d5f1998ae7e6410b8dcb09092f6c936ebb683 [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_INTERRUPT_ENABLE 0xff03
19#define HF_INTERRUPT_GET 0xff04
Madhukar Pappireddyf675bb62021-08-03 12:57:10 -050020#define HF_INTERRUPT_DEACTIVATE 0xff08
Madhukar Pappireddy72d23932023-07-24 15:57:28 -050021#define HF_INTERRUPT_RECONFIGURE 0xff09
Daniel Boulbyf3cf28c2024-08-22 10:46:23 +010022#define HF_INTERRUPT_SEND_IPI 0xff0a
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
Andrew Walbranf0c314d2019-10-02 14:24:26 +010026
Madhukar Pappireddy3221a442023-07-24 16:10:55 -050027/* Possible commands that reconfigure an interrupt. */
28#define INT_RECONFIGURE_TARGET_PE 0
29#define INT_RECONFIGURE_SEC_STATE 1
Madhukar Pappireddy938faaf2023-07-31 17:56:55 -050030#define INT_RECONFIGURE_ENABLE 2
Madhukar Pappireddy3221a442023-07-24 16:10:55 -050031
Andrew Walbranf0c314d2019-10-02 14:24:26 +010032/* clang-format on */