2 * Author(s)......: Holger Smolinski <Holger.Smolinski@de.ibm.com>
3 * Based on.......: linux/drivers/s390/block/mdisk.h
4 * ...............: by Hartmunt Penner <hpenner@de.ibm.com>
5 * Bugreports.to..: <Linux390@de.ibm.com>
6 * Copyright IBM Corp. 1999, 2000
10 #define MDSK_WRITE_REQ 0x01
11 #define MDSK_READ_REQ 0x02
17 #define DEV_CLASS_FBA 0x01
18 #define DEV_CLASS_ECKD 0x04
20 #define DASD_DIAG_CODE_31BIT 0x03
21 #define DASD_DIAG_CODE_64BIT 0x07
23 #define DASD_DIAG_RWFLAG_ASYNC 0x02
24 #define DASD_DIAG_RWFLAG_NOCACHE 0x01
26 #define DASD_DIAG_FLAGA_FORMAT_64BIT 0x80
28 struct dasd_diag_characteristics
{
39 } __attribute__ ((packed
, aligned(4)));
41 #define DASD_DIAG_FLAGA_DEFAULT DASD_DIAG_FLAGA_FORMAT_64BIT
43 typedef u64 blocknum_t
;
44 typedef s64 sblocknum_t
;
46 struct dasd_diag_bio
{
51 blocknum_t block_number
;
53 } __attribute__ ((packed
, aligned(8)));
55 struct dasd_diag_init_io
{
62 sblocknum_t start_block
;
65 } __attribute__ ((packed
, aligned(8)));
67 struct dasd_diag_rw_io
{
78 struct dasd_diag_bio
*bio_list
;
80 } __attribute__ ((packed
, aligned(8)));