/*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 =  KBDRM.H
 *
 * DESCRIPTIVE NAME =  Header file for kbdrm.c
 *
 *
 *
 * VERSION = V0.1
 *
 * DATE  09/02/94
 *
 * DESCRIPTION : (see above)
 *
 * Purpose: (see above)
 *
 *
 *
 * FUNCTIONS  :
 *
 * NOTES
 *
 *
 * STRUCTURES
 *
 * EXTERNAL REFERENCES
 *
 *
 *
 * EXTERNAL FUNCTIONS
 *
*/

#ifndef  __KBDRM_H__
#define  __KBDRM_H__


#include "rmcalls.h"


/*--------------------------------------------------------*/
/* # D E F I N E S                                        */
/*--------------------------------------------------------*/
#define DECODE_WIDTH 16
#define RM_KBD_NUM_IOPORTS    2     // number of IO ports in range

#define MAX_RES_HANDLES    3

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

#define RM_KBD_ERR_RESOURCECLAIMED      0xFFFF


/*--------------------------------------------------------*/
/* P R T O T Y P E S                                      */
/*--------------------------------------------------------*/
USHORT RM_KBD_CreateDriver( VOID);
VOID   RM_KBD_DestroyDriver( VOID);
USHORT RM_KBD_CreateAdapter( VOID);
USHORT RM_KBD_CreateDevice( USHORT Keyboard_ID);
USHORT RM_KBD_AllocPortBuffer( VOID);
USHORT RM_KBD_AllocPortCmd( VOID);
USHORT RM_KBD_AllocIRQ( USHORT IRQlevel);


#endif /* __KBDRM_H__ */
