Changeset 20226 in vbox
- Timestamp:
- Jun 3, 2009 10:09:48 AM (16 years ago)
- Location:
- trunk/include/VBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/pdmifs.h
r20167 r20226 151 151 PDMINTERFACE_VUSB_DEVICE, 152 152 153 /** VUSBITIMER - VUSB Timer interface. (Up) No coupling. */154 PDMINTERFACE_VUSB_TIMER,155 156 153 /** PDMIHOSTPARALLELPORT - The Host Parallel port interface. (Down) Coupled with PDMINTERFACE_HOST_PARALLEL_CONNECTOR. */ 157 154 PDMINTERFACE_HOST_PARALLEL_PORT, -
trunk/include/VBox/vusb.h
r20186 r20226 326 326 327 327 328 /**329 * USB frame timer callback function.330 *331 * @param pDevIns Device instance of the device which registered the timer.332 * @param pTimer The timer handle.333 */334 typedef DECLCALLBACK(void) FNUSBTIMERDEV(PPDMDEVINS pDevIns, PTMTIMER pTimer);335 /** Pointer to a device timer callback function. */336 typedef FNUSBTIMERDEV *PFNUSBTIMERDEV;337 338 328 /** Pointer to a VBox USB device interface. */ 339 329 typedef struct VUSBIDEVICE *PVUSBIDEVICE; … … 341 331 /** Pointer to a VUSB RootHub port interface. */ 342 332 typedef struct VUSBIROOTHUBPORT *PVUSBIROOTHUBPORT; 343 344 /** Pointer to a VBox USB timer interface. */345 typedef struct VUSBITIMER *PVUSBITIMER;346 333 347 334 /** Pointer to an USB request descriptor. */ … … 775 762 { 776 763 return pInterface->pfnGetState(pInterface); 777 }778 #endif /* IN_RING3 */779 780 781 /**782 * USB Timer Interface.783 * @todo r=bird: why is this code still here?784 */785 typedef struct VUSBITIMER786 {787 /**788 * Sets up initial frame timer parameters.789 *790 * @returns VBox status code.791 * @param pInterface Pointer to the timer interface structure.792 * @param pfnCallback Pointer to the timer callback function.793 * @param rate Requested frame rate (normally 1,000).794 */795 DECLR3CALLBACKMEMBER(int, pfnTimerSetup,(PVUSBITIMER pInterface, PFNUSBTIMERDEV pfnCallback, uint32_t rate));796 797 /**798 * Requests another tick of the frame timer.799 *800 * @returns VBox status code.801 * @param pInterface Pointer to the timer interface structure.802 */803 DECLR3CALLBACKMEMBER(int, pfnTimerSetNext,(PVUSBITIMER pInterface));804 805 /**806 * Stops the frame timer for the caller.807 *808 * @returns VBox status code.809 * @param pInterface Pointer to the timer interface structure.810 */811 DECLR3CALLBACKMEMBER(int, pfnTimerStop,(PVUSBITIMER pInterface));812 813 } VUSBITIMER;814 815 816 #ifdef IN_RING3817 /**818 * Sets up initial frame timer parameters.819 *820 * @returns VBox status code.821 * @param pInterface Pointer to the timer interface structure.822 * @param pfnCallback Pointer to the timer callback function.823 * @param rate Requested frame rate (normally 1,000).824 */825 DECLINLINE(int) VUSBITimerSetup(PVUSBITIMER pInterface, PFNUSBTIMERDEV pfnCallback, uint32_t rate)826 {827 return pInterface->pfnTimerSetup(pInterface, pfnCallback, rate);828 }829 830 /**831 * Requests another tick of the USB frame timer.832 *833 * @returns VBox status code.834 * @param pInterface Pointer to the timer interface structure.835 */836 DECLINLINE(int) VUSBITimerSetNext(PVUSBITIMER pInterface)837 {838 return pInterface->pfnTimerSetNext(pInterface);839 }840 841 /**842 * Stops the USB frame timer for the caller.843 *844 * @returns VBox status code.845 * @param pInterface Pointer to the timer interface structure.846 */847 DECLINLINE(int) VUSBITimerStop(PVUSBITIMER pInterface)848 {849 return pInterface->pfnTimerStop(pInterface);850 764 } 851 765 #endif /* IN_RING3 */
Note:
See TracChangeset
for help on using the changeset viewer.