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
));
40 struct css_chsc_char
{
43 u32 secm
: 1; /* bit 84 */
45 u32 scmc
: 1; /* bit 86 */
47 u32 scssc
: 1; /* bit 107 */
48 u32 scsscf
: 1; /* bit 108 */
50 }__attribute__((packed
));
52 extern struct css_chsc_char css_chsc_characteristics
;
54 struct chsc_ssd_info
{
57 struct chp_id chpid
[8];
60 extern int chsc_get_ssd_info(struct subchannel_id schid
,
61 struct chsc_ssd_info
*ssd
);
62 extern int chsc_determine_css_characteristics(void);
63 extern int chsc_alloc_sei_area(void);
64 extern void chsc_free_sei_area(void);
66 extern int chsc_enable_facility(int);
67 struct channel_subsystem
;
68 extern int chsc_secm(struct channel_subsystem
*, int);
69 int __chsc_do_secm(struct channel_subsystem
*css
, int enable
, void *page
);
71 int chsc_chp_vary(struct chp_id chpid
, int on
);
72 int chsc_determine_channel_path_desc(struct chp_id chpid
, int fmt
, int rfmt
,
74 struct chsc_response_struct
*resp
);
75 int chsc_determine_base_channel_path_desc(struct chp_id chpid
,
76 struct channel_path_desc
*desc
);
77 void chsc_chp_online(struct chp_id chpid
);
78 void chsc_chp_offline(struct chp_id chpid
);
79 int chsc_get_channel_measurement_chars(struct channel_path
*chp
);
81 int chsc_error_from_response(int response
);