2004-11-01 14:37:19 +00:00
|
|
|
|
2010-02-26 11:43:19 +00:00
|
|
|
#pragma once
|
2004-11-01 14:37:19 +00:00
|
|
|
|
2011-09-05 15:28:49 +00:00
|
|
|
#ifdef _MINIHAL_
|
|
|
|
#define VECTOR2IRQ(vector) ((vector) - PRIMARY_VECTOR_BASE)
|
|
|
|
#define VECTOR2IRQL(vector) (PROFILE_LEVEL - VECTOR2IRQ(vector))
|
|
|
|
#define IRQ2VECTOR(irq) ((irq) + PRIMARY_VECTOR_BASE)
|
2011-09-10 21:56:07 +00:00
|
|
|
#define HalpVectorToIrq(vector) ((vector) - PRIMARY_VECTOR_BASE)
|
|
|
|
#define HalpVectorToIrql(vector) (PROFILE_LEVEL - VECTOR2IRQ(vector))
|
|
|
|
#define HalpIrqToVector(irq) ((irq) + PRIMARY_VECTOR_BASE)
|
2011-09-05 15:28:49 +00:00
|
|
|
#else
|
|
|
|
|
2011-09-05 15:20:07 +00:00
|
|
|
UCHAR
|
|
|
|
FASTCALL
|
|
|
|
HalpIrqToVector(UCHAR Irq);
|
2004-11-01 14:37:19 +00:00
|
|
|
|
2011-09-05 15:20:07 +00:00
|
|
|
KIRQL
|
|
|
|
FASTCALL
|
|
|
|
HalpVectorToIrql(UCHAR Vector);
|
2004-11-01 14:37:19 +00:00
|
|
|
|
2011-09-05 15:20:07 +00:00
|
|
|
UCHAR
|
|
|
|
FASTCALL
|
|
|
|
HalpVectorToIrq(UCHAR Vector);
|
2004-11-01 14:37:19 +00:00
|
|
|
|
2011-09-05 15:20:07 +00:00
|
|
|
#define VECTOR2IRQ(vector) HalpVectorToIrq(vector)
|
|
|
|
#define VECTOR2IRQL(vector) HalpVectorToIrql(vector)
|
|
|
|
#define IRQ2VECTOR(irq) HalpIrqToVector(irq)
|
2004-11-01 14:37:19 +00:00
|
|
|
|
2011-09-05 15:28:49 +00:00
|
|
|
#endif
|
2011-09-10 21:56:07 +00:00
|
|
|
|