patch-2.2.16 linux/drivers/s390/block/dasd_eckd_erp.c
Next file: linux/drivers/s390/block/dasd_erp.c
Previous file: linux/drivers/s390/block/dasd_eckd.c
Back to the patch index
Back to the overall index
- Lines: 30
- Date:
Wed Jun 7 14:26:43 2000
- Orig file:
v2.2.15/linux/drivers/s390/block/dasd_eckd_erp.c
- Orig date:
Wed Dec 31 16:00:00 1969
diff -urN v2.2.15/linux/drivers/s390/block/dasd_eckd_erp.c linux/drivers/s390/block/dasd_eckd_erp.c
@@ -0,0 +1,29 @@
+/*
+ * File...........: linux/drivers/s390/block/dasd_eckd_erp.h
+ * Author(s)......: Holger Smolinski <Holger.Smolinski@de.ibm.com>
+ * Bugreports.to..: <Linux390@de.ibm.com>
+ * (C) IBM Corporation, IBM Deutschland Entwicklung GmbH, 2000
+ */
+
+#include <linux/dasd.h>
+#include "dasd_erp.h"
+
+#define PRINTK_HEADER "dasd_erp(eckd)"
+
+dasd_era_t
+dasd_eckd_erp_examine (cqr_t * cqr, devstat_t * stat)
+{
+
+ if (stat->cstat == 0x00 &&
+ stat->dstat == (DEV_STAT_CHN_END | DEV_STAT_DEV_END))
+ return dasd_era_none;
+
+ switch (dasd_info[cqr->devindex]->info.sid_data.cu_model) {
+ case 0x3990:
+ return dasd_3990_erp_examine (cqr, stat);
+ case 0x9343:
+ return dasd_9343_erp_examine (cqr, stat);
+ default:
+ return dasd_era_recover;
+ }
+}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)