Lines Matching +full:enable +full:- +full:soft +full:- +full:reset
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * HP PARISC soft power switch driver
5 * Copyright (c) 2001-2023 Helge Deller <deller@gmx.de>
8 * Support of the soft power switch button may be enabled or disabled at
82 /* filename in /proc which can be used to enable/disable the power switch */
85 /* soft power switch enabled/disabled */
90 .procname = "soft-power",
122 * Non-Gecko-style machines: in kpowerswd()
134 * Warning: Some machines never reset the DIAG flag, even if in kpowerswd()
174 * be executed any longer. This function then re-enables
175 * the soft-power switch and allows the user to switch off
183 /* re-enable the soft-power switch */ in parisc_panic_event()
193 /* qemu soft power-off function */
197 gsc_writel(0, (unsigned long) data->cb_data); in qemu_power_off()
212 /* enable the soft power switch if possible */ in power_init()
217 soft_power_reg = -1UL; in power_init()
220 case 0: printk(KERN_INFO DRIVER_NAME ": Gecko-style soft power switch enabled.\n"); in power_init()
223 case -1UL: printk(KERN_INFO DRIVER_NAME ": Soft power switch support not available.\n"); in power_init()
224 return -ENODEV; in power_init()
226 default: printk(KERN_INFO DRIVER_NAME ": Soft power switch at 0x%08lx enabled.\n", in power_init()
240 return -EIO; in power_init()
265 MODULE_DESCRIPTION("Soft power switch driver");