VirtualBox

Changeset 3857 in vbox for trunk/include


Ignore:
Timestamp:
Jul 25, 2007 10:02:21 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
23216
Message:

PDMUsb - work in progress.

Location:
trunk/include/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/err.h

    r3749 r3857  
    892892#define VERR_PDM_HIF_INVALID_VERSION                (-2855)
    893893
     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
    894912/** @} */
    895913
  • trunk/include/VBox/pdmusb.h

    r3856 r3857  
    3636/** PDM USB Device Registration Structure,
    3737 *
    38  * This structure is used when registering a device from VBoxUSBRegister() in HC Ring-3.
     38 * This structure is used when registering a device from VBoxUsbRegister() in HC Ring-3.
    3939 * The PDM will make use of this structure untill the VM is destroyed.
    4040 */
     
    394394
    395395/** Current USBHLP version number. */
    396 #define PDM_USBHLP_VERSION  0xec0020000
     396#define PDM_USBHLP_VERSION  0xec020000
    397397
    398398#endif /* IN_RING3 */
     
    421421    } Internal;
    422422
    423     /** Pointer the HC PDM Device API. */
    424     R3PTRTYPE(PCPDMUSBHLP)      pDevHlp;
     423    /** Pointer the PDM USB Device API. */
     424    R3PTRTYPE(PCPDMUSBHLP)      pUsbHlp;
    425425    /** Pointer to the USB device registration structure.  */
    426     R3PTRTYPE(PCPDMUSBREG)      pDevReg;
     426    R3PTRTYPE(PCPDMUSBREG)      pUsbReg;
    427427    /** Configuration handle. */
    428428    R3PTRTYPE(PCFGMNODE)        pCfg;
     
    449449 */
    450450#ifdef VBOX_STRICT
    451 # define PDMUSB_ASSERT_EMT(pDevIns)  pDevIns->pDevHlp->pfnAssertEMT(pDevIns, __FILE__, __LINE__, __FUNCTION__)
     451# define PDMUSB_ASSERT_EMT(pUsbIns)  pUsbIns->pUsbHlp->pfnAssertEMT(pUsbIns, __FILE__, __LINE__, __FUNCTION__)
    452452#else
    453 # define PDMUSB_ASSERT_EMT(pDevIns)  do { } while (0)
     453# define PDMUSB_ASSERT_EMT(pUsbIns)  do { } while (0)
    454454#endif
    455455
     
    458458 */
    459459#ifdef VBOX_STRICT
    460 # define PDMUSB_ASSERT_OTHER(pDevIns)  pDevIns->pDevHlp->pfnAssertOther(pDevIns, __FILE__, __LINE__, __FUNCTION__)
     460# define PDMUSB_ASSERT_OTHER(pUsbIns)  pUsbIns->pUsbHlp->pfnAssertOther(pUsbIns, __FILE__, __LINE__, __FUNCTION__)
    461461#else
    462 # define PDMUSB_ASSERT_OTHER(pDevIns)  do { } while (0)
     462# define PDMUSB_ASSERT_OTHER(pUsbIns)  do { } while (0)
    463463#endif
    464464
     
    466466 * Set the VM error. See PDMDevHlpVMSetError() for printf like message formatting.
    467467 */
    468 #define PDMUSB_SET_ERROR(pDevIns, rc, pszError) \
    469     PDMDevHlpVMSetError(pDevIns, rc, RT_SRC_POS, "%s", pszError)
     468#define PDMUSB_SET_ERROR(pUsbIns, rc, pszError) \
     469    PDMDevHlpVMSetError(pUsbIns, rc, RT_SRC_POS, "%s", pszError)
    470470
    471471/** @def PDMUSB_SET_RUNTIME_ERROR
    472472 * Set the VM runtime error. See PDMDevHlpVMSetRuntimeError() for printf like message formatting.
    473473 */
    474 #define PDMUSB_SET_RUNTIME_ERROR(pDevIns, fFatal, pszErrorID, pszError) \
    475     PDMDevHlpVMSetRuntimeError(pDevIns, fFatal, pszErrorID, "%s", pszError)
     474#define PDMUSB_SET_RUNTIME_ERROR(pUsbIns, fFatal, pszErrorID, pszError) \
     475    PDMDevHlpVMSetRuntimeError(pUsbIns, fFatal, pszErrorID, "%s", pszError)
    476476
    477477
     
    479479
    480480/**
    481  * VBOX_STRICT wrapper for pDevHlp->pfnDBGFStopV.
     481 * VBOX_STRICT wrapper for pUsbHlp->pfnDBGFStopV.
    482482 *
    483483 * @returns VBox status code which must be passed up to the VMM.
    484  * @param   pDevIns             Device instance.
     484 * @param   pUsbIns             Device instance.
    485485 * @param   RT_SRC_POS_DECL     Use RT_SRC_POS.
    486486 * @param   pszFormat           Message. (optional)
     
    493493    va_list va;
    494494    va_start(va, pszFormat);
    495     rc = pUsbIns->pDevHlp->pfnDBGFStopV(pUsbIns, RT_SRC_POS_ARGS, pszFormat, va);
     495    rc = pUsbIns->pUsbHlp->pfnDBGFStopV(pUsbIns, RT_SRC_POS_ARGS, pszFormat, va);
    496496    va_end(va);
    497497    return rc;
     
    508508
    509509
    510 /** Pointer to callbacks provided to the VBoxUSBRegister() call. */
     510/** Pointer to callbacks provided to the VBoxUsbRegister() call. */
    511511typedef const struct PDMUSBREGCB *PCPDMUSBREGCB;
    512512
     
    546546
    547547/**
    548  * The VBoxUSBRegister callback function.
     548 * The VBoxUsbRegister callback function.
    549549 *
    550550 * PDM will invoke this function after loading a USB device module and letting
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