mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-11-14 19:02:02 +00:00
This patch implements risc-v specific timer codes. Basically, risc-v adapts to acrn timer framework with some specific behaviors. So far, it enables sstc support in h-mode. Tracked-On: #8792 Signed-off-by: Haicheng Li <haicheng.li@outlook.com> Co-developed-by: Yong Li <yong.li@intel.com> Signed-off-by: Yong Li <yong.li@intel.com> Co-developed-by: Yi Y Sun <yi.y.sun@intel.com> Signed-off-by: Yi Y Sun <yi.y.sun@intel.com> Acked-by: Wang, Yu1 <yu1.wang@intel.com>
24 lines
490 B
C
24 lines
490 B
C
/*
|
|
* Copyright (C) 2018-2022 Intel Corporation.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef SOFTIRQ_H
|
|
#define SOFTIRQ_H
|
|
|
|
#include <lib/types.h>
|
|
|
|
#define SOFTIRQ_TIMER 0U
|
|
#define SOFTIRQ_PTDEV 1U
|
|
#define SOFTIRQ_THERMAL 2U
|
|
#define NR_SOFTIRQS 3U
|
|
|
|
typedef void (*softirq_handler)(uint16_t cpu_id);
|
|
|
|
void init_softirq(void);
|
|
void register_softirq(uint16_t nr, softirq_handler handler);
|
|
void fire_softirq(uint16_t nr);
|
|
void do_softirq(void);
|
|
#endif /* SOFTIRQ_H */
|