BSD 4_4 release
[unix-history] / usr / src / sys / tahoe / vba / drreg.h
index 47c8777..a787895 100644 (file)
@@ -1,4 +1,40 @@
-/*     drreg.h 1.1     86/07/20        */
+/*
+ * Copyright (c) 1988 The Regents of the University of California.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to Berkeley by
+ * Computer Consoles Inc.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ *    must display the following acknowledgement:
+ *     This product includes software developed by the University of
+ *     California, Berkeley and its contributors.
+ * 4. Neither the name of the University nor the names of its contributors
+ *    may be used to endorse or promote products derived from this software
+ *    without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ *
+ *     @(#)drreg.h     7.3 (Berkeley) 6/28/90
+ */
 
 /*
     ------------------------------------------
 
 /*
     ------------------------------------------
@@ -139,31 +175,31 @@ struct dr11io {
 /*
  *     Ioctl commands
 */
 /*
  *     Ioctl commands
 */
-#define DRWAIT         _IOWR(d,1,long)
-#define        DRPIOW          _IOWR(d,2,long)
-#define DRPACL         _IOWR(d,3,long)
-#define DRDACL         _IOWR(d,4,long)
-#define DRPCYL         _IOWR(d,5,long)
-#define DRDFCN                 _IOWR(d,6,long)
-#define DRRPER                 _IOWR(d,7,long)
-#define DRRATN         _IOWR(d,8,long)
-#define DRRDMA                 _IOWR(d,9,long)
-#define DRSFCN                 _IOWR(d,10,long)
-
-#define        DRSETRSTALL     _IOWR(d,13,long)
-#define        DRSETNORSTALL   _IOWR(d,14,long)
-#define        DRGETRSTALL     _IOWR(d,15,long)
-#define        DRSETRTIMEOUT   _IOWR(d,16,long)
-#define        DRGETRTIMEOUT   _IOWR(d,17,long)
-#define        DRSETWSTALL     _IOWR(d,18,long)
-#define        DRSETNOWSTALL   _IOWR(d,19,long)
-#define        DRGETWSTALL     _IOWR(d,20,long)
-#define        DRSETWTIMEOUT   _IOWR(d,21,long)
-#define        DRGETWTIMEOUT   _IOWR(d,22,long)
-#define        DRWRITEREADY    _IOWR(d,23,long)
-#define        DRREADREADY     _IOWR(d,24,long)
-#define        DRBUSY          _IOWR(d,25,long)
-#define        DRRESET         _IOWR(d,26,long)
+#define DRWAIT         _IOWR('d',1,long)
+#define        DRPIOW          _IOWR('d',2,long)
+#define DRPACL         _IOWR('d',3,long)
+#define DRDACL         _IOWR('d',4,long)
+#define DRPCYL         _IOWR('d',5,long)
+#define DRDFCN                 _IOWR('d',6,long)
+#define DRRPER                 _IOWR('d',7,long)
+#define DRRATN         _IOWR('d',8,long)
+#define DRRDMA                 _IOWR('d',9,long)
+#define DRSFCN                 _IOWR('d',10,long)
+
+#define        DRSETRSTALL     _IOWR('d',13,long)
+#define        DRSETNORSTALL   _IOWR('d',14,long)
+#define        DRGETRSTALL     _IOWR('d',15,long)
+#define        DRSETRTIMEOUT   _IOWR('d',16,long)
+#define        DRGETRTIMEOUT   _IOWR('d',17,long)
+#define        DRSETWSTALL     _IOWR('d',18,long)
+#define        DRSETNOWSTALL   _IOWR('d',19,long)
+#define        DRGETWSTALL     _IOWR('d',20,long)
+#define        DRSETWTIMEOUT   _IOWR('d',21,long)
+#define        DRGETWTIMEOUT   _IOWR('d',22,long)
+#define        DRWRITEREADY    _IOWR('d',23,long)
+#define        DRREADREADY     _IOWR('d',24,long)
+#define        DRBUSY          _IOWR('d',25,long)
+#define        DRRESET         _IOWR('d',26,long)
 
 /* The block size for buffering and DMA transfers. */
 /* OM_BLOCKSIZE must be even and <= 32768. Multiples of 512 are prefered. */
 
 /* The block size for buffering and DMA transfers. */
 /* OM_BLOCKSIZE must be even and <= 32768. Multiples of 512 are prefered. */
@@ -172,9 +208,9 @@ struct dr11io {
 
 /* --- Define ioctl call used by dr11 utility device --  */
 
 
 /* --- Define ioctl call used by dr11 utility device --  */
 
-#define DR11STAT       _IOWR(d,1,struct dr11io)   /* Get status dr11, unit 
+#define DR11STAT       _IOWR('d',30,struct dr11io)   /* Get status dr11, unit 
                                                   number is dr11io.arg[0] */
                                                   number is dr11io.arg[0] */
-#define DR11LOOP       _IOR(d,2,struct dr11io)   /* Perform loopback test */
+#define DR11LOOP       _IOR('d',31,struct dr11io)   /* Perform loopback test */
 
 /* ---------------------------------------------------- */
 
 
 /* ---------------------------------------------------- */