/*DDK*************************************************************************/
/*                                                                           */
/* COPYRIGHT    Copyright (C) 1995 IBM Corporation                           */
/*                                                                           */
/*    The following IBM OS/2 WARP source code is provided to you solely for  */
/*    the purpose of assisting you in your development of OS/2 WARP device   */
/*    drivers. You may use this code in accordance with the IBM License      */
/*    Agreement provided in the IBM Device Driver Source Kit for OS/2. This  */
/*    Copyright statement may not be removed.                                */
/*                                                                           */
/*****************************************************************************/
/**************************************************************************
 *
 * SOURCE FILE NAME =  MSERM.H
 *
 * DESCRIPTIVE NAME =  Header file for mserm.c
 *
 *
 *
 * VERSION = V0.1
 *
 * DATE  09/02/94
 *
 * DESCRIPTION : (see above)
 *
 * Purpose: (see above)
 *
 *
 *
 * FUNCTIONS  :
 *
 * NOTES
 *
 *
 * STRUCTURES
 *
 * EXTERNAL REFERENCES
 *
 *
 *
 * EXTERNAL FUNCTIONS
 *
*/

#ifndef  __MSERM_H__
#define  __MSERM_H__


#include "rmcalls.h"


/*--------------------------------------------------------*/
/* # D E F I N E S                                        */
/*--------------------------------------------------------*/
#define DECODE_WIDTH 16

#define MAX_RES_HANDLES    4

#define MAX_RES_BUF_SIZE sizeof(AHRESOURCE) +                    \
                         MAX_RES_HANDLES * sizeof(HRESOURCE)

#define RM_MSE_ERR_RESOURCECLAIMED      0xFFFF

/*--------------------------------------------------------*/
/* P R T O T Y P E S                                      */
/*--------------------------------------------------------*/
USHORT FAR RM_MSE_CreateDriver( USHORT DriverSys);
VOID   FAR RM_MSE_DestroyDriver( VOID);
USHORT FAR RM_MSE_CreateAdapter( USHORT bustype);
USHORT FAR RM_MSE_CreateDevice( VOID);
USHORT FAR RM_MSE_AllocPorts( USHORT PortVal);
USHORT FAR RM_MSE_AllocPort2( USHORT PortVal);
USHORT FAR RM_MSE_DeallocPorts( VOID);
USHORT FAR RM_MSE_DeallocPort2( VOID);
USHORT FAR RM_MSE_AllocIRQ( USHORT IRQlevel);

#pragma alloc_text( RMCode,RM_MSE_CreateDriver )
#pragma alloc_text( RMCode,RM_MSE_DestroyDriver)
#pragma alloc_text( RMCode,RM_MSE_CreateAdapter)
#pragma alloc_text( RMCode,RM_MSE_CreateDevice )
#pragma alloc_text( RMCode,RM_MSE_AllocPorts   )
#pragma alloc_text( RMCode,RM_MSE_AllocPort2   )
#pragma alloc_text( RMCode,RM_MSE_AllocIRQ     )



#endif /* __MSERM_H__ */
