VirtualBox

Ignore:
Timestamp:
Feb 2, 2010 6:02:15 PM (15 years ago)
Author:
vboxsync
Message:

PDMDEVHLPR3 cleanup; reduced the number of strict functions.

File:
1 edited

Legend:

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

    r26001 r26157  
    23152315    if (pThis->fGCEnabled)
    23162316    {
    2317         rc = PDMDevHlpMMIORegisterGC(pDevIns, GCPhysAddress, cb, 0,
     2317        rc = PDMDevHlpMMIORegisterRC(pDevIns, GCPhysAddress, cb, 0,
    23182318                                     "ahciMMIOWrite", "ahciMMIORead", NULL);
    23192319        if (RT_FAILURE(rc))
     
    23542354    if (pThis->fGCEnabled)
    23552355    {
    2356         rc = PDMDevHlpIOPortRegisterGC(pDevIns, (RTIOPORT)GCPhysAddress, cb, 0,
     2356        rc = PDMDevHlpIOPortRegisterRC(pDevIns, (RTIOPORT)GCPhysAddress, cb, 0,
    23572357                                       "ahciLegacyFakeWrite", "ahciLegacyFakeRead", NULL, NULL, "AHCI Fake");
    23582358        if (RT_FAILURE(rc))
     
    63776377
    63786378            /* Create the async IO thread. */
    6379             rc = PDMDevHlpPDMThreadCreate(pDevIns, &pAhciPort->pAsyncIOThread, pAhciPort, ahciAsyncIOLoop, ahciAsyncIOLoopWakeUp, 0,
    6380                                           RTTHREADTYPE_IO, szName);
     6379            rc = PDMDevHlpThreadCreate(pDevIns, &pAhciPort->pAsyncIOThread, pAhciPort, ahciAsyncIOLoop, ahciAsyncIOLoopWakeUp, 0,
     6380                                       RTTHREADTYPE_IO, szName);
    63816381            if (RT_FAILURE(rc))
    63826382            {
     
    66416641     * Create the transmit queue.
    66426642     */
    6643     rc = PDMDevHlpPDMQueueCreate(pDevIns, sizeof(DEVPORTNOTIFIERQUEUEITEM), 30*32 /*Maximum of 30 ports multiplied with 32 tasks each port*/, 0,
    6644                                  ahciNotifyQueueConsumer, true, "AHCI-Xmit", &pThis->pNotifierQueueR3);
     6643    rc = PDMDevHlpQueueCreate(pDevIns, sizeof(DEVPORTNOTIFIERQUEUEITEM), 30*32 /*Maximum of 30 ports multiplied with 32 tasks each port*/, 0,
     6644                              ahciNotifyQueueConsumer, true, "AHCI-Xmit", &pThis->pNotifierQueueR3);
    66456645    if (RT_FAILURE(rc))
    66466646        return rc;
     
    68326832
    68336833
    6834                 rc = PDMDevHlpPDMThreadCreate(pDevIns, &pAhciPort->pAsyncIOThread, pAhciPort, ahciAsyncIOLoop, ahciAsyncIOLoopWakeUp, 0,
    6835                                               RTTHREADTYPE_IO, szName);
     6834                rc = PDMDevHlpThreadCreate(pDevIns, &pAhciPort->pAsyncIOThread, pAhciPort, ahciAsyncIOLoop, ahciAsyncIOLoopWakeUp, 0,
     6835                                           RTTHREADTYPE_IO, szName);
    68366836                AssertMsgRC(rc, ("%s: Async IO Thread creation for %s failed rc=%Rrc\n", szName, rc));
    68376837            }
     
    69316931        if (pThis->fGCEnabled)
    69326932        {
    6933             rc = PDMDevHlpIOPortRegisterGC(pDevIns, pCtl->IOPortBase1, 8, (RTGCPTR)i,
     6933            rc = PDMDevHlpIOPortRegisterRC(pDevIns, pCtl->IOPortBase1, 8, (RTGCPTR)i,
    69346934                                            "ahciIOPortWrite1", "ahciIOPortRead1", NULL, NULL, "AHCI GC");
    69356935            if (RT_FAILURE(rc))
     
    69526952        if (pThis->fGCEnabled)
    69536953        {
    6954             rc = PDMDevHlpIOPortRegisterGC(pDevIns, pCtl->IOPortBase2, 1, (RTGCPTR)i,
     6954            rc = PDMDevHlpIOPortRegisterRC(pDevIns, pCtl->IOPortBase2, 1, (RTGCPTR)i,
    69556955                                            "ahciIOPortWrite2", "ahciIOPortRead2", NULL, NULL, "AHCI GC");
    69566956            if (RT_FAILURE(rc))
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