#ifndef _RCIIOCTL_H_
#define _RCIIOCTL_H_

#define IRIX_4 1

#ifdef KERNEL
#include "sys/ioctl.h"
#else
#include <sys/ioctl.h>
#include "rci.h"
#endif

#if IRIX_4
#define RCIIOC_CONFIRM		_IO('R',1)
#define RCIIOC_INTR_ENABLE	_IOW('R',2,int)
#define RCIIOC_TIMER_ENABLE	_IOW('R',3,int)
#define RCIIOC_BEAT_REQ		_IOW('R',4,int)
#define RCIIOC_ALARM_REQ	_IOW('R',5,int)
#define RCIIOC_SET_INTRQ	_IOW('R',6,int)
#define RCIIOC_GET_INTRQ	_IOR('R',7,int*)
#define RCIIOC_SET_TIMERQ	_IOW('R',8,int)
#define RCIIOC_GET_TIMERQ	_IOR('R',9,int*)
#define RCIIOC_TIMER_SET	_IOW('R',10,int)
#define RCIIOC_TIMER_GET	_IOR('R',11,int*)
#define RCIIOC_SOFT_CLOSE	_IO('R',12)
#else
#define RCIIOC_CONFIRM		_IO(R,1)
#define RCIIOC_INTR_ENABLE	_IOW(R,2,int)
#define RCIIOC_TIMER_ENABLE	_IOW(R,3,int)
#define RCIIOC_BEAT_REQ		_IOW(R,4,int)
#define RCIIOC_ALARM_REQ	_IOW(R,5,int)
#define RCIIOC_SET_INTRQ	_IOW(R,6,int)
#define RCIIOC_GET_INTRQ	_IOR(R,7,int*)
#define RCIIOC_SET_TIMERQ	_IOW(R,8,int)
#define RCIIOC_GET_TIMERQ	_IOR(R,9,int*)
#define RCIIOC_TIMER_SET	_IOW(R,10,int)
#define RCIIOC_TIMER_GET	_IOR(R,11,int*)
#define RCIIOC_SOFT_CLOSE	_IO(R,12)
#endif

#undef IRIX_4 

#endif
