summaryrefslogtreecommitdiff
path: root/platform/common/include/plat/sys/clint.h
blob: 7da8aad19d6208f4ed46110b5c63bbc73cac9015 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
 * Copyright (c) 2018 Western Digital Corporation or its affiliates.
 *
 * Authors:
 *   Anup Patel <anup.patel@wdc.com>
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#ifndef __SYS_CLINT_H__
#define __SYS_CLINT_H__

#include <sbi/sbi_types.h>

void clint_ipi_send(u32 target_hart);

void clint_ipi_sync(u32 target_hart);

void clint_ipi_clear(u32 target_hart);

int clint_warm_ipi_init(void);

int clint_cold_ipi_init(unsigned long base, u32 hart_count);

u64 clint_timer_value(void);

void clint_timer_event_stop(void);

void clint_timer_event_start(u64 next_event);

int clint_warm_timer_init(void);

int clint_cold_timer_init(unsigned long base, u32 hart_count);

#endif