1 #ifndef _LINUX_MISCDEVICE_H 2 #define _LINUX_MISCDEVICE_H 3 4 #define BUSMOUSE_MINOR 0 5 #define PSMOUSE_MINOR 1 6 #define MS_BUSMOUSE_MINOR 2 7 #define ATIXL_BUSMOUSE_MINOR 3 8 #define AMIGAMOUSE_MINOR 4 9 #define ATARIMOUSE_MINOR 5 10 #define SUN_MOUSE_MINOR 6 11 #define MISC_DYNAMIC_MINOR 255 12 13 extern int misc_init(void); 14 15 struct miscdevice 16 { 17 int minor; 18 const char *name; 19 struct file_operations *fops; 20 struct miscdevice * next, * prev; 21 }; 22 23 extern int misc_register(struct miscdevice * misc); 24 extern int misc_deregister(struct miscdevice * misc); 25 26 #endif