VirtualBox

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


Ignore:
Timestamp:
Jun 18, 2012 1:29:27 PM (12 years ago)
Author:
vboxsync
Message:

DevATA: No need to check for bus mastering in ataBMDMAIOPortRead/Write.

File:
1 edited

Legend:

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

    r41811 r41815  
    57445744    PATACONTROLLER pCtl = &pThis->aCts[i];
    57455745
    5746     bool fBm = PCIDevIsBusmaster(&pThis->dev);
    5747 #ifdef DEBUG_andy
    5748     Log2(("%s: Ctl#%d: Bus master = %RTbool\n",
    5749           __FUNCTION__, ATACONTROLLER_IDX(pCtl), fBm));
    5750 #endif
    5751     if (!fBm)
    5752         return VINF_SUCCESS; /** @todo Correct? */
    5753 
    57545746    int rc = PDMCritSectEnter(&pCtl->lock, VINF_IOM_R3_IOPORT_READ);
    57555747    if (rc != VINF_SUCCESS)
     
    57845776    PCIATAState   *pThis = PDMINS_2_DATA(pDevIns, PCIATAState *);
    57855777    PATACONTROLLER pCtl = &pThis->aCts[i];
    5786 
    5787     bool fBm = PCIDevIsBusmaster(&pThis->dev);
    5788 #ifdef DEBUG_andy
    5789     Log2(("%s: Ctl#%d: Bus master = %RTbool\n",
    5790           __FUNCTION__, ATACONTROLLER_IDX(pCtl), fBm));
    5791 #endif
    5792     if (!fBm)
    5793         return VINF_SUCCESS; /** @todo Correct? */
    57945778
    57955779    int rc = PDMCritSectEnter(&pCtl->lock, VINF_IOM_R3_IOPORT_WRITE);
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