ReactOS 0.4.15-dev-6639-gebfec38
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
16
20
24
25#define VECTOR2IRQ(vector) HalpVectorToIrq(vector)
26#define VECTOR2IRQL(vector) HalpVectorToIrql(vector)
27#define IRQ2VECTOR(irq) HalpIrqToVector(irq)
28
29#endif
30
UCHAR KIRQL
Definition: env_spec_w32.h:591
UCHAR FASTCALL HalpIrqToVector(UCHAR Irq)
Definition: apic.c:257
KIRQL FASTCALL HalpVectorToIrql(UCHAR Vector)
Definition: apic.c:270
UCHAR FASTCALL HalpVectorToIrq(UCHAR Vector)
Definition: apic.c:277
#define FASTCALL
Definition: nt_native.h:50
unsigned char UCHAR
Definition: xmlstorage.h:181