VirtualBox

Changeset 25893 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Jan 18, 2010 2:08:39 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
56705
Message:

PDMDrv,*: multi context drivers, part 2.

Location:
trunk/src/VBox/Devices
Files:
22 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/audio.c

    r25891 r25893  
    20562056    /* szDriverName */
    20572057    "AUDIO",
     2058    /* szRCMod */
     2059    "",
     2060    /* szR0Mod */
     2061    "",
    20582062    /* pszDescription */
    20592063    "AUDIO Driver",
     
    20702074    /* pfnDestruct */
    20712075    drvAudioDestruct,
     2076    /* pfnRelocate */
     2077    NULL,
    20722078    /* pfnIOCtl */
    20732079    NULL,
  • trunk/src/VBox/Devices/Input/DrvKeyboardQueue.cpp

    r22277 r25893  
    334334    /* szDriverName */
    335335    "KeyboardQueue",
     336    /* szRCMod */
     337    "",
     338    /* szR0Mod */
     339    "",
    336340    /* pszDescription */
    337341    "Keyboard queue driver to plug in between the key source and the device to do queueing and inter-thread transport.",
     
    346350    /* pfnConstruct */
    347351    drvKbdQueueConstruct,
     352    /* pfnRelocate */
     353    NULL,
    348354    /* pfnDestruct */
    349355    NULL,
  • trunk/src/VBox/Devices/Input/DrvMouseQueue.cpp

    r22810 r25893  
    228228
    229229/**
    230  * Construct a mouse driver instance. 
    231  * 
     230 * Construct a mouse driver instance.
     231 *
    232232 * @copydoc FNPDMDRVCONSTRUCT
    233233 */
     
    322322    /* szDriverName */
    323323    "MouseQueue",
     324    /* szRCMod */
     325    "",
     326    /* szR0Mod */
     327    "",
    324328    /* pszDescription */
    325329    "Mouse queue driver to plug in between the key source and the device to do queueing and inter-thread transport.",
     
    334338    /* pfnConstruct */
    335339    drvMouseQueueConstruct,
     340    /* pfnRelocate */
     341    NULL,
    336342    /* pfnDestruct */
    337343    NULL,
  • trunk/src/VBox/Devices/Network/DrvIntNet.cpp

    r25891 r25893  
    11371137    /* szDriverName */
    11381138    "IntNet",
     1139    /* szRCMod */
     1140    "",
     1141    /* szR0Mod */
     1142    "",
    11391143    /* pszDescription */
    11401144    "Internal Networking Transport Driver",
     
    11511155    /* pfnDestruct */
    11521156    drvIntNetDestruct,
     1157    /* pfnRelocate */
     1158    NULL,
    11531159    /* pfnIOCtl */
    11541160    NULL,
  • trunk/src/VBox/Devices/Network/DrvNAT.cpp

    r25799 r25893  
    241241    {
    242242        RTReqProcess(pThis->pRecvReqQueue, 0);
    243         if (ASMAtomicReadU32(&pThis->cPkt) == 0) 
     243        if (ASMAtomicReadU32(&pThis->cPkt) == 0)
    244244            RTSemEventWait(pThis->EventRecv, RT_INDEFINITE_WAIT);
    245245    }
     
    268268    {
    269269        RTReqProcess(pThis->pUrgRecvReqQueue, 0);
    270         if (ASMAtomicReadU32(&pThis->cUrgPkt) == 0) 
     270        if (ASMAtomicReadU32(&pThis->cUrgPkt) == 0)
    271271        {
    272272            int rc = RTSemEventWait(pThis->EventUrgRecv, RT_INDEFINITE_WAIT);
     
    295295        AssertRC(rc);
    296296    }
    297     else if (   RT_FAILURE(rc) 
     297    else if (   RT_FAILURE(rc)
    298298             && (  rc == VERR_TIMEOUT
    299299                && rc == VERR_INTERRUPTED))
    300300    {
    301301        AssertRC(rc);
    302     } 
     302    }
    303303
    304304    rc = RTCritSectLeave(&pThis->csDevAccess);
     
    306306
    307307    slirp_ext_m_free(pThis->pNATState, pvArg);
    308     if (ASMAtomicDecU32(&pThis->cUrgPkt) == 0) 
     308    if (ASMAtomicDecU32(&pThis->cUrgPkt) == 0)
    309309    {
    310310        drvNATRecvWakeup(pThis->pDrvIns, pThis->pRecvThread);
     
    324324    {
    325325        rc = RTSemEventWait(pThis->EventRecv, RT_INDEFINITE_WAIT);
    326         if (   RT_FAILURE(rc) 
     326        if (   RT_FAILURE(rc)
    327327            && ( rc == VERR_TIMEOUT
    328328                 || rc == VERR_INTERRUPTED))
    329             goto done_unlocked; 
     329            goto done_unlocked;
    330330    }
    331331
     
    337337        rc = pThis->pPort->pfnReceive(pThis->pPort, pu8Buf, cb);
    338338        AssertRC(rc);
    339     } 
    340     else if (   RT_FAILURE(rc) 
     339    }
     340    else if (   RT_FAILURE(rc)
    341341             && (  rc != VERR_TIMEOUT
    342342                && rc != VERR_INTERRUPTED))
     
    11481148            rc = RTSemEventCreate(&pThis->EventUrgRecv);
    11491149            rc = RTCritSectInit(&pThis->csDevAccess);
    1150             rc = PDMDrvHlpTMTimerCreate(pThis->pDrvIns, TMCLOCK_REAL/*enmClock*/, drvNATSlowTimer, 
     1150            rc = PDMDrvHlpTMTimerCreate(pThis->pDrvIns, TMCLOCK_REAL/*enmClock*/, drvNATSlowTimer,
    11511151                    pThis, TMTIMER_FLAGS_NO_CRIT_SECT/*flags*/, "NATSlowTmr", &pThis->pTmrSlow);
    1152             rc = PDMDrvHlpTMTimerCreate(pThis->pDrvIns, TMCLOCK_REAL/*enmClock*/, drvNATFastTimer, 
     1152            rc = PDMDrvHlpTMTimerCreate(pThis->pDrvIns, TMCLOCK_REAL/*enmClock*/, drvNATFastTimer,
    11531153                    pThis, TMTIMER_FLAGS_NO_CRIT_SECT/*flags*/, "NATFastTmr", &pThis->pTmrFast);
    11541154
     
    12111211    /* szDriverName */
    12121212    "NAT",
     1213    /* szRCMod */
     1214    "",
     1215    /* szR0Mod */
     1216    "",
    12131217    /* pszDescription */
    12141218    "NAT Network Transport Driver",
     
    12251229    /* pfnDestruct */
    12261230    drvNATDestruct,
     1231    /* pfnRelocate */
     1232    NULL,
    12271233    /* pfnIOCtl */
    12281234    NULL,
  • trunk/src/VBox/Devices/Network/DrvNetSniffer.cpp

    r25728 r25893  
    490490    /* szDriverName */
    491491    "NetSniffer",
     492    /* szRCMod */
     493    "",
     494    /* szR0Mod */
     495    "",
    492496    /* pszDescription */
    493497    "Network Sniffer Filter Driver",
     
    504508    /* pfnDestruct */
    505509    drvNetSnifferDestruct,
     510    /* pfnRelocate */
     511    NULL,
    506512    /* pfnIOCtl */
    507513    NULL,
  • trunk/src/VBox/Devices/Network/DrvTAP.cpp

    r25823 r25893  
    10671067    /* szDriverName */
    10681068    "HostInterface",
     1069    /* szRCMod */
     1070    "",
     1071    /* szR0Mod */
     1072    "",
    10691073    /* pszDescription */
    10701074    "TAP Network Transport Driver",
     
    10811085    /* pfnDestruct */
    10821086    drvTAPDestruct,
     1087    /* pfnRelocate */
     1088    NULL,
    10831089    /* pfnIOCtl */
    10841090    NULL,
  • trunk/src/VBox/Devices/PC/DrvACPI.cpp

    r22277 r25893  
    749749     * Check that no-one is attached to us.
    750750     */
    751     AssertMsgReturn(PDMDrvHlpNoAttach(pDrvIns) == VERR_PDM_NO_ATTACHED_DRIVER, 
     751    AssertMsgReturn(PDMDrvHlpNoAttach(pDrvIns) == VERR_PDM_NO_ATTACHED_DRIVER,
    752752                    ("Configuration error: Not possible to attach anything to this driver!\n"),
    753753                    VERR_PDM_DRVINS_NO_ATTACH);
     
    777777    /* szDriverName */
    778778    "ACPIHost",
     779    /* szRCMod */
     780    "",
     781    /* szR0Mod */
     782    "",
    779783    /* pszDescription */
    780784    "ACPI Host Driver",
     
    791795    /* pfnDestruct */
    792796    drvACPIDestruct,
     797    /* pfnRelocate */
     798    NULL,
    793799    /* pfnIOCtl */
    794800    NULL,
     
    804810    NULL,
    805811    /* pfnDetach */
    806     NULL, 
     812    NULL,
    807813    /* pfnPowerOff */
    808     NULL, 
     814    NULL,
    809815    /* pfnSoftReset */
    810816    NULL,
  • trunk/src/VBox/Devices/PC/DrvAcpiCpu.cpp

    r25817 r25893  
    8989     * Check that no-one is attached to us.
    9090     */
    91     AssertMsgReturn(PDMDrvHlpNoAttach(pDrvIns) == VERR_PDM_NO_ATTACHED_DRIVER, 
     91    AssertMsgReturn(PDMDrvHlpNoAttach(pDrvIns) == VERR_PDM_NO_ATTACHED_DRIVER,
    9292                    ("Configuration error: Not possible to attach anything to this driver!\n"),
    9393                    VERR_PDM_DRVINS_NO_ATTACH);
     
    105105    /* szDriverName */
    106106    "ACPICpu",
     107    /* szRCMod */
     108    "",
     109    /* szR0Mod */
     110    "",
    107111    /* pszDescription */
    108112    "ACPI CPU Driver",
     
    119123    /* pfnDestruct */
    120124    drvACPICpuDestruct,
     125    /* pfnRelocate */
     126    NULL,
    121127    /* pfnIOCtl */
    122128    NULL,
     
    132138    NULL,
    133139    /* pfnDetach */
    134     NULL, 
     140    NULL,
    135141    /* pfnPowerOff */
    136     NULL, 
     142    NULL,
    137143    /* pfnSoftReset */
    138144    NULL,
  • trunk/src/VBox/Devices/Parallel/DrvHostParallel.cpp

    r25823 r25893  
    406406    /* szDriverName */
    407407    "HostParallel",
     408    /* szRCMod */
     409    "",
     410    /* szR0Mod */
     411    "",
    408412    /* pszDescription */
    409413    "Parallel host driver.",
     
    420424    /* pfnDestruct */
    421425    drvHostParallelDestruct,
     426    /* pfnRelocate */
     427    NULL,
    422428    /* pfnIOCtl */
    423429    NULL,
  • trunk/src/VBox/Devices/Serial/DrvChar.cpp

    r23745 r25893  
    304304/**
    305305 * Construct a char driver instance.
    306  * 
     306 *
    307307 * @copydoc FNPDMDRVCONSTRUCT
    308308 */
     
    343343        return PDMDrvHlpVMSetError(pDrvIns, VERR_PDM_MISSING_INTERFACE_BELOW, RT_SRC_POS, N_("Char#%d has no stream interface below"), pDrvIns->iInstance);
    344344
    345     /* 
     345    /*
    346346     * Don't start the receive thread if the driver doesn't support reading
    347347     */
     
    414414    /* szDriverName */
    415415    "Char",
     416    /* szRCMod */
     417    "",
     418    /* szR0Mod */
     419    "",
    416420    /* pszDescription */
    417421    "Generic char driver.",
     
    428432    /* pfnDestruct */
    429433    drvCharDestruct,
     434    /* pfnRelocate */
     435    NULL,
    430436    /* pfnIOCtl */
    431437    NULL,
     
    441447    NULL,
    442448    /* pfnDetach */
    443     NULL, 
     449    NULL,
    444450    /* pfnPowerOff */
    445     NULL, 
     451    NULL,
    446452    /* pfnSoftReset */
    447453    NULL,
  • trunk/src/VBox/Devices/Serial/DrvHostSerial.cpp

    r25823 r25893  
    14681468    /* szDriverName */
    14691469    "Host Serial",
    1470     /* pszDescription */
     1470        /* szRCMod */
     1471    "",
     1472    /* szR0Mod */
     1473    "",
     1474/* pszDescription */
    14711475    "Host serial driver.",
    14721476    /* fFlags */
     
    14821486    /* pfnDestruct */
    14831487    drvHostSerialDestruct,
     1488    /* pfnRelocate */
     1489    NULL,
    14841490    /* pfnIOCtl */
    14851491    NULL,
  • trunk/src/VBox/Devices/Serial/DrvNamedPipe.cpp

    r22277 r25893  
    617617    /* szDriverName */
    618618    "NamedPipe",
     619    /* szRCMod */
     620    "",
     621    /* szR0Mod */
     622    "",
    619623    /* pszDescription */
    620624    "Named Pipe stream driver.",
     
    631635    /* pfnDestruct */
    632636    drvNamedPipeDestruct,
     637    /* pfnRelocate */
     638    NULL,
    633639    /* pfnIOCtl */
    634640    NULL,
  • trunk/src/VBox/Devices/Serial/DrvRawFile.cpp

    r24382 r25893  
    219219    /* szDriverName */
    220220    "RawFile",
     221    /* szRCMod */
     222    "",
     223    /* szR0Mod */
     224    "",
    221225    /* pszDescription */
    222226    "RawFile stream driver.",
     
    233237    /* pfnDestruct */
    234238    drvRawFileDestruct,
     239    /* pfnRelocate */
     240    NULL,
    235241    /* pfnIOCtl */
    236242    NULL,
  • trunk/src/VBox/Devices/Storage/DrvBlock.cpp

    r25891 r25893  
    903903    /* szDriverName */
    904904    "Block",
     905    /* szRCMod */
     906    "",
     907    /* szR0Mod */
     908    "",
    905909    /* pszDescription */
    906910    "Generic block driver.",
     
    916920    drvblockConstruct,
    917921    /* pfnDestruct */
     922    NULL,
     923    /* pfnRelocate */
    918924    NULL,
    919925    /* pfnIOCtl */
  • trunk/src/VBox/Devices/Storage/DrvHostDVD.cpp

    r24015 r25893  
    830830    /* szDriverName */
    831831    "HostDVD",
     832    /* szRCMod */
     833    "",
     834    /* szR0Mod */
     835    "",
    832836    /* pszDescription */
    833837    "Host DVD Block Driver.",
     
    844848    /* pfnDestruct */
    845849    drvHostDvdDestruct,
     850    /* pfnRelocate */
     851    NULL,
    846852    /* pfnIOCtl */
    847853    NULL,
  • trunk/src/VBox/Devices/Storage/DrvHostFloppy.cpp

    r22277 r25893  
    204204    /* szDriverName */
    205205    "HostFloppy",
     206    /* szRCMod */
     207    "",
     208    /* szR0Mod */
     209    "",
    206210    /* pszDescription */
    207211    "Host Floppy Block Driver.",
     
    218222    /* pfnDestruct */
    219223    DRVHostBaseDestruct,
     224    /* pfnRelocate */
     225    NULL,
    220226    /* pfnIOCtl */
    221227    NULL,
     
    231237    NULL,
    232238    /* pfnDetach */
    233     NULL, 
     239    NULL,
    234240    /* pfnPowerOff */
    235     NULL, 
     241    NULL,
    236242    /* pfnSoftReset */
    237243    NULL,
  • trunk/src/VBox/Devices/Storage/DrvMediaISO.cpp

    r22277 r25893  
    319319    /* szDriverName */
    320320    "MediaISO",
     321    /* szRCMod */
     322    "",
     323    /* szR0Mod */
     324    "",
    321325    /* pszDescription */
    322326    "ISO media access driver.",
     
    333337    /* pfnDestruct */
    334338    drvMediaISODestruct,
     339    /* pfnRelocate */
     340    NULL,
    335341    /* pfnIOCtl */
    336342    NULL,
     
    346352    NULL,
    347353    /* pfnDetach */
    348     NULL, 
     354    NULL,
    349355    /* pfnPowerOff */
    350     NULL, 
     356    NULL,
    351357    /* pfnSoftReset */
    352358    NULL,
  • trunk/src/VBox/Devices/Storage/DrvRawImage.cpp

    r22277 r25893  
    9292/**
    9393 * Construct a raw image driver instance.
    94  * 
     94 *
    9595 * @copydoc FNPDMDRVCONSTRUCT
    96  */ 
     96 */
    9797static DECLCALLBACK(int) drvRawImageConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfgHandle, uint32_t fFlags)
    9898{
     
    369369    /* szDriverName */
    370370    "RawImage",
     371    /* szRCMod */
     372    "",
     373    /* szR0Mod */
     374    "",
    371375    /* pszDescription */
    372376    "Raw image access driver.",
     
    383387    /* pfnDestruct */
    384388    drvRawImageDestruct,
     389    /* pfnRelocate */
     390    NULL,
    385391    /* pfnIOCtl */
    386392    NULL,
     
    396402    NULL,
    397403    /* pfnDetach */
    398     NULL, 
     404    NULL,
    399405    /* pfnPowerOff */
    400     NULL, 
     406    NULL,
    401407    /* pfnSoftReset */
    402408    NULL,
  • trunk/src/VBox/Devices/Storage/DrvSCSI.cpp

    r24751 r25893  
    10281028    /* szDriverName */
    10291029    "SCSI",
     1030    /* szRCMod */
     1031    "",
     1032    /* szR0Mod */
     1033    "",
    10301034    /* pszDescription */
    10311035    "Generic SCSI driver.",
     
    10421046    /* pfnDestruct */
    10431047    drvscsiDestruct,
     1048    /* pfnRelocate */
     1049    NULL,
    10441050    /* pfnIOCtl */
    10451051    NULL,
  • trunk/src/VBox/Devices/Storage/DrvSCSIHost.cpp

    r23973 r25893  
    500500    /* szDriverName */
    501501    "SCSIHost",
     502    /* szRCMod */
     503    "",
     504    /* szR0Mod */
     505    "",
    502506    /* pszDescription */
    503507    "Host SCSI driver.",
     
    514518    /* pfnDestruct */
    515519    drvscsihostDestruct,
     520    /* pfnRelocate */
     521    NULL,
    516522    /* pfnIOCtl */
    517523    NULL,
  • trunk/src/VBox/Devices/Storage/DrvVD.cpp

    r25891 r25893  
    13181318    /* szDriverName */
    13191319    "VD",
     1320    /* szRCMod */
     1321    "",
     1322    /* szR0Mod */
     1323    "",
    13201324    /* pszDescription */
    13211325    "Generic VBox disk media driver.",
     
    13321336    /* pfnDestruct */
    13331337    drvvdDestruct,
     1338    /* pfnRelocate */
     1339    NULL,
    13341340    /* pfnIOCtl */
    13351341    NULL,
Note: See TracChangeset for help on using the changeset viewer.

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