stos: hal: Add interrupt IRQL defs
Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
@@ -0,0 +1,26 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2026, Chloe M.
|
||||||
|
* Provided under the BSD-3 clause.
|
||||||
|
*
|
||||||
|
* Description: Interrupt management
|
||||||
|
* Author: Chloe M.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef _HAL_INTR_H_
|
||||||
|
#define _HAL_INTR_H_ 1
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Valid interrupt request levels
|
||||||
|
*
|
||||||
|
* @IRQL_PASSIVE: Standard user/kernel operation
|
||||||
|
* @IRQL_APC: Asynchronous procedure call
|
||||||
|
* @IRQL_DISPATCH: Deferred procedure call dispatch
|
||||||
|
* @IRQL_HIGH: Block everything
|
||||||
|
*/
|
||||||
|
#define IRQL_PASSIVE 0
|
||||||
|
#define IRQL_APC 1
|
||||||
|
#define IRQL_DISPATCH 2
|
||||||
|
#define IRQL_DEVICE 3
|
||||||
|
#define IRQL_HIGH 4
|
||||||
|
|
||||||
|
#endif /* !_HAL_INTR_H_ */
|
||||||
Reference in New Issue
Block a user