Changeset 3857 in vbox for trunk/include
- Timestamp:
- Jul 25, 2007 10:02:21 PM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 23216
- Location:
- trunk/include/VBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/err.h
r3749 r3857 892 892 #define VERR_PDM_HIF_INVALID_VERSION (-2855) 893 893 894 /** The version of the USB device registration structure is unknown 895 * to this VBox version. Either mixing incompatible versions or 896 * the structure isn't correctly initialized. */ 897 #define VERR_PDM_UNKNOWN_USBREG_VERSION (-2856) 898 /** Invalid entry in the device registration structure. */ 899 #define VERR_PDM_INVALID_USB_REGISTRATION (-2857) 900 /** Driver name clash. Another driver with the same name as the 901 * one begin registred exists. */ 902 #define VERR_PDM_USB_NAME_CLASH (-2858) 903 /** The USB hub is already registered. */ 904 #define VERR_PDM_USB_HUB_EXISTS (-2859) 905 /** Couldn't find any USB hubs to attach the device to. */ 906 #define VERR_PDM_NO_USB_HUBS (-2860) 907 /** Couldn't find any free USB ports to attach the device to. */ 908 #define VERR_PDM_NO_USB_PORTS (-2861) 909 /** Couldn't find the USB Proxy device. Using OSE? */ 910 #define VERR_PDM_NO_USBPROXY (-2862) 911 894 912 /** @} */ 895 913 -
trunk/include/VBox/pdmusb.h
r3856 r3857 36 36 /** PDM USB Device Registration Structure, 37 37 * 38 * This structure is used when registering a device from VBoxU SBRegister() in HC Ring-3.38 * This structure is used when registering a device from VBoxUsbRegister() in HC Ring-3. 39 39 * The PDM will make use of this structure untill the VM is destroyed. 40 40 */ … … 394 394 395 395 /** Current USBHLP version number. */ 396 #define PDM_USBHLP_VERSION 0xec0 020000396 #define PDM_USBHLP_VERSION 0xec020000 397 397 398 398 #endif /* IN_RING3 */ … … 421 421 } Internal; 422 422 423 /** Pointer the HC PDMDevice API. */424 R3PTRTYPE(PCPDMUSBHLP) p DevHlp;423 /** Pointer the PDM USB Device API. */ 424 R3PTRTYPE(PCPDMUSBHLP) pUsbHlp; 425 425 /** Pointer to the USB device registration structure. */ 426 R3PTRTYPE(PCPDMUSBREG) p DevReg;426 R3PTRTYPE(PCPDMUSBREG) pUsbReg; 427 427 /** Configuration handle. */ 428 428 R3PTRTYPE(PCFGMNODE) pCfg; … … 449 449 */ 450 450 #ifdef VBOX_STRICT 451 # define PDMUSB_ASSERT_EMT(p DevIns) pDevIns->pDevHlp->pfnAssertEMT(pDevIns, __FILE__, __LINE__, __FUNCTION__)451 # define PDMUSB_ASSERT_EMT(pUsbIns) pUsbIns->pUsbHlp->pfnAssertEMT(pUsbIns, __FILE__, __LINE__, __FUNCTION__) 452 452 #else 453 # define PDMUSB_ASSERT_EMT(p DevIns) do { } while (0)453 # define PDMUSB_ASSERT_EMT(pUsbIns) do { } while (0) 454 454 #endif 455 455 … … 458 458 */ 459 459 #ifdef VBOX_STRICT 460 # define PDMUSB_ASSERT_OTHER(p DevIns) pDevIns->pDevHlp->pfnAssertOther(pDevIns, __FILE__, __LINE__, __FUNCTION__)460 # define PDMUSB_ASSERT_OTHER(pUsbIns) pUsbIns->pUsbHlp->pfnAssertOther(pUsbIns, __FILE__, __LINE__, __FUNCTION__) 461 461 #else 462 # define PDMUSB_ASSERT_OTHER(p DevIns) do { } while (0)462 # define PDMUSB_ASSERT_OTHER(pUsbIns) do { } while (0) 463 463 #endif 464 464 … … 466 466 * Set the VM error. See PDMDevHlpVMSetError() for printf like message formatting. 467 467 */ 468 #define PDMUSB_SET_ERROR(p DevIns, rc, pszError) \469 PDMDevHlpVMSetError(p DevIns, rc, RT_SRC_POS, "%s", pszError)468 #define PDMUSB_SET_ERROR(pUsbIns, rc, pszError) \ 469 PDMDevHlpVMSetError(pUsbIns, rc, RT_SRC_POS, "%s", pszError) 470 470 471 471 /** @def PDMUSB_SET_RUNTIME_ERROR 472 472 * Set the VM runtime error. See PDMDevHlpVMSetRuntimeError() for printf like message formatting. 473 473 */ 474 #define PDMUSB_SET_RUNTIME_ERROR(p DevIns, fFatal, pszErrorID, pszError) \475 PDMDevHlpVMSetRuntimeError(p DevIns, fFatal, pszErrorID, "%s", pszError)474 #define PDMUSB_SET_RUNTIME_ERROR(pUsbIns, fFatal, pszErrorID, pszError) \ 475 PDMDevHlpVMSetRuntimeError(pUsbIns, fFatal, pszErrorID, "%s", pszError) 476 476 477 477 … … 479 479 480 480 /** 481 * VBOX_STRICT wrapper for p DevHlp->pfnDBGFStopV.481 * VBOX_STRICT wrapper for pUsbHlp->pfnDBGFStopV. 482 482 * 483 483 * @returns VBox status code which must be passed up to the VMM. 484 * @param p DevIns Device instance.484 * @param pUsbIns Device instance. 485 485 * @param RT_SRC_POS_DECL Use RT_SRC_POS. 486 486 * @param pszFormat Message. (optional) … … 493 493 va_list va; 494 494 va_start(va, pszFormat); 495 rc = pUsbIns->p DevHlp->pfnDBGFStopV(pUsbIns, RT_SRC_POS_ARGS, pszFormat, va);495 rc = pUsbIns->pUsbHlp->pfnDBGFStopV(pUsbIns, RT_SRC_POS_ARGS, pszFormat, va); 496 496 va_end(va); 497 497 return rc; … … 508 508 509 509 510 /** Pointer to callbacks provided to the VBoxU SBRegister() call. */510 /** Pointer to callbacks provided to the VBoxUsbRegister() call. */ 511 511 typedef const struct PDMUSBREGCB *PCPDMUSBREGCB; 512 512 … … 546 546 547 547 /** 548 * The VBoxU SBRegister callback function.548 * The VBoxUsbRegister callback function. 549 549 * 550 550 * PDM will invoke this function after loading a USB device module and letting
Note:
See TracChangeset
for help on using the changeset viewer.