Ignore:
Timestamp:
Nov 10, 2013, 4:56:20 PM (12 years ago)
Author:
David Azarewicz
Message:

Fix for hardware that reports incorrect status.
Now report both real and fake devices when SCSI emulation is enabled.

File:
1 edited

Legend:

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

    r171 r174  
    10721072          if (ad_info->ports[p].devs[d].present) {
    10731073            if (ad_info->ports[p].devs[d].atapi && emulate_scsi[dta][p]) {
    1074               /* only report this unit as SCSI unit */
     1074              /* report this unit as SCSI unit */
    10751075              scsi_units++;
    1076               continue;
     1076              //continue;
    10771077            }
    10781078            if (add_unit_info(iorb_conf, dta, dta, p, d, 0)) {
     
    11011101        for (p = 0; p <= ad_info->port_max; p++) {
    11021102          for (d = 0; d <= ad_info->ports[p].dev_max; d++) {
    1103             if (ad_info->ports[p].devs[d].present &&
    1104                 ad_info->ports[p].devs[d].atapi &&
    1105                 emulate_scsi[a][p]) {
     1103            if (ad_info->ports[p].devs[d].present && ad_info->ports[p].devs[d].atapi && emulate_scsi[a][p]) {
    11061104              if (add_unit_info(iorb_conf, dta, a, p, d, scsi_id++)) {
    11071105                goto iocm_device_table_done;
     
    14461444 * separate function which is invoked via a context hook.
    14471445 */
    1448 void _cdecl _far timeout_callback(ULONG timer_handle, ULONG p1,
    1449                                   ULONG p2)
     1446void _cdecl _far timeout_callback(ULONG timer_handle, ULONG p1, ULONG p2)
    14501447{
    14511448  IORBH _far *iorb = (IORBH _far *) p1;
     
    15021499 * problems during the early boot phase.
    15031500 */
    1504 void _cdecl _far reset_watchdog(ULONG timer_handle, ULONG p1,
    1505                                 ULONG p2)
     1501void _cdecl _far reset_watchdog(ULONG timer_handle, ULONG p1, ULONG p2)
    15061502{
    15071503  /* reset watchdog timer */
Note: See TracChangeset for help on using the changeset viewer.