blob: 93ce7c3b87a3e251db1f1b2a641722bb14520fb0 [file] [log] [blame]
/*
* Copyright (C) 2016 Freescale Semiconductor, Inc.
* Copyright 2017 NXP
*
* SPDX-License-Identifier: GPL-2.0+
*/
/*!
* Header file for the IRQ RPC implementation.
*
* @addtogroup IRQ_SVC
* @{
*/
#ifndef _SC_IRQ_RPC_H
#define _SC_IRQ_RPC_H
/* Includes */
/* Defines */
/* Types */
/*!
* This type is used to indicate RPC IRQ function calls.
*/
typedef enum irq_func_e {
IRQ_FUNC_UNKNOWN = 0, /* Unknown function */
IRQ_FUNC_ENABLE = 1, /* Index for irq_enable() RPC call */
IRQ_FUNC_STATUS = 2, /* Index for irq_status() RPC call */
} irq_func_t;
/* Functions */
/*!
* This function dispatches an incoming IRQ RPC request.
*
* @param[in] caller_pt caller partition
* @param[in] msg pointer to RPC message
*/
void irq_dispatch(sc_rm_pt_t caller_pt, sc_rpc_msg_t *msg);
/*!
* This function translates and dispatches an IRQ RPC request.
*
* @param[in] ipc IPC handle
* @param[in] msg pointer to RPC message
*/
void irq_xlate(sc_ipc_t ipc, sc_rpc_msg_t *msg);
#endif /* _SC_IRQ_RPC_H */
/**@}*/