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>
43 * pdc_chassis_setup() - Enable/disable pdc_chassis code at boot time.
58 * pdc_chassis_checkold() - Checks for old PDC_CHASSIS compatibility
82 * pdc_chassis_panic_event() - Called by the panic handler.
84 * @event: unused
91 unsigned long event, void *ptr) in pdc_chassis_panic_event() argument
105 * pdc_chassis_reboot_event() - Called by the reboot handler.
107 * @event: unused
114 unsigned long event, void *ptr) in pdc_chassis_reboot_event() argument
129 * parisc_pdc_chassis_init() - Called at boot time.
139 printk(KERN_INFO "Enabling %s chassis codes support v%s\n", in parisc_pdc_chassis_init()
155 * pdc_chassis_send_status() - Sends a predefined message to the chassis,
162 * returns 0 if no error, -1 if no supported PDC is present or invalid message,
165 * For a list of predefined messages, see asm-parisc/pdc_chassis.h
205 retval = -1; in pdc_chassis_send_status()
207 } else retval = -1; in pdc_chassis_send_status()
233 retval = -1; in pdc_chassis_send_status()
235 } else retval = -1; in pdc_chassis_send_status()
240 if (retval != -1 && IS_ENABLED(CONFIG_CHASSIS_LCD_LED)) in pdc_chassis_send_status()
255 return -EIO; in pdc_chassis_warn_show()