Linux 5.1.15
[linux/fpc-iii.git] / drivers / s390 / char / sclp_sdias.h
blobbc36cf881010ed8925290f52f3d270d9dbc0a4b7
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * SCLP "store data in absolute storage"
5 * Copyright IBM Corp. 2003, 2013
6 */
8 #ifndef SCLP_SDIAS_H
9 #define SCLP_SDIAS_H
11 #include "sclp.h"
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
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;
42 struct sdias_sccb {
43 struct sccb_header hdr;
44 struct sdias_evbuf evbuf;
45 } __packed;
47 #endif /* SCLP_SDIAS_H */