mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-17 01:54:22 +00:00

Add IPI mailbox service to manage Xilinx ZynqMP IPI(Inter Processors Interrupt) access. Signed-off-by: Wendy Liang <jliang@xilinx.com>
39 lines
1.1 KiB
C
39 lines
1.1 KiB
C
/*
|
|
* Copyright (c) 2017, ARM Limited and Contributors. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
/* ZynqMP IPI mailbox doorbell service enums and defines */
|
|
|
|
#ifndef _IPI_MAILBOX_SVC_H_
|
|
#define _IPI_MAILBOX_SVC_H_
|
|
|
|
#include <stdint.h>
|
|
|
|
/*********************************************************************
|
|
* Enum definitions
|
|
********************************************************************/
|
|
|
|
/* IPI SMC function numbers enum definition */
|
|
enum ipi_api_id {
|
|
/* IPI mailbox operations functions: */
|
|
IPI_MAILBOX_OPEN = 0x1000,
|
|
IPI_MAILBOX_RELEASE,
|
|
IPI_MAILBOX_STATUS_ENQUIRY,
|
|
IPI_MAILBOX_NOTIFY,
|
|
IPI_MAILBOX_ACK,
|
|
IPI_MAILBOX_ENABLE_IRQ,
|
|
IPI_MAILBOX_DISABLE_IRQ
|
|
};
|
|
|
|
/*********************************************************************
|
|
* IPI mailbox service APIs declarations
|
|
********************************************************************/
|
|
|
|
/* IPI SMC handler */
|
|
uint64_t ipi_smc_handler(uint32_t smc_fid, uint64_t x1, uint64_t x2,
|
|
uint64_t x3, uint64_t x4, void *cookie, void *handle,
|
|
uint64_t flags);
|
|
|
|
#endif /* _IPI_MAILBOX_SVC_H_ */
|