2 * ioctl interface for /dev/chsc
4 * Copyright 2008 IBM Corp.
5 * Author(s): Cornelia Huck <cornelia.huck@de.ibm.com>
11 #include <asm/chpid.h>
12 #include <asm/schid.h>
14 struct chsc_async_header {
20 struct subchannel_id sid;
21 } __attribute__ ((packed));
23 struct chsc_async_area {
24 struct chsc_async_header header;
25 __u8 data[PAGE_SIZE - 16 /* size of chsc_async_header */];
26 } __attribute__ ((packed));
29 struct chsc_response_struct {
33 __u8 data[PAGE_SIZE - 8];
34 } __attribute__ ((packed));
40 struct chsc_response_struct cpcb;
48 struct chsc_response_struct cucb;
52 struct subchannel_id schid;
54 struct chsc_response_struct scub;
63 struct chsc_conf_info {
66 struct chsc_response_struct scid;
69 struct ccl_parm_chpid {
74 struct ccl_parm_cssids {
79 struct chsc_comp_list {
85 CCL_CSS_IMG_CONF_CHAR = 5,
89 struct ccl_parm_chpid chpid;
90 struct ccl_parm_cssids cssids;
92 struct chsc_response_struct sccl;
103 struct chsc_response_struct sdcal;
106 struct chsc_cpd_info {
112 struct chsc_response_struct chpdb;
115 #define CHSC_IOCTL_MAGIC 'c'
117 #define CHSC_START _IOWR(CHSC_IOCTL_MAGIC, 0x81, struct chsc_async_area)
118 #define CHSC_INFO_CHANNEL_PATH _IOWR(CHSC_IOCTL_MAGIC, 0x82, \
120 #define CHSC_INFO_CU _IOWR(CHSC_IOCTL_MAGIC, 0x83, struct chsc_cu_cd)
121 #define CHSC_INFO_SCH_CU _IOWR(CHSC_IOCTL_MAGIC, 0x84, struct chsc_sch_cud)
122 #define CHSC_INFO_CI _IOWR(CHSC_IOCTL_MAGIC, 0x85, struct chsc_conf_info)
123 #define CHSC_INFO_CCL _IOWR(CHSC_IOCTL_MAGIC, 0x86, struct chsc_comp_list)
124 #define CHSC_INFO_CPD _IOWR(CHSC_IOCTL_MAGIC, 0x87, struct chsc_cpd_info)
125 #define CHSC_INFO_DCAL _IOWR(CHSC_IOCTL_MAGIC, 0x88, struct chsc_dcal)