mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-08-15 08:57:02 +02:00
This patch adds support for CRC checksum for IPI data when the macro ZYNQMP_IPI_CRC_CHECK is defined. Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@xilinx.com> Signed-off-by: Jolly Shah <jolly.shah@xilinx.com> Change-Id: Ic981f162666b3c1fffeb1b9fef3ee7714ecd889d
34 lines
1.0 KiB
C
34 lines
1.0 KiB
C
/*
|
|
* Copyright (c) 2013-2020, ARM Limited and Contributors. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef PM_IPI_H
|
|
#define PM_IPI_H
|
|
|
|
#include <plat_ipi.h>
|
|
#include "pm_common.h"
|
|
|
|
#define IPI_BLOCKING 1
|
|
#define IPI_NON_BLOCKING 0
|
|
|
|
int pm_ipi_init(const struct pm_proc *proc);
|
|
|
|
enum pm_ret_status pm_ipi_send(const struct pm_proc *proc,
|
|
uint32_t payload[PAYLOAD_ARG_CNT]);
|
|
enum pm_ret_status pm_ipi_send_non_blocking(const struct pm_proc *proc,
|
|
uint32_t payload[PAYLOAD_ARG_CNT]);
|
|
enum pm_ret_status pm_ipi_send_sync(const struct pm_proc *proc,
|
|
uint32_t payload[PAYLOAD_ARG_CNT],
|
|
unsigned int *value, size_t count);
|
|
void pm_ipi_buff_read_callb(unsigned int *value, size_t count);
|
|
void pm_ipi_irq_enable(const struct pm_proc *proc);
|
|
void pm_ipi_irq_clear(const struct pm_proc *proc);
|
|
uint32_t pm_ipi_irq_status(const struct pm_proc *proc);
|
|
#if ZYNQMP_IPI_CRC_CHECK
|
|
uint32_t calculate_crc(uint32_t payload[PAYLOAD_ARG_CNT], uint32_t buffersize);
|
|
#endif
|
|
|
|
#endif /* PM_IPI_H */
|