ReactOS  0.4.15-dev-2344-g8ddbfde
halirq.h
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #ifdef _MINIHAL_
5 #define VECTOR2IRQ(vector) ((vector) - PRIMARY_VECTOR_BASE)
6 #define VECTOR2IRQL(vector) (PROFILE_LEVEL - VECTOR2IRQ(vector))
7 #define IRQ2VECTOR(irq) ((irq) + PRIMARY_VECTOR_BASE)
8 #define HalpVectorToIrq(vector) ((vector) - PRIMARY_VECTOR_BASE)
9 #define HalpVectorToIrql(vector) (PROFILE_LEVEL - VECTOR2IRQ(vector))
10 #define HalpIrqToVector(irq) ((irq) + PRIMARY_VECTOR_BASE)
11 #else
12 
13 UCHAR
16 
17 KIRQL
20 
21 UCHAR
24 
25 #define VECTOR2IRQ(vector) HalpVectorToIrq(vector)
26 #define VECTOR2IRQL(vector) HalpVectorToIrql(vector)
27 #define IRQ2VECTOR(irq) HalpIrqToVector(irq)
28 
29 #endif
30 
UCHAR FASTCALL HalpIrqToVector(UCHAR Irq)
Definition: apic.c:225
KIRQL FASTCALL HalpVectorToIrql(UCHAR Vector)
Definition: apic.c:238
UCHAR FASTCALL HalpVectorToIrq(UCHAR Vector)
Definition: apic.c:245
#define FASTCALL
Definition: nt_native.h:50
UCHAR KIRQL
Definition: env_spec_w32.h:591
unsigned char UCHAR
Definition: xmlstorage.h:181