/**************************************************************************
 *
 * SOURCE FILE NAME =  MSERM.H
 *
 * DESCRIPTIVE NAME =  Header file for mserm.c
 *
 *
 * Copyright : COPYRIGHT IBM CORPORATION, 1994, 1995
 *             LICENSED MATERIAL - PROGRAM PROPERTY OF IBM
 *             REFER TO COPYRIGHT INSTRUCTION FORM#G120-2083
 *             RESTRICTED MATERIALS OF IBM
 *             IBM CONFIDENTIAL
 *
 * VERSION = V0.1
 *
 * DATE  09/02/94
 *
 * DESCRIPTION : (see above)
 *
 * Purpose: (see above)
 *
 *
 *
 * FUNCTIONS  :
 *
 * NOTES
 *
 *
 * STRUCTURES
 *
 * EXTERNAL REFERENCES
 *
 *
 *
 * EXTERNAL FUNCTIONS
 *
 * CHANGE ACTIVITY =
 *   DATE      FLAG        APAR   CHANGE DESCRIPTION
 *   --------  ----------  -----  --------------------------------------
 *   09/02/94                            opened file
 ****************************************************************************/

#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__ */
