VirtualBox

Changeset 9572

Show
Ignore:
Timestamp:
06/10/08 15:47:22 (6 months ago)
Author:
vboxsync
Message:

IDE: Make SCO OpenServer? disk detection work

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/VBox/Devices/Storage/DevATA.cpp

    r9387 r9572  
    32113211            ataSetIRQ(s); /* Shortcut, do not use AIO thread. */ 
    32123212            break; 
     3213        case ATA_SEEK: /* Used by the SCO OpenServer. Command is marked as obsolete */ 
     3214            ataCmdOK(s, 0); 
     3215            ataSetIRQ(s); /* Shortcut, do not use AIO thread. */ 
     3216            break; 
    32133217        case ATA_READ_NATIVE_MAX_ADDRESS: 
    32143218            ataSetSector(s, RT_MIN(s->cTotalSectors, 1 << 28) - 1); 
     
    46994703        case VAL(2, 2): *pu32 = ataBMDMAStatusReadB(pCtl, Port); break; 
    47004704        case VAL(4, 4): *pu32 = ataBMDMAAddrReadL(pCtl, Port); break; 
     4705        case VAL(0, 4): 
     4706            /* The SCO OpenServer tries to read 4 bytes starting from offset 0. */ 
     4707            *pu32 = ataBMDMACmdReadB(pCtl, Port) | (ataBMDMAStatusReadB(pCtl, Port) << 16); 
     4708            break; 
    47014709        default: 
    47024710            AssertMsgFailed(("%s: Unsupported read from port %x size=%d\n", __FUNCTION__, Port, cb)); 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy