drivers/s390/char/sclp_diag.h

Source file repositories/reference/linux-study-clean/drivers/s390/char/sclp_diag.h

File Facts

System
Linux kernel
Corpus path
drivers/s390/char/sclp_diag.h
Extension
.h
Size
2140 bytes
Lines
91
Domain
Driver Families
Bucket
drivers/s390
Inferred role
Driver Families: implementation source
Status
source implementation candidate

Why This File Exists

Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.

Dependency Surface

Detected Declarations

Annotated Snippet

struct sclp_diag_ftp {
	u8 pcx;
	u8 ldflg;
	u8 cmd;
	u8 pgsize;
	u8 srcflg;
	u8 spare;
	u64 offset;
	u64 fsize;
	u64 length;
	u64 failaddr;
	u64 bufaddr;
	u64 asce;

	u8 fident[256];
} __packed;

/**
 * struct sclp_diag_evbuf - Diagnostic Test (ET7) Event Buffer
 * @hdr: event buffer header
 * @route: diagnostic route
 * @mdd: model-dependent data (@route dependent)
 */
struct sclp_diag_evbuf {
	struct evbuf_header hdr;
	u16 route;

	union {
		struct sclp_diag_ftp ftp;
	} mdd;
} __packed;

/**
 * struct sclp_diag_sccb - Diagnostic Test (ET7) SCCB
 * @hdr: SCCB header
 * @evbuf: event buffer
 */
struct sclp_diag_sccb {

	struct sccb_header hdr;
	struct sclp_diag_evbuf evbuf;
} __packed;

#endif /* _SCLP_DIAG_H */

Annotation

Implementation Notes