From e1a115cccc4ff5af6781b9329aa6043470e22a5f Mon Sep 17 00:00:00 2001 From: "Chloe M." Date: Tue, 23 Jun 2026 20:14:03 +0000 Subject: [PATCH] stos: hal: Add interrupt IRQL defs Signed-off-by: Chloe M. --- paw/stos/head/hal/intr.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 paw/stos/head/hal/intr.h diff --git a/paw/stos/head/hal/intr.h b/paw/stos/head/hal/intr.h new file mode 100644 index 0000000..4699834 --- /dev/null +++ b/paw/stos/head/hal/intr.h @@ -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_ */