4 #include <linux/types.h>
5 #include <linux/device.h>
10 #define CHSC_SDA_OC_MSS 0x2
15 } __attribute__ ((packed
));
17 #define NR_MEASUREMENT_CHARS 5
19 u32 values
[NR_MEASUREMENT_CHARS
];
20 } __attribute__ ((packed
));
22 #define NR_MEASUREMENT_ENTRIES 8
24 u32 values
[NR_MEASUREMENT_ENTRIES
];
25 } __attribute__ ((packed
));
27 struct channel_path_desc
{
36 } __attribute__ ((packed
));
38 struct channel_path_desc_fmt1
{
52 } __attribute__ ((packed
));
56 struct css_chsc_char
{
59 u32 secm
: 1; /* bit 84 */
61 u32 scmc
: 1; /* bit 86 */
63 u32 scssc
: 1; /* bit 107 */
64 u32 scsscf
: 1; /* bit 108 */
66 }__attribute__((packed
));
68 extern struct css_chsc_char css_chsc_characteristics
;
70 struct chsc_ssd_info
{
73 struct chp_id chpid
[8];
78 struct chsc_header request
;
90 struct chsc_header response
;
91 u8 data
[PAGE_SIZE
- 20];
92 } __attribute__ ((packed
));
95 extern int chsc_get_ssd_info(struct subchannel_id schid
,
96 struct chsc_ssd_info
*ssd
);
97 extern int chsc_determine_css_characteristics(void);
98 extern int chsc_init(void);
99 extern void chsc_init_cleanup(void);
101 extern int chsc_enable_facility(int);
102 struct channel_subsystem
;
103 extern int chsc_secm(struct channel_subsystem
*, int);
104 int __chsc_do_secm(struct channel_subsystem
*css
, int enable
);
106 int chsc_chp_vary(struct chp_id chpid
, int on
);
107 int chsc_determine_channel_path_desc(struct chp_id chpid
, int fmt
, int rfmt
,
108 int c
, int m
, void *page
);
109 int chsc_determine_base_channel_path_desc(struct chp_id chpid
,
110 struct channel_path_desc
*desc
);
111 int chsc_determine_fmt1_channel_path_desc(struct chp_id chpid
,
112 struct channel_path_desc_fmt1
*desc
);
113 void chsc_chp_online(struct chp_id chpid
);
114 void chsc_chp_offline(struct chp_id chpid
);
115 int chsc_get_channel_measurement_chars(struct channel_path
*chp
);
117 int chsc_error_from_response(int response
);
119 int chsc_siosl(struct subchannel_id schid
);