pm_ipi.h 805 Bytes
Newer Older
1
/*
2
 * Copyright (c) 2013-2017, ARM Limited and Contributors. All rights reserved.
3
 *
dp-arm's avatar
dp-arm committed
4
 * SPDX-License-Identifier: BSD-3-Clause
5
6
7
8
9
10
11
 */

#ifndef _PM_IPI_H_
#define _PM_IPI_H_

#include "pm_common.h"

12
int pm_ipi_init(const struct pm_proc *proc);
13
14
15

enum pm_ret_status pm_ipi_send(const struct pm_proc *proc,
			       uint32_t payload[PAYLOAD_ARG_CNT]);
16
17
enum pm_ret_status pm_ipi_send_non_blocking(const struct pm_proc *proc,
					    uint32_t payload[PAYLOAD_ARG_CNT]);
18
19
enum pm_ret_status pm_ipi_send_sync(const struct pm_proc *proc,
				    uint32_t payload[PAYLOAD_ARG_CNT],
20
				    unsigned int *value, size_t count);
21
void pm_ipi_buff_read_callb(unsigned int *value, size_t count);
22
23
void pm_ipi_irq_enable(const struct pm_proc *proc);
void pm_ipi_irq_clear(const struct pm_proc *proc);
24
25

#endif /* _PM_IPI_H_ */