aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/phonedev.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/phonedev.h')
-rw-r--r--include/linux/phonedev.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/include/linux/phonedev.h b/include/linux/phonedev.h
new file mode 100644
index 000000000000..d54049eed0c3
--- /dev/null
+++ b/include/linux/phonedev.h
@@ -0,0 +1,26 @@
1#ifndef __LINUX_PHONEDEV_H
2#define __LINUX_PHONEDEV_H
3
4#include <linux/types.h>
5#include <linux/version.h>
6
7#ifdef __KERNEL__
8
9#include <linux/poll.h>
10
11struct phone_device {
12 struct phone_device *next;
13 struct file_operations *f_op;
14 int (*open) (struct phone_device *, struct file *);
15 int board; /* Device private index */
16 int minor;
17};
18
19extern int phonedev_init(void);
20#define PHONE_MAJOR 100
21extern int phone_register_device(struct phone_device *, int unit);
22#define PHONE_UNIT_ANY -1
23extern void phone_unregister_device(struct phone_device *);
24
25#endif
26#endif