1 #ifndef  CLIB_USBCLASS_PROTOS_H
    2 #define  CLIB_USBCLASS_PROTOS_H
    3 
    4 /*
    5 **	$Id: usbclass_protos.h,v 1.3 2008/09/15 21:36:25 piru Exp $
    6 **
    7 **	C prototypes. For use with 32 bit integers only.
    8 **
    9 **	Copyright © 2002 Chris Hodges
   10 **	    All Rights Reserved
   11 */
   12 
   13 #ifndef  EXEC_TYPES_H
   14 #include <exec/types.h>
   15 #endif
   16 #ifndef  EXEC_LISTS_H
   17 #include <exec/lists.h>
   18 #endif
   19 #ifndef  EXEC_SEMAPHORES_H
   20 #include <exec/semaphores.h>
   21 #endif
   22 #ifndef  EXEC_DEVICES_H
   23 #include <exec/devices.h>
   24 #endif
   25 #ifndef  EXEC_IO_H
   26 #include <exec/io.h>
   27 #endif
   28 #ifndef  EXEC_PORTS_H
   29 #include <exec/ports.h>
   30 #endif
   31 #ifndef  UTILITY_UTILITY_H
   32 #include <utility/utility.h>
   33 #endif
   34 #ifndef  DEVICES_TIMER_H
   35 #include <devices/timer.h>
   36 #endif
   37 #ifndef  LIBRARIES_POSEIDON_H
   38 #include <libraries/poseidon.h>
   39 #endif
   40 #ifndef  LIBRARIES_USBCLASS_H
   41 #include <libraries/usbclass.h>
   42 #endif
   43 
   44 #ifdef __cplusplus
   45 extern "C" {
   46 #endif /* __cplusplus */
   47 
   48 APTR usbAttemptInterfaceBinding( APTR pif );
   49 VOID usbReleaseInterfaceBinding( APTR uifb );
   50 APTR usbAttemptDeviceBinding( APTR pd );
   51 VOID usbReleaseDeviceBinding( APTR udb );
   52 APTR usbForceInterfaceBinding( APTR pif );
   53 APTR usbForceDeviceBinding( APTR pd );
   54 LONG usbGetAttrsA( ULONG type, APTR usbstruct, struct TagItem *taglist );
   55 LONG usbGetAttrs( ULONG type, APTR usbstruct, ULONG tag1, ... );
   56 LONG usbSetAttrsA( ULONG type, APTR usbstruct, struct TagItem *taglist );
   57 LONG usbSetAttrs( ULONG type, APTR usbstruct, ULONG tag1, ... );
   58 LONG usbDoMethodA( ULONG methodid, APTR methoddata );
   59 LONG usbDoMethod( ULONG methodid, ... );
   60 
   61 #ifdef __cplusplus
   62 }
   63 #endif /* __cplusplus */
   64 
   65 #endif   /* CLIB_USBCLASS_PROTOS_H */