21 lines
427 B
C
21 lines
427 B
C
/*
|
|
* Copyright (C) 2018-2022 Intel Corporation.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef SOFTIRQ_H
|
|
#define SOFTIRQ_H
|
|
|
|
#define SOFTIRQ_TIMER 0U
|
|
#define SOFTIRQ_PTDEV 1U
|
|
#define NR_SOFTIRQS 2U
|
|
|
|
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 */
|