blob: 650de5220535a04f32908714937754fa0eef3504 [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
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +00007#ifndef PM_IPI_H
8#define PM_IPI_H
Soren Brinkmann76fcae32016-03-06 20:16:27 -08009
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]);
Tejas Patelaf4b10e2018-02-09 02:42:59 -080016enum pm_ret_status pm_ipi_send_non_blocking(const struct pm_proc *proc,
17 uint32_t payload[PAYLOAD_ARG_CNT]);
Soren Brinkmann76fcae32016-03-06 20:16:27 -080018enum pm_ret_status pm_ipi_send_sync(const struct pm_proc *proc,
19 uint32_t payload[PAYLOAD_ARG_CNT],
Soren Brinkmannd6c9e032016-09-22 11:35:47 -070020 unsigned int *value, size_t count);
Soren Brinkmann84f0af42016-09-30 14:24:25 -070021void pm_ipi_buff_read_callb(unsigned int *value, size_t count);
Wendy Liang328105c2017-10-03 23:21:11 -070022void pm_ipi_irq_enable(const struct pm_proc *proc);
23void pm_ipi_irq_clear(const struct pm_proc *proc);
Soren Brinkmann76fcae32016-03-06 20:16:27 -080024
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +000025#endif /* PM_IPI_H */