Main Page | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

miscdevice.h

Go to the documentation of this file.
00001 #ifndef _LINUX_MISCDEVICE_H
00002 #define _LINUX_MISCDEVICE_H
00003 
00004 #define BUSMOUSE_MINOR 0
00005 #define PSMOUSE_MINOR  1
00006 #define MS_BUSMOUSE_MINOR 2
00007 #define ATIXL_BUSMOUSE_MINOR 3
00008 #define AMIGAMOUSE_MINOR 4
00009 #define ATARIMOUSE_MINOR 5
00010 #define SUN_MOUSE_MINOR 6
00011 #define APOLLO_MOUSE_MINOR 7
00012 #define PC110PAD_MINOR 9
00013 #define MAC_MOUSE_MINOR 10
00014 #define WATCHDOG_MINOR          130     /* Watchdog timer     */
00015 #define TEMP_MINOR              131     /* Temperature Sensor */
00016 #define RTC_MINOR 135
00017 #define SUN_OPENPROM_MINOR 139
00018 #define NVRAM_MINOR 144
00019 #define I2O_MINOR 166
00020 #define MICROCODE_MINOR 184
00021 #define MISC_DYNAMIC_MINOR 255
00022 
00023 #define SGI_GRAPHICS_MINOR   146
00024 #define SGI_OPENGL_MINOR     147
00025 #define SGI_GFX_MINOR        148
00026 #define SGI_STREAMS_MOUSE    149
00027 #define SGI_STREAMS_KEYBOARD 150
00028 /* drivers/sgi/char/usema.c */
00029 #define SGI_USEMACLONE       151
00030 
00031 extern int misc_init(void);
00032 
00033 struct miscdevice 
00034 {
00035         int minor;
00036         const char *name;
00037         struct file_operations *fops;
00038         struct miscdevice * next, * prev;
00039 };
00040 
00041 extern int misc_register(struct miscdevice * misc);
00042 extern int misc_deregister(struct miscdevice * misc);
00043 
00044 #endif