apc.c (2e483528cebad089d0bb3f9aebb0ada22d968ffa) apc.c (6cb79b3f3ba2b14590cac02ee13ab7410b6225ed)
1/* apc - Driver implementation for power management functions
2 * of Aurora Personality Chip (APC) on SPARCstation-4/5 and
3 * derivatives.
4 *
5 * Copyright (c) 2002 Eric Brower (ebrower@usa.net)
6 */
7
8#include <linux/kernel.h>

--- 109 unchanged lines hidden (view full) ---

118 case APCIOCSBPORT:
119 if (get_user(inarg, arg))
120 return -EFAULT;
121 apc_writeb(inarg & APC_BPMASK, APC_BPORT_REG);
122 break;
123
124 default:
125 return -EINVAL;
1/* apc - Driver implementation for power management functions
2 * of Aurora Personality Chip (APC) on SPARCstation-4/5 and
3 * derivatives.
4 *
5 * Copyright (c) 2002 Eric Brower (ebrower@usa.net)
6 */
7
8#include <linux/kernel.h>

--- 109 unchanged lines hidden (view full) ---

118 case APCIOCSBPORT:
119 if (get_user(inarg, arg))
120 return -EFAULT;
121 apc_writeb(inarg & APC_BPMASK, APC_BPORT_REG);
122 break;
123
124 default:
125 return -EINVAL;
126 };
126 }
127
128 return 0;
129}
130
131static const struct file_operations apc_fops = {
132 .unlocked_ioctl = apc_ioctl,
133 .open = apc_open,
134 .release = apc_release,

--- 60 unchanged lines hidden ---
127
128 return 0;
129}
130
131static const struct file_operations apc_fops = {
132 .unlocked_ioctl = apc_ioctl,
133 .open = apc_open,
134 .release = apc_release,

--- 60 unchanged lines hidden ---