Added HalpGetIsaInterruptVector.
authorHartmut Birr <osexpert@googlemail.com>
Mon, 9 Dec 2002 19:44:44 +0000 (19:44 +0000)
committerHartmut Birr <osexpert@googlemail.com>
Mon, 9 Dec 2002 19:44:44 +0000 (19:44 +0000)
svn path=/trunk/; revision=3846

reactos/hal/halx86/bus.c
reactos/hal/halx86/include/bus.h
reactos/hal/halx86/isa.c

index 1ae83ee..849c991 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: bus.c,v 1.4 2002/10/02 19:32:57 ekohl Exp $
+/* $Id: bus.c,v 1.5 2002/12/09 19:44:44 hbirr Exp $
  *
  * COPYRIGHT:       See COPYING in the top level directory
  * PROJECT:         ReactOS kernel
@@ -170,6 +170,8 @@ HalpInitBusHandlers(VOID)
    if (BusHandler == NULL)
      return;
 
+   BusHandler->GetInterruptVector =
+       (pGetInterruptVector)HalpGetIsaInterruptVector;
    BusHandler->TranslateBusAddress =
        (pTranslateBusAddress)HalpTranslateIsaBusAddress;
 
index d77a470..b566a81 100644 (file)
@@ -86,6 +86,14 @@ HalpTranslateSystemBusAddress(PBUS_HANDLER BusHandler,
                              PPHYSICAL_ADDRESS TranslatedAddress);
 
 /* isa.c */
+ULONG STDCALL
+HalpGetIsaInterruptVector(PVOID BusHandler,
+                         ULONG BusNumber,
+                         ULONG BusInterruptLevel,
+                         ULONG BusInterruptVector,
+                         PKIRQL Irql,
+                         PKAFFINITY Affinity);
+
 BOOLEAN STDCALL
 HalpTranslateIsaBusAddress(PBUS_HANDLER BusHandler,
                           ULONG BusNumber,
index d872c67..d039adb 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: isa.c,v 1.3 2002/09/08 10:22:24 chorns Exp $
+/* $Id: isa.c,v 1.4 2002/12/09 19:44:44 hbirr Exp $
  *
  * COPYRIGHT:       See COPYING in the top level directory
  * PROJECT:         ReactOS kernel
@@ -59,4 +59,16 @@ HalpTranslateIsaBusAddress(PBUS_HANDLER BusHandler,
    return Result;
 }
 
+ULONG STDCALL
+HalpGetIsaInterruptVector(PVOID BusHandler,
+                         ULONG BusNumber,
+                         ULONG BusInterruptLevel,
+                         ULONG BusInterruptVector,
+                         PKIRQL Irql,
+                         PKAFFINITY Affinity)
+{
+  *Irql = PROFILE_LEVEL - BusInterruptVector;
+  *Affinity = 0xFFFFFFFF;
+  return BusInterruptVector;
+}
 /* EOF */