mirror of
https://github.com/reactos/reactos.git
synced 2024-11-19 05:22:59 +00:00
2b82fe44ea
- Create a branch to drop my ndisuio work svn path=/branches/wlan-bringup/; revision=54809
33 lines
727 B
C
33 lines
727 B
C
/*
|
|
* $Id$
|
|
*/
|
|
|
|
#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
|
|
|