mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 01:24:38 +00:00
30 lines
712 B
C
30 lines
712 B
C
|
|
#pragma once
|
|
|
|
#ifdef _MINIHAL_
|
|
#define VECTOR2IRQ(vector) ((vector) - PRIMARY_VECTOR_BASE)
|
|
#define VECTOR2IRQL(vector) (PROFILE_LEVEL - VECTOR2IRQ(vector))
|
|
#define IRQ2VECTOR(irq) ((irq) + PRIMARY_VECTOR_BASE)
|
|
#define HalpVectorToIrq(vector) ((vector) - PRIMARY_VECTOR_BASE)
|
|
#define HalpVectorToIrql(vector) (PROFILE_LEVEL - VECTOR2IRQ(vector))
|
|
#define HalpIrqToVector(irq) ((irq) + PRIMARY_VECTOR_BASE)
|
|
#else
|
|
|
|
UCHAR
|
|
FASTCALL
|
|
HalpIrqToVector(UCHAR Irq);
|
|
|
|
KIRQL
|
|
FASTCALL
|
|
HalpVectorToIrql(UCHAR Vector);
|
|
|
|
UCHAR
|
|
FASTCALL
|
|
HalpVectorToIrq(UCHAR Vector);
|
|
|
|
#define VECTOR2IRQ(vector) HalpVectorToIrq(vector)
|
|
#define VECTOR2IRQL(vector) HalpVectorToIrql(vector)
|
|
#define IRQ2VECTOR(irq) HalpIrqToVector(irq)
|
|
|
|
#endif
|
|
|