4 #include <linux/types.h>
5 #include <linux/device.h>
9 #define CHSC_SDA_OC_MSS 0x2
14 } __attribute__ ((packed));
16 #define NR_MEASUREMENT_CHARS 5
18 u32 values[NR_MEASUREMENT_CHARS];
19 } __attribute__ ((packed));
21 #define NR_MEASUREMENT_ENTRIES 8
23 u32 values[NR_MEASUREMENT_ENTRIES];
24 } __attribute__ ((packed));
26 struct channel_path_desc {
35 } __attribute__ ((packed));
39 struct css_general_char {
41 u32 aif : 1; /* bit 41 */
43 u32 mcss : 1; /* bit 45 */
45 u32 ext_mb : 1; /* bit 48 */
47 u32 aif_tdd : 1; /* bit 56 */
49 u32 qebsm : 1; /* bit 58 */
51 u32 aif_osa : 1; /* bit 67 */
53 }__attribute__((packed));
55 struct css_chsc_char {
58 u32 secm : 1; /* bit 84 */
60 u32 scmc : 1; /* bit 86 */
62 u32 scssc : 1; /* bit 107 */
63 u32 scsscf : 1; /* bit 108 */
65 }__attribute__((packed));
67 extern struct css_general_char css_general_characteristics;
68 extern struct css_chsc_char css_chsc_characteristics;
70 struct chsc_ssd_info {
73 struct chp_id chpid[8];
76 extern int chsc_get_ssd_info(struct subchannel_id schid,
77 struct chsc_ssd_info *ssd);
78 extern int chsc_determine_css_characteristics(void);
79 extern int css_characteristics_avail;
80 extern int chsc_alloc_sei_area(void);
81 extern void chsc_free_sei_area(void);
83 extern int chsc_enable_facility(int);
84 struct channel_subsystem;
85 extern int chsc_secm(struct channel_subsystem *, int);
87 int chsc_chp_vary(struct chp_id chpid, int on);
88 int chsc_determine_channel_path_description(struct chp_id chpid,
89 struct channel_path_desc *desc);
90 void chsc_chp_online(struct chp_id chpid);
91 void chsc_chp_offline(struct chp_id chpid);
92 int chsc_get_channel_measurement_chars(struct channel_path *chp);