/* Device driver support for RCI. This includes the generic RCI psuedo
   device, the "xyd" driver which connects to a XYCOM XVME 240 parallel
   port, and the "xyclk" driver which connects to a XYCOM XVME 203
   real-time clock module.

   The code fragments in this file should be inserted into the device
   driver configuration file "conf.c".
 */

/* Device definitions. Place these right above the beginning of the
   definition for struct cdevsw cdevsw[]. */

/* BEGIN RCI device preambles ... */

#ifdef RCI
#include "genrci.h"
#else
#define NGENRCI 0
#endif

#if NGENRCI > 0
extern int genrciopen();
extern int genrciclose();
extern int genrciioctl();
#else
#define genrciopen nodev
#define genrciclose nodev
#define genrciioctl nodev
#endif

#include "xyclk.h"
#if NXYCLK > 0
extern int xyclkopen();
extern int xyclkclose();
extern int xyclkioctl();
#else
#define xyclkopen nodev
#define xyclkclose nodev
#define xyclkioctl nodev
#endif

#include "xyd.h"
#if NXYD > 0
extern int xydopen();
extern int xydclose();
extern int xydioctl();
#else
#define xydopen nodev
#define xydclose nodev
#define xydioctl nodev
#endif

/* ... END RCI device preambles */

/* table entries. Place these within the definition of cdevsw, at the end. 
   The unit numbers given in comments at the right will need to be modified so
   that LAST is the last unit number previously contained in cdevsw.
 */
/* BEGIN RCI cdevsw entries ... */   
    { 
	genrciopen,     genrciclose,    nodev,          nodev,     /*LAST+1*/
	genrciioctl,    nulldev,        seltrue, 	nulldev,
	0,
    },
    { 
	xyclkopen,      xyclkclose,     nodev,          nodev,     /*LAST+2*/
	xyclkioctl,     nulldev,        seltrue,        nulldev,
	0, 
    },
    { 
	xydopen,        xydclose,       nodev,          nodev,     /*LAST+3*/
	xydioctl,       nulldev,        seltrue,        nulldev,
	0,
    },
/* ... END RCI cdevsw entries */
