/** * pdc_chassis_checkold() - Checks for old PDC_CHASSIS compatibility * * Currently, only E class and A180 are known to work with this. * Inspired by Christoph Plattner
*/ #if 0 staticvoid __init pdc_chassis_checkold(void)
{ switch(CPU_HVERSION) { case 0x480: /* E25 */ case 0x481: /* E35 */ case 0x482: /* E45 */ case 0x483: /* E55 */ case 0x516: /* A180 */ break;
/** * pdc_chassis_panic_event() - Called by the panic handler. * @this: unused * @event: unused * @ptr: unused * * As soon as a panic occurs, we should inform the PDC.
*/
/** * pdc_chassis_reboot_event() - Called by the reboot handler. * @this: unused * @event: unused * @ptr: unused * * As soon as a reboot occurs, we should inform the PDC.
*/
/* Let see if we have something to handle... */
printk(KERN_INFO "Enabling %s chassis codes support v%s\n",
is_pdc_pat() ? "PDC_PAT" : "regular",
PDC_CHASSIS_VER);
/** * pdc_chassis_send_status() - Sends a predefined message to the chassis, * and changes the front panel LEDs according to the new system state * @message: Type of message, one of PDC_CHASSIS_DIRECT_* values. * * Only machines with 64 bits PDC PAT and those reported in * pdc_chassis_checkold() are supported atm. * * returns 0 if no error, -1 if no supported PDC is present or invalid message, * else returns the appropriate PDC error code. * * For a list of predefined messages, see asm-parisc/pdc_chassis.h
*/
int pdc_chassis_send_status(int message)
{ /* Maybe we should do that in an other way ? */ int retval = 0; #ifdef CONFIG_PDC_CHASSIS if (likely(pdc_chassis_enabled)) {
staticint __init pdc_chassis_create_procfs(void)
{ unsignedlong test; int ret;
ret = pdc_chassis_warn(&test); if ((ret == PDC_BAD_PROC) || (ret == PDC_BAD_OPTION)) { /* seems that some boxes (eg L1000) do not implement this */
printk(KERN_INFO "Chassis warnings not supported.\n"); return 0;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.