aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/miscdevice.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /include/linux/miscdevice.h
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
Diffstat (limited to 'include/linux/miscdevice.h')
-rw-r--r--include/linux/miscdevice.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/include/linux/miscdevice.h b/include/linux/miscdevice.h
new file mode 100644
index 000000000000..14ceebfc1efa
--- /dev/null
+++ b/include/linux/miscdevice.h
@@ -0,0 +1,52 @@
1#ifndef _LINUX_MISCDEVICE_H
2#define _LINUX_MISCDEVICE_H
3#include <linux/module.h>
4#include <linux/major.h>
5
6#define PSMOUSE_MINOR 1
7#define MS_BUSMOUSE_MINOR 2
8#define ATIXL_BUSMOUSE_MINOR 3
9/*#define AMIGAMOUSE_MINOR 4 FIXME OBSOLETE */
10#define ATARIMOUSE_MINOR 5
11#define SUN_MOUSE_MINOR 6
12#define APOLLO_MOUSE_MINOR 7
13#define PC110PAD_MINOR 9
14/*#define ADB_MOUSE_MINOR 10 FIXME OBSOLETE */
15#define WATCHDOG_MINOR 130 /* Watchdog timer */
16#define TEMP_MINOR 131 /* Temperature Sensor */
17#define RTC_MINOR 135
18#define EFI_RTC_MINOR 136 /* EFI Time services */
19#define SUN_OPENPROM_MINOR 139
20#define DMAPI_MINOR 140 /* DMAPI */
21#define NVRAM_MINOR 144
22#define SGI_MMTIMER 153
23#define STORE_QUEUE_MINOR 155
24#define I2O_MINOR 166
25#define MICROCODE_MINOR 184
26#define MWAVE_MINOR 219 /* ACP/Mwave Modem */
27#define MPT_MINOR 220
28#define MISC_DYNAMIC_MINOR 255
29
30#define TUN_MINOR 200
31#define HPET_MINOR 228
32
33struct device;
34struct class_device;
35
36struct miscdevice {
37 int minor;
38 const char *name;
39 struct file_operations *fops;
40 struct list_head list;
41 struct device *dev;
42 struct class_device *class;
43 char devfs_name[64];
44};
45
46extern int misc_register(struct miscdevice * misc);
47extern int misc_deregister(struct miscdevice * misc);
48
49#define MODULE_ALIAS_MISCDEV(minor) \
50 MODULE_ALIAS("char-major-" __stringify(MISC_MAJOR) \
51 "-" __stringify(minor))
52#endif