18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * SCLP "store data in absolute storage"
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * Copyright IBM Corp. 2003, 2013
68c2ecf20Sopenharmony_ci */
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ci#ifndef SCLP_SDIAS_H
98c2ecf20Sopenharmony_ci#define SCLP_SDIAS_H
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci#include "sclp.h"
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ci#define SDIAS_EQ_STORE_DATA		0x0
148c2ecf20Sopenharmony_ci#define SDIAS_EQ_SIZE			0x1
158c2ecf20Sopenharmony_ci#define SDIAS_DI_FCP_DUMP		0x0
168c2ecf20Sopenharmony_ci#define SDIAS_ASA_SIZE_32		0x0
178c2ecf20Sopenharmony_ci#define SDIAS_ASA_SIZE_64		0x1
188c2ecf20Sopenharmony_ci#define SDIAS_EVSTATE_ALL_STORED	0x0
198c2ecf20Sopenharmony_ci#define SDIAS_EVSTATE_NO_DATA		0x3
208c2ecf20Sopenharmony_ci#define SDIAS_EVSTATE_PART_STORED	0x10
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_cistruct sdias_evbuf {
238c2ecf20Sopenharmony_ci	struct	evbuf_header hdr;
248c2ecf20Sopenharmony_ci	u8	event_qual;
258c2ecf20Sopenharmony_ci	u8	data_id;
268c2ecf20Sopenharmony_ci	u64	reserved2;
278c2ecf20Sopenharmony_ci	u32	event_id;
288c2ecf20Sopenharmony_ci	u16	reserved3;
298c2ecf20Sopenharmony_ci	u8	asa_size;
308c2ecf20Sopenharmony_ci	u8	event_status;
318c2ecf20Sopenharmony_ci	u32	reserved4;
328c2ecf20Sopenharmony_ci	u32	blk_cnt;
338c2ecf20Sopenharmony_ci	u64	asa;
348c2ecf20Sopenharmony_ci	u32	reserved5;
358c2ecf20Sopenharmony_ci	u32	fbn;
368c2ecf20Sopenharmony_ci	u32	reserved6;
378c2ecf20Sopenharmony_ci	u32	lbn;
388c2ecf20Sopenharmony_ci	u16	reserved7;
398c2ecf20Sopenharmony_ci	u16	dbs;
408c2ecf20Sopenharmony_ci} __packed;
418c2ecf20Sopenharmony_ci
428c2ecf20Sopenharmony_cistruct sdias_sccb {
438c2ecf20Sopenharmony_ci	struct sccb_header	hdr;
448c2ecf20Sopenharmony_ci	struct sdias_evbuf	evbuf;
458c2ecf20Sopenharmony_ci} __packed;
468c2ecf20Sopenharmony_ci
478c2ecf20Sopenharmony_ci#endif /* SCLP_SDIAS_H */
48