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/panic_notifier.h>
24 #include <linux/reboot.h>
25 #include <linux/notifier.h>
26 #include <linux/cache.h>
27 #include <linux/proc_fs.h>
28 #include <linux/seq_file.h>
42 * pdc_chassis_setup() - Enable/disable pdc_chassis code at boot time.
57 * pdc_chassis_checkold() - Checks for old PDC_CHASSIS compatibility
82 * pdc_chassis_panic_event() - Called by the panic handler.
88 unsigned long event, void *ptr) in pdc_chassis_panic_event() argument
102 * parisc_reboot_event() - Called by the reboot handler.
108 unsigned long event, void *ptr) in pdc_chassis_reboot_event() argument
123 * parisc_pdc_chassis_init() - Called at boot time.
133 printk(KERN_INFO "Enabling %s chassis codes support v%s\n", in parisc_pdc_chassis_init()
149 * pdc_chassis_send_status() - Sends a predefined message to the chassis,
156 * returns 0 if no error, -1 if no supported PDC is present or invalid message,
159 * For a list of predefined messages, see asm-parisc/pdc_chassis.h
199 retval = -1; in pdc_chassis_send_status()
201 } else retval = -1; in pdc_chassis_send_status()
227 retval = -1; in pdc_chassis_send_status()
229 } else retval = -1; in pdc_chassis_send_status()
244 return -EIO; in pdc_chassis_warn_show()