VirtualBox

Changeset 4010 in vbox for trunk


Ignore:
Timestamp:
Aug 2, 2007 11:12:16 PM (17 years ago)
Author:
vboxsync
Message:

added usb flavor.

File:
1 edited

Legend:

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

    r3854 r4010  
    1919 */
    2020
    21 #ifndef ___VBox_pdm_h
    22 # include <VBox/pdm.h>
    23 #endif
    24 
    2521#ifndef ___VBox_pdmthread_h
    2622#define ___VBox_pdmthread_h
     23
     24#include <VBox/cdefs.h>
     25#include <VBox/types.h>
     26#ifdef IN_RING3
     27# include <iprt/thread.h>
     28#endif
    2729
    2830__BEGIN_DECLS
     
    8991
    9092/**
     93 * PDM thread, USB device variation.
     94 *
     95 * @returns VBox status code.
     96 * @param   pUsbIns     The USB device instance.
     97 * @param   pThread     The PDM thread data.
     98 */
     99typedef int FNPDMTHREADUSB(PPDMUSBINS pUsbIns, PPDMTHREAD pThread);
     100/** Pointer to a FNPDMTHREADUSB(). */
     101typedef FNPDMTHREADUSB *PFNPDMTHREADUSB;
     102
     103/**
    91104 * PDM thread, driver variation.
    92105 *
     
    123136
    124137/**
    125  * PDM thread wakup call, device variation.
     138 * PDM thread wakeup call, device variation.
    126139 *
    127140 * @returns VBox status code.
     
    134147
    135148/**
    136  * PDM thread wakup call, driver variation.
     149 * PDM thread wakeup call, device variation.
     150 *
     151 * @returns VBox status code.
     152 * @param   pUsbIns     The USB device instance.
     153 * @param   pThread     The PDM thread data.
     154 */
     155typedef int FNPDMTHREADWAKEUPUSB(PPDMUSBINS pUsbIns, PPDMTHREAD pThread);
     156/** Pointer to a FNPDMTHREADUSB(). */
     157typedef FNPDMTHREADWAKEUPUSB *PFNPDMTHREADWAKEUPUSB;
     158
     159/**
     160 * PDM thread wakeup call, driver variation.
    137161 *
    138162 * @returns VBox status code.
     
    145169
    146170/**
    147  * PDM thread wakup call, internal variation.
     171 * PDM thread wakeup call, internal variation.
    148172 *
    149173 * @returns VBox status code.
     
    156180
    157181/**
    158  * PDM thread wakup call, external variation.
     182 * PDM thread wakeup call, external variation.
    159183 *
    160184 * @returns VBox status code.
     
    196220        } Dev;
    197221
     222        /** PDMTHREADTYPE_USB data. */
     223        struct
     224        {
     225            /** The device instance. */
     226            PPDMUSBINS                          pUsbIns;
     227            /** The thread function. */
     228            R3PTRTYPE(PFNPDMTHREADUSB)          pfnThread;
     229            /** Thread. */
     230            R3PTRTYPE(PFNPDMTHREADWAKEUPUSB)    pfnWakeup;
     231        } Usb;
     232
    198233        /** PDMTHREADTYPE_DRIVER data. */
    199234        struct
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette