7 #include <linux/kernel.h>
8 #include <linux/module.h>
10 #include <linux/errno.h>
15 #include <linux/slab.h>
20 #include <asm/uaccess.h>
26 #define DRIVER_NAME "d7s"
27 #define PFX DRIVER_NAME ": "
30 static int sol_compat = 0;
48 "Disables documented functionality omitted from Solaris driver");
82 static int d7s_release(
struct inode *inode,
struct file *f)
103 static long d7s_ioctl(
struct file *
file,
unsigned int cmd,
unsigned long arg)
119 if (
get_user(ireg, (
int __user *) arg)) {
139 if (
put_user(regs, (
int __user *) arg)) {
161 .unlocked_ioctl = d7s_ioctl,
162 .compat_ioctl = d7s_ioctl,
164 .release = d7s_release,
219 op->
dev.of_node->full_name,
220 (regs &
D7S_FLIP) ?
" (FLIPPED)" :
"",
222 sol_compat ?
"in sol_compat mode" :
"");
262 .name =
"display7seg",
272 .of_match_table = d7s_match,