Changeset 25893 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Jan 18, 2010 2:08:39 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 56705
- Location:
- trunk/src/VBox/Devices
- Files:
-
- 22 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/audio.c
r25891 r25893 2056 2056 /* szDriverName */ 2057 2057 "AUDIO", 2058 /* szRCMod */ 2059 "", 2060 /* szR0Mod */ 2061 "", 2058 2062 /* pszDescription */ 2059 2063 "AUDIO Driver", … … 2070 2074 /* pfnDestruct */ 2071 2075 drvAudioDestruct, 2076 /* pfnRelocate */ 2077 NULL, 2072 2078 /* pfnIOCtl */ 2073 2079 NULL, -
trunk/src/VBox/Devices/Input/DrvKeyboardQueue.cpp
r22277 r25893 334 334 /* szDriverName */ 335 335 "KeyboardQueue", 336 /* szRCMod */ 337 "", 338 /* szR0Mod */ 339 "", 336 340 /* pszDescription */ 337 341 "Keyboard queue driver to plug in between the key source and the device to do queueing and inter-thread transport.", … … 346 350 /* pfnConstruct */ 347 351 drvKbdQueueConstruct, 352 /* pfnRelocate */ 353 NULL, 348 354 /* pfnDestruct */ 349 355 NULL, -
trunk/src/VBox/Devices/Input/DrvMouseQueue.cpp
r22810 r25893 228 228 229 229 /** 230 * Construct a mouse driver instance. 231 * 230 * Construct a mouse driver instance. 231 * 232 232 * @copydoc FNPDMDRVCONSTRUCT 233 233 */ … … 322 322 /* szDriverName */ 323 323 "MouseQueue", 324 /* szRCMod */ 325 "", 326 /* szR0Mod */ 327 "", 324 328 /* pszDescription */ 325 329 "Mouse queue driver to plug in between the key source and the device to do queueing and inter-thread transport.", … … 334 338 /* pfnConstruct */ 335 339 drvMouseQueueConstruct, 340 /* pfnRelocate */ 341 NULL, 336 342 /* pfnDestruct */ 337 343 NULL, -
trunk/src/VBox/Devices/Network/DrvIntNet.cpp
r25891 r25893 1137 1137 /* szDriverName */ 1138 1138 "IntNet", 1139 /* szRCMod */ 1140 "", 1141 /* szR0Mod */ 1142 "", 1139 1143 /* pszDescription */ 1140 1144 "Internal Networking Transport Driver", … … 1151 1155 /* pfnDestruct */ 1152 1156 drvIntNetDestruct, 1157 /* pfnRelocate */ 1158 NULL, 1153 1159 /* pfnIOCtl */ 1154 1160 NULL, -
trunk/src/VBox/Devices/Network/DrvNAT.cpp
r25799 r25893 241 241 { 242 242 RTReqProcess(pThis->pRecvReqQueue, 0); 243 if (ASMAtomicReadU32(&pThis->cPkt) == 0) 243 if (ASMAtomicReadU32(&pThis->cPkt) == 0) 244 244 RTSemEventWait(pThis->EventRecv, RT_INDEFINITE_WAIT); 245 245 } … … 268 268 { 269 269 RTReqProcess(pThis->pUrgRecvReqQueue, 0); 270 if (ASMAtomicReadU32(&pThis->cUrgPkt) == 0) 270 if (ASMAtomicReadU32(&pThis->cUrgPkt) == 0) 271 271 { 272 272 int rc = RTSemEventWait(pThis->EventUrgRecv, RT_INDEFINITE_WAIT); … … 295 295 AssertRC(rc); 296 296 } 297 else if ( RT_FAILURE(rc) 297 else if ( RT_FAILURE(rc) 298 298 && ( rc == VERR_TIMEOUT 299 299 && rc == VERR_INTERRUPTED)) 300 300 { 301 301 AssertRC(rc); 302 } 302 } 303 303 304 304 rc = RTCritSectLeave(&pThis->csDevAccess); … … 306 306 307 307 slirp_ext_m_free(pThis->pNATState, pvArg); 308 if (ASMAtomicDecU32(&pThis->cUrgPkt) == 0) 308 if (ASMAtomicDecU32(&pThis->cUrgPkt) == 0) 309 309 { 310 310 drvNATRecvWakeup(pThis->pDrvIns, pThis->pRecvThread); … … 324 324 { 325 325 rc = RTSemEventWait(pThis->EventRecv, RT_INDEFINITE_WAIT); 326 if ( RT_FAILURE(rc) 326 if ( RT_FAILURE(rc) 327 327 && ( rc == VERR_TIMEOUT 328 328 || rc == VERR_INTERRUPTED)) 329 goto done_unlocked; 329 goto done_unlocked; 330 330 } 331 331 … … 337 337 rc = pThis->pPort->pfnReceive(pThis->pPort, pu8Buf, cb); 338 338 AssertRC(rc); 339 } 340 else if ( RT_FAILURE(rc) 339 } 340 else if ( RT_FAILURE(rc) 341 341 && ( rc != VERR_TIMEOUT 342 342 && rc != VERR_INTERRUPTED)) … … 1148 1148 rc = RTSemEventCreate(&pThis->EventUrgRecv); 1149 1149 rc = RTCritSectInit(&pThis->csDevAccess); 1150 rc = PDMDrvHlpTMTimerCreate(pThis->pDrvIns, TMCLOCK_REAL/*enmClock*/, drvNATSlowTimer, 1150 rc = PDMDrvHlpTMTimerCreate(pThis->pDrvIns, TMCLOCK_REAL/*enmClock*/, drvNATSlowTimer, 1151 1151 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, 1153 1153 pThis, TMTIMER_FLAGS_NO_CRIT_SECT/*flags*/, "NATFastTmr", &pThis->pTmrFast); 1154 1154 … … 1211 1211 /* szDriverName */ 1212 1212 "NAT", 1213 /* szRCMod */ 1214 "", 1215 /* szR0Mod */ 1216 "", 1213 1217 /* pszDescription */ 1214 1218 "NAT Network Transport Driver", … … 1225 1229 /* pfnDestruct */ 1226 1230 drvNATDestruct, 1231 /* pfnRelocate */ 1232 NULL, 1227 1233 /* pfnIOCtl */ 1228 1234 NULL, -
trunk/src/VBox/Devices/Network/DrvNetSniffer.cpp
r25728 r25893 490 490 /* szDriverName */ 491 491 "NetSniffer", 492 /* szRCMod */ 493 "", 494 /* szR0Mod */ 495 "", 492 496 /* pszDescription */ 493 497 "Network Sniffer Filter Driver", … … 504 508 /* pfnDestruct */ 505 509 drvNetSnifferDestruct, 510 /* pfnRelocate */ 511 NULL, 506 512 /* pfnIOCtl */ 507 513 NULL, -
trunk/src/VBox/Devices/Network/DrvTAP.cpp
r25823 r25893 1067 1067 /* szDriverName */ 1068 1068 "HostInterface", 1069 /* szRCMod */ 1070 "", 1071 /* szR0Mod */ 1072 "", 1069 1073 /* pszDescription */ 1070 1074 "TAP Network Transport Driver", … … 1081 1085 /* pfnDestruct */ 1082 1086 drvTAPDestruct, 1087 /* pfnRelocate */ 1088 NULL, 1083 1089 /* pfnIOCtl */ 1084 1090 NULL, -
trunk/src/VBox/Devices/PC/DrvACPI.cpp
r22277 r25893 749 749 * Check that no-one is attached to us. 750 750 */ 751 AssertMsgReturn(PDMDrvHlpNoAttach(pDrvIns) == VERR_PDM_NO_ATTACHED_DRIVER, 751 AssertMsgReturn(PDMDrvHlpNoAttach(pDrvIns) == VERR_PDM_NO_ATTACHED_DRIVER, 752 752 ("Configuration error: Not possible to attach anything to this driver!\n"), 753 753 VERR_PDM_DRVINS_NO_ATTACH); … … 777 777 /* szDriverName */ 778 778 "ACPIHost", 779 /* szRCMod */ 780 "", 781 /* szR0Mod */ 782 "", 779 783 /* pszDescription */ 780 784 "ACPI Host Driver", … … 791 795 /* pfnDestruct */ 792 796 drvACPIDestruct, 797 /* pfnRelocate */ 798 NULL, 793 799 /* pfnIOCtl */ 794 800 NULL, … … 804 810 NULL, 805 811 /* pfnDetach */ 806 NULL, 812 NULL, 807 813 /* pfnPowerOff */ 808 NULL, 814 NULL, 809 815 /* pfnSoftReset */ 810 816 NULL, -
trunk/src/VBox/Devices/PC/DrvAcpiCpu.cpp
r25817 r25893 89 89 * Check that no-one is attached to us. 90 90 */ 91 AssertMsgReturn(PDMDrvHlpNoAttach(pDrvIns) == VERR_PDM_NO_ATTACHED_DRIVER, 91 AssertMsgReturn(PDMDrvHlpNoAttach(pDrvIns) == VERR_PDM_NO_ATTACHED_DRIVER, 92 92 ("Configuration error: Not possible to attach anything to this driver!\n"), 93 93 VERR_PDM_DRVINS_NO_ATTACH); … … 105 105 /* szDriverName */ 106 106 "ACPICpu", 107 /* szRCMod */ 108 "", 109 /* szR0Mod */ 110 "", 107 111 /* pszDescription */ 108 112 "ACPI CPU Driver", … … 119 123 /* pfnDestruct */ 120 124 drvACPICpuDestruct, 125 /* pfnRelocate */ 126 NULL, 121 127 /* pfnIOCtl */ 122 128 NULL, … … 132 138 NULL, 133 139 /* pfnDetach */ 134 NULL, 140 NULL, 135 141 /* pfnPowerOff */ 136 NULL, 142 NULL, 137 143 /* pfnSoftReset */ 138 144 NULL, -
trunk/src/VBox/Devices/Parallel/DrvHostParallel.cpp
r25823 r25893 406 406 /* szDriverName */ 407 407 "HostParallel", 408 /* szRCMod */ 409 "", 410 /* szR0Mod */ 411 "", 408 412 /* pszDescription */ 409 413 "Parallel host driver.", … … 420 424 /* pfnDestruct */ 421 425 drvHostParallelDestruct, 426 /* pfnRelocate */ 427 NULL, 422 428 /* pfnIOCtl */ 423 429 NULL, -
trunk/src/VBox/Devices/Serial/DrvChar.cpp
r23745 r25893 304 304 /** 305 305 * Construct a char driver instance. 306 * 306 * 307 307 * @copydoc FNPDMDRVCONSTRUCT 308 308 */ … … 343 343 return PDMDrvHlpVMSetError(pDrvIns, VERR_PDM_MISSING_INTERFACE_BELOW, RT_SRC_POS, N_("Char#%d has no stream interface below"), pDrvIns->iInstance); 344 344 345 /* 345 /* 346 346 * Don't start the receive thread if the driver doesn't support reading 347 347 */ … … 414 414 /* szDriverName */ 415 415 "Char", 416 /* szRCMod */ 417 "", 418 /* szR0Mod */ 419 "", 416 420 /* pszDescription */ 417 421 "Generic char driver.", … … 428 432 /* pfnDestruct */ 429 433 drvCharDestruct, 434 /* pfnRelocate */ 435 NULL, 430 436 /* pfnIOCtl */ 431 437 NULL, … … 441 447 NULL, 442 448 /* pfnDetach */ 443 NULL, 449 NULL, 444 450 /* pfnPowerOff */ 445 NULL, 451 NULL, 446 452 /* pfnSoftReset */ 447 453 NULL, -
trunk/src/VBox/Devices/Serial/DrvHostSerial.cpp
r25823 r25893 1468 1468 /* szDriverName */ 1469 1469 "Host Serial", 1470 /* pszDescription */ 1470 /* szRCMod */ 1471 "", 1472 /* szR0Mod */ 1473 "", 1474 /* pszDescription */ 1471 1475 "Host serial driver.", 1472 1476 /* fFlags */ … … 1482 1486 /* pfnDestruct */ 1483 1487 drvHostSerialDestruct, 1488 /* pfnRelocate */ 1489 NULL, 1484 1490 /* pfnIOCtl */ 1485 1491 NULL, -
trunk/src/VBox/Devices/Serial/DrvNamedPipe.cpp
r22277 r25893 617 617 /* szDriverName */ 618 618 "NamedPipe", 619 /* szRCMod */ 620 "", 621 /* szR0Mod */ 622 "", 619 623 /* pszDescription */ 620 624 "Named Pipe stream driver.", … … 631 635 /* pfnDestruct */ 632 636 drvNamedPipeDestruct, 637 /* pfnRelocate */ 638 NULL, 633 639 /* pfnIOCtl */ 634 640 NULL, -
trunk/src/VBox/Devices/Serial/DrvRawFile.cpp
r24382 r25893 219 219 /* szDriverName */ 220 220 "RawFile", 221 /* szRCMod */ 222 "", 223 /* szR0Mod */ 224 "", 221 225 /* pszDescription */ 222 226 "RawFile stream driver.", … … 233 237 /* pfnDestruct */ 234 238 drvRawFileDestruct, 239 /* pfnRelocate */ 240 NULL, 235 241 /* pfnIOCtl */ 236 242 NULL, -
trunk/src/VBox/Devices/Storage/DrvBlock.cpp
r25891 r25893 903 903 /* szDriverName */ 904 904 "Block", 905 /* szRCMod */ 906 "", 907 /* szR0Mod */ 908 "", 905 909 /* pszDescription */ 906 910 "Generic block driver.", … … 916 920 drvblockConstruct, 917 921 /* pfnDestruct */ 922 NULL, 923 /* pfnRelocate */ 918 924 NULL, 919 925 /* pfnIOCtl */ -
trunk/src/VBox/Devices/Storage/DrvHostDVD.cpp
r24015 r25893 830 830 /* szDriverName */ 831 831 "HostDVD", 832 /* szRCMod */ 833 "", 834 /* szR0Mod */ 835 "", 832 836 /* pszDescription */ 833 837 "Host DVD Block Driver.", … … 844 848 /* pfnDestruct */ 845 849 drvHostDvdDestruct, 850 /* pfnRelocate */ 851 NULL, 846 852 /* pfnIOCtl */ 847 853 NULL, -
trunk/src/VBox/Devices/Storage/DrvHostFloppy.cpp
r22277 r25893 204 204 /* szDriverName */ 205 205 "HostFloppy", 206 /* szRCMod */ 207 "", 208 /* szR0Mod */ 209 "", 206 210 /* pszDescription */ 207 211 "Host Floppy Block Driver.", … … 218 222 /* pfnDestruct */ 219 223 DRVHostBaseDestruct, 224 /* pfnRelocate */ 225 NULL, 220 226 /* pfnIOCtl */ 221 227 NULL, … … 231 237 NULL, 232 238 /* pfnDetach */ 233 NULL, 239 NULL, 234 240 /* pfnPowerOff */ 235 NULL, 241 NULL, 236 242 /* pfnSoftReset */ 237 243 NULL, -
trunk/src/VBox/Devices/Storage/DrvMediaISO.cpp
r22277 r25893 319 319 /* szDriverName */ 320 320 "MediaISO", 321 /* szRCMod */ 322 "", 323 /* szR0Mod */ 324 "", 321 325 /* pszDescription */ 322 326 "ISO media access driver.", … … 333 337 /* pfnDestruct */ 334 338 drvMediaISODestruct, 339 /* pfnRelocate */ 340 NULL, 335 341 /* pfnIOCtl */ 336 342 NULL, … … 346 352 NULL, 347 353 /* pfnDetach */ 348 NULL, 354 NULL, 349 355 /* pfnPowerOff */ 350 NULL, 356 NULL, 351 357 /* pfnSoftReset */ 352 358 NULL, -
trunk/src/VBox/Devices/Storage/DrvRawImage.cpp
r22277 r25893 92 92 /** 93 93 * Construct a raw image driver instance. 94 * 94 * 95 95 * @copydoc FNPDMDRVCONSTRUCT 96 */ 96 */ 97 97 static DECLCALLBACK(int) drvRawImageConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfgHandle, uint32_t fFlags) 98 98 { … … 369 369 /* szDriverName */ 370 370 "RawImage", 371 /* szRCMod */ 372 "", 373 /* szR0Mod */ 374 "", 371 375 /* pszDescription */ 372 376 "Raw image access driver.", … … 383 387 /* pfnDestruct */ 384 388 drvRawImageDestruct, 389 /* pfnRelocate */ 390 NULL, 385 391 /* pfnIOCtl */ 386 392 NULL, … … 396 402 NULL, 397 403 /* pfnDetach */ 398 NULL, 404 NULL, 399 405 /* pfnPowerOff */ 400 NULL, 406 NULL, 401 407 /* pfnSoftReset */ 402 408 NULL, -
trunk/src/VBox/Devices/Storage/DrvSCSI.cpp
r24751 r25893 1028 1028 /* szDriverName */ 1029 1029 "SCSI", 1030 /* szRCMod */ 1031 "", 1032 /* szR0Mod */ 1033 "", 1030 1034 /* pszDescription */ 1031 1035 "Generic SCSI driver.", … … 1042 1046 /* pfnDestruct */ 1043 1047 drvscsiDestruct, 1048 /* pfnRelocate */ 1049 NULL, 1044 1050 /* pfnIOCtl */ 1045 1051 NULL, -
trunk/src/VBox/Devices/Storage/DrvSCSIHost.cpp
r23973 r25893 500 500 /* szDriverName */ 501 501 "SCSIHost", 502 /* szRCMod */ 503 "", 504 /* szR0Mod */ 505 "", 502 506 /* pszDescription */ 503 507 "Host SCSI driver.", … … 514 518 /* pfnDestruct */ 515 519 drvscsihostDestruct, 520 /* pfnRelocate */ 521 NULL, 516 522 /* pfnIOCtl */ 517 523 NULL, -
trunk/src/VBox/Devices/Storage/DrvVD.cpp
r25891 r25893 1318 1318 /* szDriverName */ 1319 1319 "VD", 1320 /* szRCMod */ 1321 "", 1322 /* szR0Mod */ 1323 "", 1320 1324 /* pszDescription */ 1321 1325 "Generic VBox disk media driver.", … … 1332 1336 /* pfnDestruct */ 1333 1337 drvvdDestruct, 1338 /* pfnRelocate */ 1339 NULL, 1334 1340 /* pfnIOCtl */ 1335 1341 NULL,
Note:
See TracChangeset
for help on using the changeset viewer.