Changeset 15075 in vbox for trunk/include/VBox
- Timestamp:
- Dec 8, 2008 3:06:50 AM (16 years ago)
- Location:
- trunk/include/VBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/pdmifs.h
r14610 r15075 152 152 PDMINTERFACE_VUSB_RH_CONFIG, 153 153 154 /** VUSB ROOTHUBCONNECTOR- VUSB Device interface. (Up) No coupling. */154 /** VUSBIDEVICE - VUSB Device interface. (Up) No coupling. */ 155 155 PDMINTERFACE_VUSB_DEVICE, 156 157 /** VUSBITIMER - VUSB Timer interface. (Up) No coupling. */ 158 PDMINTERFACE_VUSB_TIMER, 156 159 157 160 /** PDMIHOSTPARALLELPORT - The Host Parallel port interface. (Down) Coupled with PDMINTERFACE_HOST_PARALLEL_CONNECTOR. */ -
trunk/include/VBox/vusb.h
r8155 r15075 330 330 typedef struct VUSBIROOTHUBPORT *PVUSBIROOTHUBPORT; 331 331 332 /** Pointer to a VBox USB timer interface. */ 333 typedef struct VUSBITIMER *PVUSBITIMER; 334 332 335 /** Pointer to an USB request descriptor. */ 333 336 typedef struct VUSBURB *PVUSBURB; … … 760 763 { 761 764 return pInterface->pfnGetState(pInterface); 765 } 766 #endif /* IN_RING3 */ 767 768 769 /** 770 * USB Timer Interface. 771 */ 772 typedef struct VUSBITIMER 773 { 774 /** 775 * Sets up initial frame timer parameters. 776 * 777 * @returns VBox status code. 778 * @param pInterface Pointer to the timer interface structure. 779 * @param pfnCallback Pointer to the timer callback function. 780 * @param rate Requested frame rate (normally 1,000). 781 */ 782 DECLR3CALLBACKMEMBER(int, pfnTimerSetup,(PVUSBITIMER pInterface, PFNTMTIMERDEV pfnCallback, uint32_t rate)); 783 784 /** 785 * Requests another tick of the frame timer. 786 * 787 * @returns VBox status code. 788 * @param pInterface Pointer to the timer interface structure. 789 */ 790 DECLR3CALLBACKMEMBER(int, pfnTimerSetNext,(PVUSBITIMER pInterface)); 791 792 /** 793 * Stops the frame timer for the caller. 794 * 795 * @returns VBox status code. 796 * @param pInterface Pointer to the timer interface structure. 797 */ 798 DECLR3CALLBACKMEMBER(int, pfnTimerStop,(PVUSBITIMER pInterface)); 799 800 } VUSBITIMER; 801 802 803 #ifdef IN_RING3 804 /** 805 * Sets up initial frame timer parameters. 806 * 807 * @returns VBox status code. 808 * @param pInterface Pointer to the timer interface structure. 809 * @param pfnCallback Pointer to the timer callback function. 810 * @param rate Requested frame rate (normally 1,000). 811 */ 812 DECLINLINE(int) VUSBITimerSetup(PVUSBITIMER pInterface, PFNTMTIMERDEV pfnCallback, uint32_t rate) 813 { 814 return pInterface->pfnTimerSetup(pInterface, pfnCallback, rate); 815 } 816 817 /** 818 * Requests another tick of the USB frame timer. 819 * 820 * @returns VBox status code. 821 * @param pInterface Pointer to the timer interface structure. 822 */ 823 DECLINLINE(int) VUSBITimerSetNext(PVUSBITIMER pInterface) 824 { 825 return pInterface->pfnTimerSetNext(pInterface); 826 } 827 828 /** 829 * Stops the USB frame timer for the caller. 830 * 831 * @returns VBox status code. 832 * @param pInterface Pointer to the timer interface structure. 833 */ 834 DECLINLINE(int) VUSBITimerStop(PVUSBITIMER pInterface) 835 { 836 return pInterface->pfnTimerStop(pInterface); 762 837 } 763 838 #endif /* IN_RING3 */
Note:
See TracChangeset
for help on using the changeset viewer.