1 #ifndef CLIB_EXPANSION_PROTOS_H
    2 #define CLIB_EXPANSION_PROTOS_H
    3 
    4 /*
    5 	expansion.library 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_MEMORY_H
   15 # include <exec/memory.h>
   16 #endif
   17 
   18 #ifndef LIBRARIES_CONFIGVARS_H
   19 # include <libraries/configvars.h>
   20 #endif
   21 
   22 #ifndef DOS_FILEHANDLER_H
   23 # include <dos/filehandler.h>
   24 #endif
   25 
   26 
   27 #ifdef __cplusplus
   28 extern "C" {
   29 #endif /* __cplusplus */
   30 
   31 VOID AddConfigDev( struct ConfigDev *configDev );
   32 BOOL AddBootNode( LONG bootPri, ULONG flags, struct DeviceNode *deviceNode, struct ConfigDev *configDev );
   33 VOID AllocBoardMem( ULONG slotSpec );
   34 struct ConfigDev *AllocConfigDev( VOID );
   35 APTR AllocExpansionMem( ULONG numSlots, ULONG slotAlign );
   36 VOID ConfigBoard( APTR board, struct ConfigDev *configDev );
   37 VOID ConfigChain( APTR baseAddr );
   38 struct ConfigDev *FindConfigDev( CONST struct ConfigDev *oldConfigDev, LONG manufacturer, LONG product );
   39 VOID FreeBoardMem( ULONG startSlot, ULONG slotSpec );
   40 VOID FreeConfigDev( struct ConfigDev *configDev );
   41 VOID FreeExpansionMem( ULONG startSlot, ULONG numSlots );
   42 UBYTE ReadExpansionByte( CONST APTR board, ULONG offset );
   43 VOID ReadExpansionRom( CONST APTR board, struct ConfigDev *configDev );
   44 VOID RemConfigDev( struct ConfigDev *configDev );
   45 VOID WriteExpansionByte( APTR board, ULONG offset, ULONG byte );
   46 VOID ObtainConfigBinding( VOID );
   47 VOID ReleaseConfigBinding( VOID );
   48 VOID SetCurrentBinding( struct CurrentBinding *currentBinding, ULONG bindingSize );
   49 ULONG GetCurrentBinding( CONST struct CurrentBinding *currentBinding, ULONG bindingSize );
   50 struct DeviceNode *MakeDosNode( CONST APTR parmPacket );
   51 BOOL AddDosNode( LONG bootPri, ULONG flags, struct DeviceNode *deviceNode );
   52 
   53 #ifdef __cplusplus
   54 }
   55 #endif /* __cplusplus */
   56 
   57 
   58 #endif /* CLIB_EXPANSION_PROTOS_H */