apc.c (f2e5d078f7f02d4289db31f5f63e23e39914075e) apc.c (d472ba840d622e48f5c94369263ef3af18ab64f8)
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>

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

15#include <linux/of_device.h>
16#include <linux/module.h>
17
18#include <asm/io.h>
19#include <asm/oplib.h>
20#include <asm/uaccess.h>
21#include <asm/auxio.h>
22#include <asm/apc.h>
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>

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

15#include <linux/of_device.h>
16#include <linux/module.h>
17
18#include <asm/io.h>
19#include <asm/oplib.h>
20#include <asm/uaccess.h>
21#include <asm/auxio.h>
22#include <asm/apc.h>
23#include <asm/processor.h>
23
24/* Debugging
25 *
26 * #define APC_DEBUG_LED
27 */
28
29#define APC_MINOR MISC_DYNAMIC_MINOR
30#define APC_OBPNAME "power-management"

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

153 if (err) {
154 printk(KERN_ERR "%s: unable to register device\n", APC_DEVNAME);
155 apc_free(op);
156 return -ENODEV;
157 }
158
159 /* Assign power management IDLE handler */
160 if (!apc_no_idle)
24
25/* Debugging
26 *
27 * #define APC_DEBUG_LED
28 */
29
30#define APC_MINOR MISC_DYNAMIC_MINOR
31#define APC_OBPNAME "power-management"

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

154 if (err) {
155 printk(KERN_ERR "%s: unable to register device\n", APC_DEVNAME);
156 apc_free(op);
157 return -ENODEV;
158 }
159
160 /* Assign power management IDLE handler */
161 if (!apc_no_idle)
161 pm_idle = apc_swift_idle;
162 sparc_idle = apc_swift_idle;
162
163 printk(KERN_INFO "%s: power management initialized%s\n",
164 APC_DEVNAME, apc_no_idle ? " (CPU idle disabled)" : "");
165
166 return 0;
167}
168
169static struct of_device_id apc_match[] = {

--- 26 unchanged lines hidden ---
163
164 printk(KERN_INFO "%s: power management initialized%s\n",
165 APC_DEVNAME, apc_no_idle ? " (CPU idle disabled)" : "");
166
167 return 0;
168}
169
170static struct of_device_id apc_match[] = {

--- 26 unchanged lines hidden ---