OSDN Git Service

Check in released NDK version r4.
[android-x86/prebuilt.git] / ndk / android-ndk-r4 / linux / platforms / android-8 / arch-x86 / usr / include / linux / miscdevice.h
1 /****************************************************************************
2  ****************************************************************************
3  ***
4  ***   This header was automatically generated from a Linux kernel header
5  ***   of the same name, to make information necessary for userspace to
6  ***   call into the kernel available to libc.  It contains only constants,
7  ***   structures, and macros generated from the original header, and thus,
8  ***   contains no copyrightable information.
9  ***
10  ****************************************************************************
11  ****************************************************************************/
12 #ifndef _LINUX_MISCDEVICE_H
13 #define _LINUX_MISCDEVICE_H
14 #include <linux/module.h>
15 #include <linux/major.h>
16
17 #define PSMOUSE_MINOR 1
18 #define MS_BUSMOUSE_MINOR 2
19 #define ATIXL_BUSMOUSE_MINOR 3
20
21 #define ATARIMOUSE_MINOR 5
22 #define SUN_MOUSE_MINOR 6
23 #define APOLLO_MOUSE_MINOR 7
24 #define PC110PAD_MINOR 9
25
26 #define WATCHDOG_MINOR 130  
27 #define TEMP_MINOR 131  
28 #define RTC_MINOR 135
29 #define EFI_RTC_MINOR 136  
30 #define SUN_OPENPROM_MINOR 139
31 #define DMAPI_MINOR 140  
32 #define NVRAM_MINOR 144
33 #define SGI_MMTIMER 153
34 #define STORE_QUEUE_MINOR 155
35 #define I2O_MINOR 166
36 #define MICROCODE_MINOR 184
37 #define MWAVE_MINOR 219  
38 #define MPT_MINOR 220
39 #define MISC_DYNAMIC_MINOR 255
40
41 #define TUN_MINOR 200
42 #define HPET_MINOR 228
43
44 struct device;
45 struct class_device;
46
47 struct miscdevice {
48  int minor;
49  const char *name;
50  const struct file_operations *fops;
51  struct list_head list;
52  struct device *dev;
53  struct class_device *class;
54 };
55
56 #define MODULE_ALIAS_MISCDEV(minor)   MODULE_ALIAS("char-major-" __stringify(MISC_MAJOR)   "-" __stringify(minor))
57 #endif