1 #ifndef _LINUX_MISCDEVICE_H
2 #define _LINUX_MISCDEVICE_H
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 APOLLO_MOUSE_MINOR 7
12 #define PC110PAD_MINOR 9
13 #define ADB_MOUSE_MINOR 10
14 #define WATCHDOG_MINOR 130 /* Watchdog timer */
15 #define TEMP_MINOR 131 /* Temperature Sensor */
17 #define SUN_OPENPROM_MINOR 139
18 #define NVRAM_MINOR 144
20 #define MISC_DYNAMIC_MINOR 255
22 #define SGI_GRAPHICS_MINOR 146
23 #define SGI_OPENGL_MINOR 147
24 #define SGI_GFX_MINOR 148
25 #define SGI_STREAMS_MOUSE 149
26 #define SGI_STREAMS_KEYBOARD 150
27 /* drivers/sgi/char/usema.c */
28 #define SGI_USEMACLONE 151
30 extern int misc_init(void);
36 struct file_operations
*fops
;
37 struct miscdevice
* next
, * prev
;
40 extern int misc_register(struct miscdevice
* misc
);
41 extern int misc_deregister(struct miscdevice
* misc
);