patch-1.3.45 linux/include/linux/cdk.h

Next file: linux/include/linux/fs.h
Previous file: linux/include/linux/blk.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.44/linux/include/linux/cdk.h linux/include/linux/cdk.h
@@ -461,12 +461,12 @@
  *	to the board. These include interrupting it, and initializeing
  *	the driver after board startup and shutdown.
  */
-#define	STLCMD		(((unsigned long) 's') << 8)
+#include <linux/ioctl.h>
 
-#define	STL_BINTR	(STLCMD | 20)
-#define	STL_BSTART	(STLCMD | 21)
-#define	STL_BSTOP	(STLCMD | 22)
-#define	STL_BRESET	(STLCMD | 23)
+#define	STL_BINTR	_IO('s',20)
+#define	STL_BSTART	_IO('s',21)
+#define	STL_BSTOP	_IO('s',22)
+#define	STL_BRESET	_IO('s',23)
 
 /*****************************************************************************/
 #endif

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this