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 14 FASTCALL 15 HalpIrqToVector(UCHAR Irq); 16 17 KIRQL 18 FASTCALL 19 HalpVectorToIrql(UCHAR Vector); 20 21 UCHAR 22 FASTCALL 23 HalpVectorToIrq(UCHAR Vector); 24 25 #define VECTOR2IRQ(vector) HalpVectorToIrq(vector) 26 #define VECTOR2IRQL(vector) HalpVectorToIrql(vector) 27 #define IRQ2VECTOR(irq) HalpIrqToVector(irq) 28 29 #endif 30 31