Changeset 162 for trunk/src/os2ahci/apm.c
- Timestamp:
- Jun 2, 2013, 5:10:06 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/os2ahci/apm.c
r161 r162 133 133 writel(ai->mmio + HOST_CTL, readl(ai->mmio + HOST_CTL) & ~HOST_IRQ_EN); 134 134 readl(ai->mmio + HOST_CTL); /* flush */ 135 136 /* TODO: put the device into the D3 state */ 135 137 } 136 138 … … 138 140 init_complete = 0; 139 141 140 /* TODO: put the device into the D3 state */141 142 142 suspended = 1; 143 143 dprintf("suspend() finished\n"); … … 155 155 dprintf("resume()\n"); 156 156 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 */ 161 161 162 162 //ahci_reset_controller(ai); … … 181 181 182 182 /* 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 */ 183 188 resume_sleep_flag = 5000; 184 189 DevHelp_ArmCtxHook(0, engine_ctxhook_h);
Note:
See TracChangeset
for help on using the changeset viewer.