Ignore:
Timestamp:
May 31, 2013, 11:15:02 PM (12 years ago)
Author:
David Azarewicz
Message:

Suspend/resume changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/os2ahci/os2ahci.c

    r160 r161  
    135135int             init_complete;     /* if != 0, initialization has completed */
    136136int             suspended;
     137int             resume_sleep_flag;
    137138
    138139/* apapter/port-specific options saved when parsing the command line */
     
    222223  init_drv_called = 1;
    223224  suspended = 0;
     225  resume_sleep_flag = 0;
    224226
    225227  /* set device helper entry point */
     
    513515 * Device driver exit handler. This handler is called when OS/2 shuts down and
    514516 * flushes the write caches of all attached devices. Since this is effectively
    515  * the same we do when suspending, we'll call out to the corresponding APM
     517 * the same we do when suspending, we'll call out to the corresponding suspend
    516518 * function.
    517519 *
     
    619621 * all IORBs have been sent.
    620622 *
    621  * NOTE: While initialization has not completed (or during APM suspend/resume
     623 * NOTE: While initialization has not completed (or during suspend/resume
    622624 *       operations), this function will loop indefinitely because we can't
    623625 *       rely on interrupt handlers or context hooks and complex IORBs
     
    742744   * IORB.
    743745   */
    744   while (suspended) DevHelp_ProcBlock((ULONG)&send_iorb, 1, WAIT_IS_INTERRUPTABLE);
    745746  add_workspace(iorb)->processing = 1;
    746747  spin_unlock(drv_lock);
     
    817818      }
    818819
     820      #ifdef LEGACY_APM
    819821      /* register APM hook */
    820822      apm_init();
     823      #endif
    821824
    822825      if (!TRACE_ACTIVE) build_user_info();
Note: See TracChangeset for help on using the changeset viewer.