ReactOS  0.4.15-dev-3439-g2693a26
halirq.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define VECTOR2IRQ(vector)   HalpVectorToIrq(vector)
 
#define VECTOR2IRQL(vector)   HalpVectorToIrql(vector)
 
#define IRQ2VECTOR(irq)   HalpIrqToVector(irq)
 

Functions

UCHAR FASTCALL HalpIrqToVector (UCHAR Irq)
 
KIRQL FASTCALL HalpVectorToIrql (UCHAR Vector)
 
UCHAR FASTCALL HalpVectorToIrq (UCHAR Vector)
 

Macro Definition Documentation

◆ IRQ2VECTOR

#define IRQ2VECTOR (   irq)    HalpIrqToVector(irq)

Definition at line 27 of file halirq.h.

◆ VECTOR2IRQ

#define VECTOR2IRQ (   vector)    HalpVectorToIrq(vector)

Definition at line 25 of file halirq.h.

◆ VECTOR2IRQL

#define VECTOR2IRQL (   vector)    HalpVectorToIrql(vector)

Definition at line 26 of file halirq.h.

Function Documentation

◆ HalpIrqToVector()

UCHAR FASTCALL HalpIrqToVector ( UCHAR  Irq)

Definition at line 222 of file apic.c.

223 {
225 
226  /* Read low dword of the redirection entry */
227  ReDirReg.Long0 = IOApicRead(IOAPIC_REDTBL + 2 * Irq);
228 
229  /* Return the vector */
230  return (UCHAR)ReDirReg.Vector;
231 }
unsigned char UCHAR
Definition: xmlstorage.h:181
FORCEINLINE ULONG IOApicRead(UCHAR Register)
Definition: apic.c:94

Referenced by HalpGetRootInterruptVector().

◆ HalpVectorToIrq()

UCHAR FASTCALL HalpVectorToIrq ( UCHAR  Vector)

Definition at line 242 of file apic.c.

243 {
244  return HalpVectorToIndex[Vector];
245 }
UCHAR HalpVectorToIndex[256]
Definition: apic.c:28
_In_ PKSERVICE_ROUTINE _In_opt_ PVOID _In_opt_ PKSPIN_LOCK _In_ ULONG Vector
Definition: iofuncs.h:800

Referenced by HalpGetRootInterruptVector().

◆ HalpVectorToIrql()

KIRQL FASTCALL HalpVectorToIrql ( UCHAR  Vector)

Definition at line 235 of file apic.c.

236 {
237  return TprToIrql(Vector);
238 }
#define TprToIrql(Tpr)
Definition: apicp.h:55

Referenced by HalpGetRootInterruptVector().