Changeset 160 for trunk/src/os2ahci/os2ahci.c
- Timestamp:
- May 31, 2013, 2:03:41 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/os2ahci/os2ahci.c
r157 r160 408 408 } 409 409 410 printf_nts("BldLevel: %s\n", BldLevel);411 printf_nts("CmdLine: %Fs\n", cmd_line);410 ntprintf("BldLevel: %s\n", BldLevel); 411 ntprintf("CmdLine: %Fs\n", cmd_line); 412 412 413 413 /* scan PCI bus for supported devices */ … … 489 489 break; 490 490 491 case OS2AHCI_IDC_CATEGORY:492 switch (ioctl->Function) {493 494 case OS2AHCI_IDC_BIOSMODE:495 /* reconfigure adapters in BIOS/int13 mode; needed for generating496 * trap dumps on some machines. This was intended to be called by ACPI.PSD,497 * but that is never done. This is obslete. The kernel exit accomplishes498 * this instead.499 *500 * To enter BIOS mode, we flush all write caches, turn off interrupts501 * and restore the BIOS configuration. This is exactly what502 * apm_suspend() does.503 */504 apm_suspend();505 return(STDON);506 507 case OS2AHCI_IDC_BEEP:508 /* IOCTL for IDC testing - just beep */509 DevHelp_Beep(2000, 100);510 return(STDON);511 }512 break;513 514 491 case DSKSP_CAT_GENERIC: 515 492 return(ioctl_gen_dsk(ioctl)); … … 552 529 } 553 530 554 apm_suspend();531 suspend(); 555 532 return(STDON); 556 533 } … … 564 541 dprintf("sr_drv(%d) called\n", func); 565 542 566 if (func) apm_resume();567 else apm_suspend();543 if (func) resume(); 544 else suspend(); 568 545 569 546 return(STDON); … … 765 742 * IORB. 766 743 */ 744 while (suspended) DevHelp_ProcBlock((ULONG)&send_iorb, 1, WAIT_IS_INTERRUPTABLE); 767 745 add_workspace(iorb)->processing = 1; 768 746 spin_unlock(drv_lock); … … 1263 1241 1264 1242 if (debug > min_debug) { 1265 printf("IORB %Fp queued (cmd = %d/%d, queue = %Fp [%s], timeout = %ld)\n",1243 aprintf("IORB %Fp queued (cmd = %d/%d, queue = %Fp [%s], timeout = %ld)\n", 1266 1244 iorb, iorb->CommandCode, iorb->CommandModifier, queue, queue_type, 1267 1245 iorb->Timeout);
Note:
See TracChangeset
for help on using the changeset viewer.