blob: 457960ac1eae111c6512913e8c366406a170bc16 [file] [log] [blame]
The Android Open Source Project1dc9e472009-03-03 19:28:35 -08001/****************************************************************************
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>
Ben Cheng4b29af02012-03-07 16:14:53 -080016
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080017#define PSMOUSE_MINOR 1
18#define MS_BUSMOUSE_MINOR 2
19#define ATIXL_BUSMOUSE_MINOR 3
Ben Cheng4b29af02012-03-07 16:14:53 -080020
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080021#define ATARIMOUSE_MINOR 5
22#define SUN_MOUSE_MINOR 6
23#define APOLLO_MOUSE_MINOR 7
24#define PC110PAD_MINOR 9
Ben Cheng4b29af02012-03-07 16:14:53 -080025
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080026#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
Ben Cheng4b29af02012-03-07 16:14:53 -080040
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080041#define TUN_MINOR 200
42#define HPET_MINOR 228
Ben Cheng4b29af02012-03-07 16:14:53 -080043
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080044struct device;
45struct class_device;
Ben Cheng4b29af02012-03-07 16:14:53 -080046
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080047struct 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};
Ben Cheng4b29af02012-03-07 16:14:53 -080055
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080056#define MODULE_ALIAS_MISCDEV(minor) MODULE_ALIAS("char-major-" __stringify(MISC_MAJOR) "-" __stringify(minor))
57#endif