1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright IBM Corp. 2013
4 * Author(s): Ralf Hoppe (rhoppe@de.ibm.com)
10 #include <linux/types.h>
12 /* return codes for Diagnostic Test FTP Service, as indicated in member
13 * sclp_diag_ftp::ldflg
15 #define SCLP_DIAG_FTP_OK 0x80U /* success */
16 #define SCLP_DIAG_FTP_LDFAIL 0x01U /* load failed */
17 #define SCLP_DIAG_FTP_LDNPERM 0x02U /* not allowed */
18 #define SCLP_DIAG_FTP_LDRUNS 0x03U /* LD runs */
19 #define SCLP_DIAG_FTP_LDNRUNS 0x04U /* LD does not run */
21 #define SCLP_DIAG_FTP_XPCX 0x80 /* PCX communication code */
22 #define SCLP_DIAG_FTP_ROUTE 4 /* routing code for new FTP service */
25 * length of Diagnostic Test FTP Service event buffer
27 #define SCLP_DIAG_FTP_EVBUF_LEN \
28 (offsetof(struct sclp_diag_evbuf, mdd) + \
29 sizeof(struct sclp_diag_ftp))
32 * struct sclp_diag_ftp - Diagnostic Test FTP Service model-dependent data
33 * @pcx: code for PCX communication (should be 0x80)
34 * @ldflg: load flag (see defines above)
36 * @pgsize: page size (0 = 4kB, 1 = large page size)
37 * @srcflg: source flag
38 * @spare: reserved (zeroes)
39 * @offset: file offset
41 * @length: buffer size resp. bytes transferred
42 * @failaddr: failing address
43 * @bufaddr: buffer address, virtual
44 * @asce: region or segment table designation
45 * @fident: file name (ASCII, zero-terminated)
47 struct sclp_diag_ftp
{
65 * struct sclp_diag_evbuf - Diagnostic Test (ET7) Event Buffer
66 * @hdr: event buffer header
67 * @route: diagnostic route
68 * @mdd: model-dependent data (@route dependent)
70 struct sclp_diag_evbuf
{
71 struct evbuf_header hdr
;
75 struct sclp_diag_ftp ftp
;
80 * struct sclp_diag_sccb - Diagnostic Test (ET7) SCCB
82 * @evbuf: event buffer
84 struct sclp_diag_sccb
{
86 struct sccb_header hdr
;
87 struct sclp_diag_evbuf evbuf
;
90 #endif /* _SCLP_DIAG_H */