Changeset 545 for GPL/trunk/drv32/strategy.c
- Timestamp:
- Mar 3, 2011, 8:43:04 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk/drv32/strategy.c
r521 r545 39 39 40 40 ULONG DiscardableInit(RPInit __far*); 41 42 41 ULONG deviceOwner = DEV_NO_OWNER; 43 42 ULONG numOS2Opens = 0; … … 76 75 // External initialization complete entry-point 77 76 #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" 96 78 #endif //ACPI 97 79 //****************************************************************************** … … 101 83 { 102 84 #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(); 119 86 #endif 120 //PS++ End121 87 //dprintf(("StratInitComplete")); 122 88 return(RPDONE);
Note:
See TracChangeset
for help on using the changeset viewer.