VirtualBox

Changeset 5956

Show
Ignore:
Timestamp:
12/04/07 20:30:38 (1 year ago)
Author:
vboxsync
Message:

Made VUSBDEV internal to VUSB.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/include/VBox/pdmusb.h

    r5954 r5956  
    313313     * 
    314314     * @returns VBox status code. 
     315     * @retval  VINF_SUCCESS on success. 
     316     * @retval  VERR_VUSB_DEVICE_NOT_ATTACHED if the device has been disconnected. 
     317     * @retval  VERR_VUSB_FAILED_TO_QUEUE_URB as a general failure kind of thing. 
     318     * @retval  TBD - document new stuff! 
     319     * 
    315320     * @param   pUsbIns             The USB device instance. 
    316321     * @param   pUrb                The URB to process. 
     
    594599    R3PTRTYPE(void *)           pvInstanceDataR3; 
    595600    /** Pointer to the VUSB Device structure. 
    596      * The constructor sets this
    597      * @todo Integrate VUSBDEV into this structure. */ 
    598     R3PTRTYPE(void *)           pvVUsbDev
     601     * Internal to VUSB, don't touch
     602     * @todo Moved this to PDMUSBINSINT. */ 
     603    R3PTRTYPE(void *)           pvVUsbDev2
    599604    /** Device name for using when logging. 
    600605     * The constructor sets this and the destructor frees it. */ 
  • trunk/include/VBox/vusb.h

    r5764 r5956  
    885885        /** Pointer to the original for control messages. */ 
    886886        PVUSBURB        pCtrlUrb; 
     887        /** Pointer to the VUSB device. 
     888         * This may be NULL if the destination address is invalid. */ 
     889        struct VUSBDEV *pDev; 
    887890        /** Sepcific to the pfnFree function. */ 
    888891        void           *pvFreeCtx; 
     
    933936    } Dev; 
    934937 
    935     /** The device - NULL until a submit has been is attempted
    936      * This is set when allocating the URB. */ 
    937     struct VUSBDEV *pDev
     938    /** The USB device instance this belongs to
     939     * This is NULL if the device address is invalid, in which case this belongs to the hub. */ 
     940    PPDMUSBINS      pUsbIns
    938941    /** The device address. 
    939942     * This is set at allocation time. */ 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy