Add copyright
[unix-history] / usr / src / sys / vax / uba / rxreg.h
index bd253f8..e007d75 100644 (file)
@@ -1,4 +1,16 @@
-/*     rxreg.h 4.5     83/04/12        */
+/*
+ * Copyright (c) 1982 Regents of the University of California.
+ * All rights reserved.  The Berkeley software License Agreement
+ * specifies the terms and conditions for redistribution.
+ *
+ *     @(#)rxreg.h     6.3 (Berkeley) %G%
+ */
+
+#ifdef KERNEL
+#include "ioctl.h"
+#else
+#include <sys/ioctl.h>
+#endif
 
 /*
  * RX02 registers
 
 /*
  * RX02 registers
@@ -56,12 +68,12 @@ RXES_DNER\4RXES_ACLO\3RXES_ID\1RXES_CRC"
 /* 
  * Ioctl commands, move to dkio.h later
  */
 /* 
  * Ioctl commands, move to dkio.h later
  */
-#define RXIOC_FORMAT   (('d'<<8)|1)    /* format the disk */
-#define RXIOC_WDDS     (('d'<<8)|2)    /* write `deleted data' mark */
+#define RXIOC_FORMAT   _IOW(d, 1, int) /* format the disk */
+#define RXIOC_WDDS     _IOW(d, 2, int) /* write `deleted data' mark */
                                        /* on next sector */
                                        /* on next sector */
-#define RXIOC_RDDSMK   (('d'<<8)|3)    /* did last read sector contain */
+#define RXIOC_RDDSMK   _IOR(d, 3, int) /* did last read sector contain */
                                        /* `deleted data'?*/
                                        /* `deleted data'?*/
-#define        RXIOC_GDENS     (('d'<<8)|4)    /* return density of current disk */
+#define        RXIOC_GDENS     _IOR(d, 4, int) /* return density of current disk */
 
 #ifdef RXDEFERR
 /*
 
 #ifdef RXDEFERR
 /*