Changeset 547 for GPL/trunk/drv32/strategy.c
- Timestamp:
- Mar 16, 2011, 10:31:12 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk/drv32/strategy.c
r545 r547 33 33 #include <ossidc32.h> 34 34 #include <dbgos2.h> 35 #include <string.h> 35 36 36 37 ULONG StratRead(RP __far *_rp); … … 41 42 ULONG deviceOwner = DEV_NO_OWNER; 42 43 ULONG numOS2Opens = 0; 44 extern "C" BOOL fRewired; //pci.c 45 46 DBGINT DbgInt; 43 47 44 48 //****************************************************************************** … … 67 71 ULONG rc; 68 72 73 memset(&DbgInt, 0, sizeof(DbgInt)); 74 69 75 RPInit __far* rp = (RPInit __far*)_rp; 70 76 rc = DiscardableInit(rp); 71 77 //dprintf(("StratInit End rc=%d", rc)); 78 DbgInt.usState = 1; 72 79 return rc; 73 80 } … … 82 89 #pragma on (unreferenced) 83 90 { 91 DbgInt.usState = 2; 84 92 #ifdef ACPI 85 93 PciAdjustInterrupts(); 86 94 #endif 95 rprintf(("StratInitComplete: Init=%ld/%ld Between=%ld/%ld Complete=%ld/%ld", 96 DbgInt.ulIntServiced[0], DbgInt.ulIntUnserviced[0], 97 DbgInt.ulIntServiced[1], DbgInt.ulIntUnserviced[1], 98 DbgInt.ulIntServiced[2], DbgInt.ulIntUnserviced[2])); 87 99 //dprintf(("StratInitComplete")); 88 100 return(RPDONE); … … 160 172 ULONG Strategy(RP __far* rp) 161 173 { 162 if (rp->Command < sizeof(StratDispatch)/sizeof(StratDispatch[0])) 174 if (fRewired) { 175 fRewired = FALSE; 176 rprintf(("Strategy: Resuming")); 177 OSS32_APMResume(); 178 } 179 180 if (rp->Command < sizeof(StratDispatch)/sizeof(StratDispatch[0])) 163 181 return(StratDispatch[rp->Command](rp)); 164 elsereturn(RPERR_COMMAND | RPDONE);182 else return(RPERR_COMMAND | RPDONE); 165 183 } 166 184 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.