dasd_9336_erp.c 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * File...........: linux/drivers/s390/block/dasd_9336_erp.c
  3. * Author(s)......: Holger Smolinski <Holger.Smolinski@de.ibm.com>
  4. * Bugreports.to..: <Linux390@de.ibm.com>
  5. * (C) IBM Corporation, IBM Deutschland Entwicklung GmbH, 2000
  6. *
  7. */
  8. #define PRINTK_HEADER "dasd_erp(9336)"
  9. #include "dasd_int.h"
  10. /*
  11. * DASD_9336_ERP_EXAMINE
  12. *
  13. * DESCRIPTION
  14. * Checks only for fatal/no/recover error.
  15. * A detailed examination of the sense data is done later outside
  16. * the interrupt handler.
  17. *
  18. * The logic is based on the 'IBM 3880 Storage Control Reference' manual
  19. * 'Chapter 7. 9336 Sense Data'.
  20. *
  21. * RETURN VALUES
  22. * dasd_era_none no error
  23. * dasd_era_fatal for all fatal (unrecoverable errors)
  24. * dasd_era_recover for all others.
  25. */
  26. dasd_era_t
  27. dasd_9336_erp_examine(struct dasd_ccw_req * cqr, struct irb * irb)
  28. {
  29. /* check for successful execution first */
  30. if (irb->scsw.cstat == 0x00 &&
  31. irb->scsw.dstat == (DEV_STAT_CHN_END | DEV_STAT_DEV_END))
  32. return dasd_era_none;
  33. /* examine the 24 byte sense data */
  34. return dasd_era_recover;
  35. } /* END dasd_9336_erp_examine */