blob: af13db97a76d39af20dd81d43cb72f6661667c36 [file] [log] [blame]
Wendy Liangf8fec362017-09-06 09:39:55 -07001/*
Wendy Liangc31c48b2019-01-21 13:45:48 +05302 * Copyright (c) 2017-2019, ARM Limited and Contributors. All rights reserved.
Wendy Liangf8fec362017-09-06 09:39:55 -07003 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7/* ZynqMP IPI mailbox doorbell service enums and defines */
8
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +00009#ifndef IPI_MAILBOX_SVC_H
10#define IPI_MAILBOX_SVC_H
Wendy Liangf8fec362017-09-06 09:39:55 -070011
12#include <stdint.h>
13
14/*********************************************************************
15 * Enum definitions
16 ********************************************************************/
17
18/* IPI SMC function numbers enum definition */
19enum ipi_api_id {
20 /* IPI mailbox operations functions: */
21 IPI_MAILBOX_OPEN = 0x1000,
22 IPI_MAILBOX_RELEASE,
23 IPI_MAILBOX_STATUS_ENQUIRY,
24 IPI_MAILBOX_NOTIFY,
25 IPI_MAILBOX_ACK,
26 IPI_MAILBOX_ENABLE_IRQ,
27 IPI_MAILBOX_DISABLE_IRQ
28};
29
30/*********************************************************************
31 * IPI mailbox service APIs declarations
32 ********************************************************************/
33
34/* IPI SMC handler */
35uint64_t ipi_smc_handler(uint32_t smc_fid, uint64_t x1, uint64_t x2,
Venkatesh Yadav Abbarapud3c0eb42022-05-24 14:02:52 +053036 uint64_t x3, uint64_t x4, const void *cookie, void *handle,
Wendy Liangf8fec362017-09-06 09:39:55 -070037 uint64_t flags);
38
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +000039#endif /* IPI_MAILBOX_SVC_H */