diff options
Diffstat (limited to 'drivers/char/nsc_gpio.c')
-rw-r--r-- | drivers/char/nsc_gpio.c | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/drivers/char/nsc_gpio.c b/drivers/char/nsc_gpio.c new file mode 100644 index 000000000000..42d95904967c --- /dev/null +++ b/drivers/char/nsc_gpio.c | |||
@@ -0,0 +1,45 @@ | |||
1 | /* linux/drivers/char/nsc_gpio.c | ||
2 | |||
3 | National Semiconductor common GPIO device-file/VFS methods. | ||
4 | Allows a user space process to control the GPIO pins. | ||
5 | |||
6 | Copyright (c) 2001,2002 Christer Weinigel <wingel@nano-system.com> | ||
7 | Copyright (c) 2005 Jim Cromie <jim.cromie@gmail.com> | ||
8 | */ | ||
9 | |||
10 | #include <linux/config.h> | ||
11 | #include <linux/fs.h> | ||
12 | #include <linux/module.h> | ||
13 | #include <linux/errno.h> | ||
14 | #include <linux/kernel.h> | ||
15 | #include <linux/init.h> | ||
16 | #include <linux/nsc_gpio.h> | ||
17 | #include <asm/uaccess.h> | ||
18 | #include <asm/io.h> | ||
19 | |||
20 | #define NAME "nsc_gpio" | ||
21 | |||
22 | MODULE_AUTHOR("Jim Cromie <jim.cromie@gmail.com>"); | ||
23 | MODULE_DESCRIPTION("NatSemi GPIO Common Methods"); | ||
24 | MODULE_LICENSE("GPL"); | ||
25 | |||
26 | static int __init nsc_gpio_init(void) | ||
27 | { | ||
28 | printk(KERN_DEBUG NAME " initializing\n"); | ||
29 | return 0; | ||
30 | } | ||
31 | |||
32 | static void __exit nsc_gpio_cleanup(void) | ||
33 | { | ||
34 | printk(KERN_DEBUG NAME " cleanup\n"); | ||
35 | } | ||
36 | |||
37 | /* prepare for | ||
38 | common routines for both scx200_gpio and pc87360_gpio | ||
39 | EXPORT_SYMBOL(scx200_gpio_write); | ||
40 | EXPORT_SYMBOL(scx200_gpio_read); | ||
41 | EXPORT_SYMBOL(scx200_gpio_release); | ||
42 | */ | ||
43 | |||
44 | module_init(nsc_gpio_init); | ||
45 | module_exit(nsc_gpio_cleanup); | ||