patch-1.3.81 linux/include/linux/miscdevice.h
Next file: linux/include/linux/mouse.h
Previous file: linux/include/linux/major.h
Back to the patch index
Back to the overall index
-  Lines: 24
 -  Date:
Sat Mar 30 13:20:33 1996
 -  Orig file: 
v1.3.80/linux/include/linux/miscdevice.h
 -  Orig date: 
Thu Jan  1 02:00:00 1970
 
diff -u --recursive --new-file v1.3.80/linux/include/linux/miscdevice.h linux/include/linux/miscdevice.h
@@ -0,0 +1,23 @@
+#ifndef _LINUX_MISCDEVICE_H
+#define _LINUX_MISCDEVICE_H
+
+#define BUSMOUSE_MINOR 0
+#define PSMOUSE_MINOR  1
+#define MS_BUSMOUSE_MINOR 2
+#define ATIXL_BUSMOUSE_MINOR 3
+#define MISC_DYNAMIC_MINOR 255
+
+extern int misc_init(void);
+
+struct miscdevice 
+{
+	int minor;
+	const char *name;
+	struct file_operations *fops;
+	struct miscdevice * next, * prev;
+};
+
+extern int mouse_register(struct miscdevice * misc);
+extern int mouse_deregister(struct miscdevice * misc);
+
+#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