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

miscdevice.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define BUSMOUSE_MINOR   0
#define PSMOUSE_MINOR   1
#define MS_BUSMOUSE_MINOR   2
#define ATIXL_BUSMOUSE_MINOR   3
#define AMIGAMOUSE_MINOR   4
#define ATARIMOUSE_MINOR   5
#define SUN_MOUSE_MINOR   6
#define APOLLO_MOUSE_MINOR   7
#define PC110PAD_MINOR   9
#define MAC_MOUSE_MINOR   10
#define WATCHDOG_MINOR   130
#define TEMP_MINOR   131
#define RTC_MINOR   135
#define SUN_OPENPROM_MINOR   139
#define NVRAM_MINOR   144
#define I2O_MINOR   166
#define MICROCODE_MINOR   184
#define MISC_DYNAMIC_MINOR   255
#define SGI_GRAPHICS_MINOR   146
#define SGI_OPENGL_MINOR   147
#define SGI_GFX_MINOR   148
#define SGI_STREAMS_MOUSE   149
#define SGI_STREAMS_KEYBOARD   150
#define SGI_USEMACLONE   151

Functions

int misc_init (void)
int misc_register (struct miscdevice *misc)
int misc_deregister (struct miscdevice *misc)


Define Documentation

#define AMIGAMOUSE_MINOR   4
 

Definition at line 8 of file miscdevice.h.

#define APOLLO_MOUSE_MINOR   7
 

Definition at line 11 of file miscdevice.h.

#define ATARIMOUSE_MINOR   5
 

Definition at line 9 of file miscdevice.h.

#define ATIXL_BUSMOUSE_MINOR   3
 

Definition at line 7 of file miscdevice.h.

#define BUSMOUSE_MINOR   0
 

Definition at line 4 of file miscdevice.h.

#define I2O_MINOR   166
 

Definition at line 19 of file miscdevice.h.

#define MAC_MOUSE_MINOR   10
 

Definition at line 13 of file miscdevice.h.

#define MICROCODE_MINOR   184
 

Definition at line 20 of file miscdevice.h.

Referenced by microcode_init().

#define MISC_DYNAMIC_MINOR   255
 

Definition at line 21 of file miscdevice.h.

Referenced by irda_init(), and misc_register().

#define MS_BUSMOUSE_MINOR   2
 

Definition at line 6 of file miscdevice.h.

#define NVRAM_MINOR   144
 

Definition at line 18 of file miscdevice.h.

#define PC110PAD_MINOR   9
 

Definition at line 12 of file miscdevice.h.

#define PSMOUSE_MINOR   1
 

Definition at line 5 of file miscdevice.h.

#define RTC_MINOR   135
 

Definition at line 16 of file miscdevice.h.

#define SGI_GFX_MINOR   148
 

Definition at line 25 of file miscdevice.h.

Referenced by streamable_init().

#define SGI_GRAPHICS_MINOR   146
 

Definition at line 23 of file miscdevice.h.

#define SGI_OPENGL_MINOR   147
 

Definition at line 24 of file miscdevice.h.

#define SGI_STREAMS_KEYBOARD   150
 

Definition at line 27 of file miscdevice.h.

Referenced by streamable_init().

#define SGI_STREAMS_MOUSE   149
 

Definition at line 26 of file miscdevice.h.

#define SGI_USEMACLONE   151
 

Definition at line 29 of file miscdevice.h.

Referenced by usema_init().

#define SUN_MOUSE_MINOR   6
 

Definition at line 10 of file miscdevice.h.

#define SUN_OPENPROM_MINOR   139
 

Definition at line 17 of file miscdevice.h.

#define TEMP_MINOR   131
 

Definition at line 15 of file miscdevice.h.

Referenced by pcwd_open(), pcwd_read(), wdt_open(), wdt_read(), wdtpci_open(), and wdtpci_read().

#define WATCHDOG_MINOR   130
 

Definition at line 14 of file miscdevice.h.

Referenced by acq_close(), acq_open(), advwdt_close(), advwdt_open(), fop_close(), fop_open(), pcwd_close(), pcwd_open(), wdt_open(), wdt_release(), wdtpci_open(), wdtpci_release(), zf_close(), zf_init(), and zf_open().


Function Documentation

int misc_deregister struct miscdevice misc  ) 
 

Definition at line 174 of file drivers/char/misc.c.

References EINVAL, i, misc_minors, and NULL.

Referenced by __initfunc(), agp_frontend_cleanup(), cleanup_module(), ffb_cleanup(), gamma_cleanup(), i2o_config_init(), i810_cleanup(), i810_init(), init_module(), mga_cleanup(), mga_init(), r128_cleanup(), r128_init(), rng_cleanup(), rng_init_one(), sx_init(), tdfx_cleanup(), tdfx_init(), watchdog_cleanup(), zf_exit(), and zf_init().

int misc_init void   ) 
 

Definition at line 194 of file drivers/char/misc.c.

References acq_init(), adb_mouse_init(), advwdt_init(), amiga_mouse_init(), atari_mouse_init(), atixl_busmouse_init(), bus_mouse_init(), create_proc_entry(), dsp56k_init(), dtlk_init(), EIO, h8_init(), hfmodem_init(), misc_fops, MISC_MAJOR, misc_read_proc(), ms_bus_mouse_init(), nvram_init(), pc110pad_init(), pcwatchdog_init(), pmu_device_init(), printk, qpmouse_init(), radio_init(), proc_dir_entry::read_proc, register_chrdev(), rtc_DP8570A_init(), rtc_init(), rtc_MK48T08_init(), sbc60xxwdt_init(), streamable_init(), sun_mouse_init(), tosh_init(), watchdog_init(), and wdt_init().

Referenced by __initfunc().

Here is the call graph for this function:

int misc_register struct miscdevice misc  ) 
 

Definition at line 139 of file drivers/char/misc.c.

References c, DYNAMIC_MINORS, EBUSY, i, miscdevice::minor, MISC_DYNAMIC_MINOR, misc_minors, miscdevice::next, and miscdevice::prev.

Referenced by __initfunc(), advwdt_init(), agp_frontend_initialize(), apm_init(), ffb_init_one(), gamma_init(), h8_init(), i2o_config_init(), i810_init(), init_module(), irda_init(), mga_init(), microcode_init(), pc110pad_init(), qpmouse_init(), r128_init(), rio_init(), rng_init_one(), streamable_init(), sx_init(), tdfx_init(), usema_init(), watchdog_init(), wd_inittimer(), and zf_init().