VirtualBox

Changeset 48947 in vbox for trunk/src/VBox/Devices/Storage


Ignore:
Timestamp:
Oct 7, 2013 9:41:00 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
89644
Message:

Devices: Whitespace and svn:keyword cleanups by scm.

Location:
trunk/src/VBox/Devices/Storage
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/DevBusLogic.cpp

    r48192 r48947  
    378378    bool                            fIRQEnabled;
    379379    /** Flag whether the ISA I/O port range is disabled
    380      * to prevent the BIOS to access the device. */ 
     380     * to prevent the BIOS to access the device. */
    381381    bool                            fISAEnabled;    /**< @todo unused, to be removed */
    382382    /** Flag whether 24-bit mailboxes are in use (default is 32-bit). */
     
    10211021static void buslogicClearInterrupt(PBUSLOGIC pBusLogic)
    10221022{
    1023     LogFlowFunc(("pBusLogic=%#p, clearing %#02x (pending %#02x)\n", 
     1023    LogFlowFunc(("pBusLogic=%#p, clearing %#02x (pending %#02x)\n",
    10241024                 pBusLogic, pBusLogic->regInterrupt, pBusLogic->uPendingIntr));
    10251025    pBusLogic->regInterrupt = 0;
     
    11931193    {
    11941194        RTGCPHYS GCPhysAddrCCB = pTaskState->MailboxGuest.u32PhysAddrCCB;
    1195         LogFlowFunc(("Completing CCB %RGp hstat=%u, dstat=%u, outgoing mailbox at %RGp\n", GCPhysAddrCCB, 
     1195        LogFlowFunc(("Completing CCB %RGp hstat=%u, dstat=%u, outgoing mailbox at %RGp\n", GCPhysAddrCCB,
    11961196                     uHostAdapterStatus, uDeviceStatus, GCPhysAddrMailboxIncoming));
    11971197
     
    13491349    PPDMDEVINS pDevIns = pTaskState->CTX_SUFF(pTargetDevice)->CTX_SUFF(pBusLogic)->CTX_SUFF(pDevIns);
    13501350    uint32_t   cbDataCCB;
    1351     uint32_t   u32PhysAddrCCB; 
    1352    
     1351    uint32_t   u32PhysAddrCCB;
     1352
    13531353    /* Extract the data length and physical address from the CCB. */
    13541354    if (pTaskState->fIs24Bit)
     
    15151515#endif
    15161516
    1517     LogFlowFunc(("pTaskState=%#p cbDataCCB=%u direction=%u cbSeg=%u\n", pTaskState, cbDataCCB, 
     1517    LogFlowFunc(("pTaskState=%#p cbDataCCB=%u direction=%u cbSeg=%u\n", pTaskState, cbDataCCB,
    15181518                 pTaskState->CommandControlBlockGuest.c.uDataDirection, pTaskState->DataSeg.cbSeg));
    15191519
     
    16331633
    16341634        /* With 32-bit CCBs, the (optional) sense buffer physical address is provided separately.
    1635          * On the other hand, with 24-bit CCBs, the sense buffer is simply located at the end of 
    1636          * the CCB, right after the variable-length CDB. 
     1635         * On the other hand, with 24-bit CCBs, the sense buffer is simply located at the end of
     1636         * the CCB, right after the variable-length CDB.
    16371637         */
    16381638        if (pTaskState->fIs24Bit)
    1639         {           
     1639        {
    16401640            GCPhysAddrSenseBuffer  = pTaskState->MailboxGuest.u32PhysAddrCCB;
    16411641            GCPhysAddrSenseBuffer += pTaskState->CommandControlBlockGuest.c.cbCDB + RT_OFFSETOF(CCB24, abCDB);
     
    18441844        {
    18451845            /* Some Adaptec AHA-154x drivers (e.g. OS/2) execute this command and expect
    1846              * it to fail. If it succeeds, the drivers refuse to load. However, some newer 
    1847              * Adaptec 154x models supposedly support it too?? 
     1846             * it to fail. If it succeeds, the drivers refuse to load. However, some newer
     1847             * Adaptec 154x models supposedly support it too??
    18481848             */
    18491849
     
    19051905            /* The area for incoming mailboxes is right after the last entry of outgoing mailboxes. */
    19061906            pBusLogic->GCPhysAddrMailboxIncomingBase = pBusLogic->GCPhysAddrMailboxOutgoingBase + (pBusLogic->cMailbox * sizeof(Mailbox24));
    1907    
     1907
    19081908            Log(("GCPhysAddrMailboxOutgoingBase=%RGp\n", pBusLogic->GCPhysAddrMailboxOutgoingBase));
    19091909            Log(("GCPhysAddrMailboxIncomingBase=%RGp\n", pBusLogic->GCPhysAddrMailboxIncomingBase));
    19101910            Log(("cMailboxes=%u (24-bit mode)\n", pBusLogic->cMailbox));
    19111911            LogRel(("Initialized 24-bit mailbox, %d entries at %08x\n", pRequest->cMailbox, ADDR_TO_U32(pRequest->aMailboxBaseAddr)));
    1912    
     1912
    19131913            pBusLogic->regStatus &= ~BUSLOGIC_REGISTER_STATUS_INITIALIZATION_REQUIRED;
    19141914            pBusLogic->cbReplyParametersLeft = 0;
     
    22972297                    case BUSLOGICCOMMAND_WRITE_BUSMASTER_CHIP_FIFO:
    22982298                        pBusLogic->cbCommandParametersLeft = 3;
    2299                         break; 
     2299                        break;
    23002300                    case BUSLOGICCOMMAND_INITIALIZE_MAILBOX:
    23012301                        pBusLogic->cbCommandParametersLeft = sizeof(RequestInitMbx);
     
    23262326#ifndef IN_RING3
    23272327                /* This command must be executed in R3 as it rehooks the ISA I/O port. */
    2328                 if (pBusLogic->uOperationCode == BUSLOGICCOMMAND_MODIFY_IO_ADDRESS) 
     2328                if (pBusLogic->uOperationCode == BUSLOGICCOMMAND_MODIFY_IO_ADDRESS)
    23292329                {
    23302330                    rc = VINF_IOM_R3_IOPORT_WRITE;
     
    26302630    {
    26312631        /* Unregister the old range, if any. */
    2632         if (pBusLogic->IOISABase) 
     2632        if (pBusLogic->IOISABase)
    26332633            rc = PDMDevHlpIOPortDeregister(pBusLogic->CTX_SUFF(pDevIns), pBusLogic->IOISABase, 4);
    26342634
    2635         if (RT_SUCCESS(rc)) 
     2635        if (RT_SUCCESS(rc))
    26362636        {
    26372637            pBusLogic->IOISABase = 0;   /* First mark as unregistered. */
     
    29932993/**
    29942994 * Read a mailbox from guest memory. Convert 24-bit mailboxes to
    2995  * 32-bit format. 
     2995 * 32-bit format.
    29962996 *
    29972997 * @returns Mailbox guest physical address.
     
    34853485    if (pszArgs)
    34863486        fVerbose = strstr(pszArgs, "verbose") != NULL;
    3487    
     3487
    34883488    /* Show basic information. */
    34893489    pHlp->pfnPrintf(pHlp,
     
    35113511        pHlp->pfnPrintf(pHlp, "Current command: %02X\n", pThis->uOperationCode);
    35123512
    3513     if (fVerbose && (pThis->regStatus & BUSLOGIC_REGISTER_STATUS_INITIALIZATION_REQUIRED) == 0) 
     3513    if (fVerbose && (pThis->regStatus & BUSLOGIC_REGISTER_STATUS_INITIALIZATION_REQUIRED) == 0)
    35143514    {
    35153515        RTGCPHYS    GCMailbox;
     
    35643564            {
    35653565                PDMDevHlpPhysRead(pThis->CTX_SUFF(pDevIns), GCMailbox, &Mbx32, sizeof(Mailbox32));
    3566                 pHlp->pfnPrintf(pHlp, "  slot %03d: CCB at %08X completion code %02X BTSTAT %02X SDSTAT %02X", i, 
     3566                pHlp->pfnPrintf(pHlp, "  slot %03d: CCB at %08X completion code %02X BTSTAT %02X SDSTAT %02X", i,
    35673567                                Mbx32.u32PhysAddrCCB, Mbx32.u.in.uCompletionCode, Mbx32.u.in.uHostAdapterStatus, Mbx32.u.in.uTargetDeviceStatus);
    35683568                pHlp->pfnPrintf(pHlp, "%s\n", pThis->uMailboxOutgoingPositionCurrent == i ? " *" : "");
  • trunk/src/VBox/Devices/Storage/DrvHostFloppy.cpp

    r45062 r48947  
    9292        dwLastError = GetLastError();
    9393        rc = RTErrConvertFromWin32(dwLastError);
    94         Log(("DrvHostFloppy: IOCTL_DISK_GET_DRIVE_GEOMETRY(%s) failed, LastError=%d rc=%Rrc\n", 
     94        Log(("DrvHostFloppy: IOCTL_DISK_GET_DRIVE_GEOMETRY(%s) failed, LastError=%d rc=%Rrc\n",
    9595             pThis->pszDevice, dwLastError, rc));
    9696        return rc;
  • trunk/src/VBox/Devices/Storage/DrvSCSI.cpp

    r47829 r48947  
    694694
    695695/**
    696  * Called when media is unmounted 
    697  * 
     696 * Called when media is unmounted
     697 *
    698698 * @param   pInterface      Pointer to the interface structure containing the called function pointer.
    699699 */
     
    961961    PDMBLOCKTYPE enmType = pThis->pDrvBlock->pfnGetType(pThis->pDrvBlock);
    962962    VSCSILUNTYPE enmLunType;
    963     switch (enmType) 
     963    switch (enmType)
    964964    {
    965965    case PDMBLOCKTYPE_HARD_DISK:
  • trunk/src/VBox/Devices/Storage/DrvVD.cpp

    r48872 r48947  
    623623
    624624/**
    625  * vvl: this structure duplicate meaning of sockaddr, 
     625 * vvl: this structure duplicate meaning of sockaddr,
    626626 * perhaps it'd be better to get rid of it.
    627627 */
     
    681681    int iInetFamily = PF_INET;
    682682    struct in_addr ip;
    683 #ifdef VBOX_WITH_NEW_LWIP 
     683#ifdef VBOX_WITH_NEW_LWIP
    684684    ip6_addr_t ip6;
    685685#endif
    686    
     686
    687687    /* Check whether lwIP is set up in this VM instance. */
    688688    if (!DevINIPConfigured())
     
    696696    if (inet6_aton(pszAddress, &ip6))
    697697        iInetFamily = PF_INET6;
    698     else /* concatination with if */ 
    699 #endif   
     698    else /* concatination with if */
     699#endif
    700700      if (!lwip_inet_aton(pszAddress, &ip))
    701701    {
  • trunk/src/VBox/Devices/Storage/UsbMsd.cpp

    r44528 r48947  
    5555
    5656/**
    57  * USB MSD Command Block Wrapper or CBW. The command block 
     57 * USB MSD Command Block Wrapper or CBW. The command block
    5858 * itself (CBWCB) contains protocol-specific data (here SCSI).
    5959 */
  • trunk/src/VBox/Devices/Storage/VSCSI/VSCSILun.cpp

    r44528 r48947  
    120120 *
    121121 * @returns VBox status code.
    122  * @param   hVScsiLun               The virtual SCSI LUN 
     122 * @param   hVScsiLun               The virtual SCSI LUN
    123123 *                                  mounting the medium.
    124124 */
     
    142142 *
    143143 * @returns VBox status code.
    144  * @param   hVScsiLun               The virtual SCSI LUN 
     144 * @param   hVScsiLun               The virtual SCSI LUN
    145145 *                                  mounting the medium.
    146146 */
  • trunk/src/VBox/Devices/Storage/VSCSI/VSCSILunMmc.cpp

    r46597 r48947  
    186186    unsigned        uCmd = pVScsiReq->pbCDB[0];
    187187
    188     /* 
     188    /*
    189189     * GET CONFIGURATION, GET EVENT/STATUS NOTIFICATION, INQUIRY, and REQUEST SENSE commands
    190190     * operate even when a unit attention condition exists for initiator; every other command
     
    194194    {
    195195        /*
    196          * A note on media changes: As long as a medium is not present, the unit remains in 
    197          * the 'not ready' state. Technically the unit becomes 'ready' soon after a medium 
    198          * is inserted; however, we internally keep the 'not ready' state until we've had 
     196         * A note on media changes: As long as a medium is not present, the unit remains in
     197         * the 'not ready' state. Technically the unit becomes 'ready' soon after a medium
     198         * is inserted; however, we internally keep the 'not ready' state until we've had
    199199         * a chance to report the UNIT ATTENTION status indicating a media change.
    200200         */
     
    205205            pVScsiLunMmc->Core.fReady = true;
    206206        }
    207         else 
     207        else
    208208            rcReq = vscsiLunReqSenseErrorSet(pVScsiLun, pVScsiReq, SCSI_SENSE_NOT_READY,
    209209                                             SCSI_ASC_MEDIUM_NOT_PRESENT, 0x00);
     
    431431            cbMax  = vscsiBE2HU16(&pVScsiReq->pbCDB[7]);
    432432            fMSF   = (pVScsiReq->pbCDB[1] >> 1) & 1;
    433             switch (format) 
     433            switch (format)
    434434            {
    435435                case 0x00:
     
    461461            vscsiDeviceReqComplete(pVScsiLun->pVScsiDevice, pVScsiReq, rcReq, false, VINF_SUCCESS);
    462462        }
    463         else if (!cSectorTransfer) 
     463        else if (!cSectorTransfer)
    464464        {
    465465            /* A 0 transfer length is not an error. */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette