Ignore:
Timestamp:
Jun 2, 2013, 5:10:06 AM (12 years ago)
Author:
David Azarewicz
Message:

driver info updates, misc cleanup, add comments
This is version 1.28

File:
1 edited

Legend:

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

    r161 r162  
    133133    writel(ai->mmio + HOST_CTL, readl(ai->mmio + HOST_CTL) & ~HOST_IRQ_EN);
    134134    readl(ai->mmio + HOST_CTL); /* flush */
     135
     136    /* TODO: put the device into the D3 state */
    135137  }
    136138
     
    138140  init_complete = 0;
    139141
    140   /* TODO: put the device into the D3 state */
    141 
    142142  suspended = 1;
    143143  dprintf("suspend() finished\n");
     
    155155  dprintf("resume()\n");
    156156
    157   /* TODO: put the device into the D0 state */
    158 
    159   for (a = 0; a < ad_info_cnt; a++) {
    160     AD_INFO *ai = ad_infos + a;
     157  for (a = 0; a < ad_info_cnt; a++) {
     158    AD_INFO *ai = ad_infos + a;
     159
     160    /* TODO: put the device into the D0 state */
    161161
    162162    //ahci_reset_controller(ai);
     
    181181
    182182  /* restart engine to resume IORB processing */
     183  /* The resume_sleep_flag and probably rearming the ctx hook is a temporary hack
     184   * to make resume kind of work when I/O operations are outstanding or started
     185   * during the suspend operation. This behavior may change with future versions
     186   * of the ACPI software which will make this hack unnecessary.
     187   */
    183188  resume_sleep_flag = 5000;
    184189  DevHelp_ArmCtxHook(0, engine_ctxhook_h);
Note: See TracChangeset for help on using the changeset viewer.