1 #ifndef CLIB_CARDRES_PROTOS_H
    2 #define CLIB_CARDRES_PROTOS_H
    3 
    4 /*
    5 	card.resource C prototypes
    6 
    7 	Copyright © 2002 The MorphOS Development Team, All Rights Reserved.
    8 */
    9 
   10 #ifndef EXEC_TYPES_H
   11 # include <exec/types.h>
   12 #endif
   13 
   14 #ifndef EXEC_RESIDENT_H
   15 # include <exec/resident.h>
   16 #endif
   17 
   18 #ifndef RESOURCES_CARD_H
   19 # include <resources/card.h>
   20 #endif
   21 
   22 
   23 #ifdef __cplusplus
   24 extern "C" {
   25 #endif /* __cplusplus */
   26 
   27 struct CardHandle *OwnCard( struct CardHandle *handle );
   28 VOID ReleaseCard( struct CardHandle *handle, ULONG flags );
   29 struct CardMemoryMap *GetCardMap( VOID );
   30 BOOL BeginCardAccess( struct CardHandle *handle );
   31 BOOL EndCardAccess( struct CardHandle *handle );
   32 UBYTE ReadCardStatus( VOID );
   33 BOOL CardResetRemove( struct CardHandle *handle, ULONG flag );
   34 UBYTE CardMiscControl( struct CardHandle *handle, ULONG control_bits );
   35 ULONG CardAccessSpeed( struct CardHandle *handle, ULONG nanoseconds );
   36 LONG CardProgramVoltage( struct CardHandle *handle, ULONG voltage );
   37 BOOL CardResetCard( struct CardHandle *handle );
   38 BOOL CopyTuple( CONST struct CardHandle *handle, UBYTE *buffer, ULONG tuplecode, ULONG size );
   39 ULONG DeviceTuple( CONST UBYTE *tuple_data, struct DeviceTData *storage );
   40 struct Resident *IfAmigaXIP( CONST struct CardHandle *handle );
   41 BOOL CardForceChange( VOID );
   42 ULONG CardChangeCount( VOID );
   43 ULONG CardInterface( VOID );
   44 
   45 #ifdef __cplusplus
   46 }
   47 #endif /* __cplusplus */
   48 
   49 
   50 #endif /* CLIB_CARDRES_PROTOS_H */