Linux-libre 5.3.12-gnu
[librecmc/linux-libre.git] / drivers / s390 / char / sclp_sdias.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * SCLP "store data in absolute storage"
4  *
5  * Copyright IBM Corp. 2003, 2013
6  */
7
8 #ifndef SCLP_SDIAS_H
9 #define SCLP_SDIAS_H
10
11 #include "sclp.h"
12
13 #define SDIAS_EQ_STORE_DATA             0x0
14 #define SDIAS_EQ_SIZE                   0x1
15 #define SDIAS_DI_FCP_DUMP               0x0
16 #define SDIAS_ASA_SIZE_32               0x0
17 #define SDIAS_ASA_SIZE_64               0x1
18 #define SDIAS_EVSTATE_ALL_STORED        0x0
19 #define SDIAS_EVSTATE_NO_DATA           0x3
20 #define SDIAS_EVSTATE_PART_STORED       0x10
21
22 struct sdias_evbuf {
23         struct  evbuf_header hdr;
24         u8      event_qual;
25         u8      data_id;
26         u64     reserved2;
27         u32     event_id;
28         u16     reserved3;
29         u8      asa_size;
30         u8      event_status;
31         u32     reserved4;
32         u32     blk_cnt;
33         u64     asa;
34         u32     reserved5;
35         u32     fbn;
36         u32     reserved6;
37         u32     lbn;
38         u16     reserved7;
39         u16     dbs;
40 } __packed;
41
42 struct sdias_sccb {
43         struct sccb_header      hdr;
44         struct sdias_evbuf      evbuf;
45 } __packed;
46
47 #endif /* SCLP_SDIAS_H */