mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-05-04 06:26:54 +00:00
The main focus on: constant suffix U/UL; parameters cast like uint32 to a uint16 variable; unify some APIs interface, consist with the callers. also modify some places to unify code style Signed-off-by: Minggui Cao <minggui.cao@intel.com>
24 lines
547 B
C
24 lines
547 B
C
/*
|
|
* Copyright (C) 2018 Intel Corporation. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef SOFTIRQ_H
|
|
#define SOFTIRQ_H
|
|
|
|
#define SOFTIRQ_TIMER 0U
|
|
#define SOFTIRQ_DEV_ASSIGN 1U
|
|
#define SOFTIRQ_MAX 2U
|
|
#define SOFTIRQ_MASK ((1UL<<SOFTIRQ_MAX)-1)
|
|
|
|
/* used for atomic value for prevent recursive */
|
|
#define SOFTIRQ_ATOMIC 63U
|
|
|
|
void enable_softirq(uint16_t cpu_id);
|
|
void disable_softirq(uint16_t cpu_id);
|
|
void init_softirq(void);
|
|
void raise_softirq(uint16_t softirq_id);
|
|
void exec_softirq(void);
|
|
#endif /* SOFTIRQ_H */
|