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