2018-03-07 20:57:14 +08:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2018 Intel Corporation. All rights reserved.
|
|
|
|
*
|
2018-05-26 01:49:13 +08:00
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
2018-03-07 20:57:14 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef SOFTIRQ_H
|
|
|
|
#define SOFTIRQ_H
|
|
|
|
|
2018-07-02 14:05:58 +08:00
|
|
|
#define SOFTIRQ_TIMER 0U
|
2018-07-30 15:58:36 +08:00
|
|
|
#define SOFTIRQ_PTDEV 1U
|
|
|
|
#define NR_SOFTIRQS 2U
|
2018-03-07 20:57:14 +08:00
|
|
|
|
2018-07-30 15:58:36 +08:00
|
|
|
typedef void (*softirq_handler)(uint16_t cpu_id);
|
2018-03-07 20:57:14 +08:00
|
|
|
|
|
|
|
void init_softirq(void);
|
2018-07-30 15:58:36 +08:00
|
|
|
void register_softirq(uint16_t nr, softirq_handler handler);
|
|
|
|
void fire_softirq(uint16_t nr);
|
|
|
|
void do_softirq(void);
|
2018-03-07 20:57:14 +08:00
|
|
|
#endif /* SOFTIRQ_H */
|