Lines Matching +full:linux +full:- +full:event +full:- +full:codes
1 // SPDX-License-Identifier: GPL-2.0-only
3 * interfaces to Chassis Codes via PDC (firmware)
6 * Copyright (C) 2002-2006 Thibaut VARENE <varenet@parisc-linux.org>
20 #include <linux/init.h>
21 #include <linux/module.h>
22 #include <linux/kernel.h>
23 #include <linux/reboot.h>
24 #include <linux/notifier.h>
25 #include <linux/cache.h>
26 #include <linux/proc_fs.h>
27 #include <linux/seq_file.h>
41 * pdc_chassis_setup() - Enable/disable pdc_chassis code at boot time.
56 * pdc_chassis_checkold() - Checks for old PDC_CHASSIS compatibility
81 * pdc_chassis_panic_event() - Called by the panic handler.
87 unsigned long event, void *ptr) in pdc_chassis_panic_event() argument
101 * parisc_reboot_event() - Called by the reboot handler.
107 unsigned long event, void *ptr) in pdc_chassis_reboot_event() argument
122 * parisc_pdc_chassis_init() - Called at boot time.
132 printk(KERN_INFO "Enabling %s chassis codes support v%s\n", in parisc_pdc_chassis_init()
148 * pdc_chassis_send_status() - Sends a predefined message to the chassis,
155 * returns 0 if no error, -1 if no supported PDC is present or invalid message,
158 * For a list of predefined messages, see asm-parisc/pdc_chassis.h
198 retval = -1; in pdc_chassis_send_status()
200 } else retval = -1; in pdc_chassis_send_status()
226 retval = -1; in pdc_chassis_send_status()
228 } else retval = -1; in pdc_chassis_send_status()
243 return -EIO; in pdc_chassis_warn_show()