Ignore:
Timestamp:
Mar 3, 2011, 8:59:04 PM (14 years ago)
Author:
David Azarewicz
Message:

interrupt fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GPL/branches/uniaud32-2.1.x/drv32/strategy.c

    r523 r546  
    3939
    4040ULONG DiscardableInit(RPInit __far*);
    41 
    4241ULONG deviceOwner = DEV_NO_OWNER;
    4342ULONG numOS2Opens = 0;
     
    7675// External initialization complete entry-point
    7776#ifdef ACPI
    78 // See desription in irq.cpp
    79 #include "irqos2.h"                             //PS+++
    80 #ifdef __cplusplus
    81 extern "C" {
    82 #endif
    83 ULONG InitCompleteWas = 0;                      //PS+++ Indication of InitComplete call
    84 struct SaveIRQForSlot
    85 {
    86         ULONG  ulSlotNo;
    87         BYTE   LowIRQ;
    88         BYTE   HighIRQ;
    89         BYTE   Pin;
    90 };
    91 extern struct SaveIRQForSlot sISRHigh[];
    92 extern int      SaveIRQCounter;
    93 #ifdef __cplusplus
    94 }
    95 #endif
     77#include "irqos2.h"
    9678#endif //ACPI
    9779//******************************************************************************
     
    10183{
    10284#ifdef ACPI
    103 //PS+++ Begin
    104         ULONG  i, rc = 0;
    105 
    106         InitCompleteWas = 1;
    107         for (i = 0; i < SaveIRQCounter; i++)
    108         {
    109                  dprintf(("Close IRQ%d - Open IRQ%d",(ULONG)sISRHigh[i].LowIRQ,(ULONG)sISRHigh[i].HighIRQ));
    110                  if (sISRHigh[i].HighIRQ)
    111                  {
    112                          ALSA_FreeIrq(sISRHigh[i].LowIRQ);
    113                          if (!ALSA_SetIrq(sISRHigh[i].HighIRQ, sISRHigh[i].ulSlotNo, 1))
    114                          {
    115                                  return (RPERR_COMMAND | RPDONE);
    116                          }
    117                  }
    118         }
     85        PciAdjustInterrupts();
    11986#endif
    120 //PS++ End
    12187        //dprintf(("StratInitComplete"));
    12288        return(RPDONE);
Note: See TracChangeset for help on using the changeset viewer.