blob: e6b36f529b6df2b5ce1b777c7405c4fa44fb60dd [file] [log] [blame]
Soren Brinkmann76fcae32016-03-06 20:16:27 -08001/*
Wendy Liang328105c2017-10-03 23:21:11 -07002 * Copyright (c) 2013-2017, ARM Limited and Contributors. All rights reserved.
Soren Brinkmann76fcae32016-03-06 20:16:27 -08003 *
dp-armfa3cf0b2017-05-03 09:38:09 +01004 * SPDX-License-Identifier: BSD-3-Clause
Soren Brinkmann76fcae32016-03-06 20:16:27 -08005 */
6
7#ifndef _PM_IPI_H_
8#define _PM_IPI_H_
9
10#include "pm_common.h"
11
Wendy Liang328105c2017-10-03 23:21:11 -070012int pm_ipi_init(const struct pm_proc *proc);
Soren Brinkmann76fcae32016-03-06 20:16:27 -080013
14enum pm_ret_status pm_ipi_send(const struct pm_proc *proc,
15 uint32_t payload[PAYLOAD_ARG_CNT]);
16enum pm_ret_status pm_ipi_send_sync(const struct pm_proc *proc,
17 uint32_t payload[PAYLOAD_ARG_CNT],
Soren Brinkmannd6c9e032016-09-22 11:35:47 -070018 unsigned int *value, size_t count);
Soren Brinkmann84f0af42016-09-30 14:24:25 -070019void pm_ipi_buff_read_callb(unsigned int *value, size_t count);
Wendy Liang328105c2017-10-03 23:21:11 -070020void pm_ipi_irq_enable(const struct pm_proc *proc);
21void pm_ipi_irq_clear(const struct pm_proc *proc);
Soren Brinkmann76fcae32016-03-06 20:16:27 -080022
23#endif /* _PM_IPI_H_ */