OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [drivers/] [s390/] [block/] [dasd_9336_erp.c] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1275 phoenix
/*
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
#include <asm/ccwcache.h>
9
#include "dasd_int.h"
10
#include "dasd_9336_erp.h"
11
 
12
#ifdef PRINTK_HEADER
13
#undef PRINTK_HEADER
14
#define PRINTK_HEADER "dasd_erp(9336)"
15
#endif                          /* PRINTK_HEADER */
16
 
17
/*
18
 * DASD_9336_ERP_EXAMINE
19
 *
20
 * DESCRIPTION
21
 *   Checks only for fatal/no/recover error.
22
 *   A detailed examination of the sense data is done later outside
23
 *   the interrupt handler.
24
 *
25
 *   The logic is based on the 'IBM 3880 Storage Control Reference' manual
26
 *   'Chapter 7. 9336 Sense Data'.
27
 *
28
 * RETURN VALUES
29
 *   dasd_era_none      no error
30
 *   dasd_era_fatal     for all fatal (unrecoverable errors)
31
 *   dasd_era_recover   for all others.
32
 */
33
dasd_era_t dasd_9336_erp_examine (ccw_req_t * cqr, devstat_t * stat)
34
{
35
        /* check for successful execution first */
36
        if (stat->cstat == 0x00 &&
37
            stat->dstat == (DEV_STAT_CHN_END | DEV_STAT_DEV_END))
38
                    return dasd_era_none;
39
 
40
        /* examine the 24 byte sense data */
41
        return dasd_era_recover;
42
 
43
}                               /* END dasd_9336_erp_examine */
44
 
45
/*
46
 * Overrides for Emacs so that we follow Linus's tabbing style.
47
 * Emacs will notice this stuff at the end of the file and automatically
48
 * adjust the settings for this buffer only.  This must remain at the end
49
 * of the file.
50
 * ---------------------------------------------------------------------------
51
 * Local variables:
52
 * c-indent-level: 4
53
 * c-brace-imaginary-offset: 0
54
 * c-brace-offset: -4
55
 * c-argdecl-indent: 4
56
 * c-label-offset: -4
57
 * c-continued-statement-offset: 4
58
 * c-continued-brace-offset: 0
59
 * indent-tabs-mode: nil
60
 * tab-width: 8
61
 * End:
62
 */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.