| 1 | /* |
| 2 | * File...........: linux/drivers/s390/block/dasd_3990_erp.c |
| 3 | * Author(s)......: Horst Hummel <Horst.Hummel@de.ibm.com> |
| 4 | * Holger Smolinski <Holger.Smolinski@de.ibm.com> |
| 5 | * Bugreports.to..: <Linux390@de.ibm.com> |
| 6 | * (C) IBM Corporation, IBM Deutschland Entwicklung GmbH, 2000, 2001 |
| 7 | * |
| 8 | */ |
| 9 | |
| 10 | #include <linux/timer.h> |
| 11 | #include <linux/slab.h> |
| 12 | #include <asm/idals.h> |
| 13 | #include <asm/todclk.h> |
| 14 | |
| 15 | #define PRINTK_HEADER "dasd_erp(3990): " |
| 16 | |
| 17 | #include "dasd_int.h" |
| 18 | #include "dasd_eckd.h" |
| 19 | |
| 20 | |
| 21 | struct DCTL_data { |
| 22 | unsigned char subcommand; /* e.g Inhibit Write, Enable Write,... */ |
| 23 | unsigned char modifier; /* Subcommand modifier */ |
| 24 | unsigned short res; /* reserved */ |
| 25 | } __attribute__ ((packed)); |
| 26 | |
| 27 | /* |
| 28 | ***************************************************************************** |
| 29 | * SECTION ERP EXAMINATION |
| 30 | ***************************************************************************** |
| 31 | */ |
| 32 | |
| 33 | /* |
| 34 | * DASD_3990_ERP_EXAMINE_24 |
| 35 | * |
| 36 | * DESCRIPTION |
| 37 | * Checks only for fatal (unrecoverable) error. |
| 38 | * A detailed examination of the sense data is done later outside |
| 39 | * the interrupt handler. |
| 40 | * |
| 41 | * Each bit configuration leading to an action code 2 (Exit with |
| 42 | * programming error or unusual condition indication) |