/*
*   IBM Confidential
*
*   OCO Source Materials
*
*   (c) Copyright IBM Corp. 1994, 1998
*
*   The source code for this program is not published or otherwise divested of its
*   tradesecrets, irrespective of what has been deposited with the U.S. Copyright Office.
*/

/**************************************************************************
 *
 * 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
 *
 * CHANGE ACTIVITY =
 *   DATE      FLAG        APAR   CHANGE DESCRIPTION
 *   --------  ----------  -----  --------------------------------------
 *   09/02/94                            opened file
 ****************************************************************************/

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