4 #define CHSC_SEI_ACC_CHPID 1
5 #define CHSC_SEI_ACC_LINKADDR 2
6 #define CHSC_SEI_ACC_FULLLINKADDR 3
8 #define CHSC_SDA_OC_MSS 0x2
13 } __attribute__ ((packed));
15 #define NR_MEASUREMENT_CHARS 5
17 u32 values[NR_MEASUREMENT_CHARS];
18 } __attribute__ ((packed));
20 #define NR_MEASUREMENT_ENTRIES 8
22 u32 values[NR_MEASUREMENT_ENTRIES];
23 } __attribute__ ((packed));
25 struct channel_path_desc {
34 } __attribute__ ((packed));
39 struct channel_path_desc desc;
40 /* Channel-measurement related stuff: */
47 extern void s390_process_css( void );
48 extern void chsc_validate_chpids(struct subchannel *);
49 extern void chpid_is_actually_online(int);
50 extern int css_get_ssd_info(struct subchannel *);
51 extern int chsc_process_crw(void);
52 extern int chp_process_crw(int, int);
54 struct css_general_char {
56 u32 aif : 1; /* bit 41 */
58 u32 mcss : 1; /* bit 45 */
60 u32 ext_mb : 1; /* bit 48 */
62 u32 aif_tdd : 1; /* bit 56 */
64 u32 qebsm : 1; /* bit 58 */
66 u32 aif_osa : 1; /* bit 67 */
68 }__attribute__((packed));
70 struct css_chsc_char {
73 u32 secm : 1; /* bit 84 */
75 u32 scmc : 1; /* bit 86 */
77 u32 scssc : 1; /* bit 107 */
78 u32 scsscf : 1; /* bit 108 */
80 }__attribute__((packed));
82 extern struct css_general_char css_general_characteristics;
83 extern struct css_chsc_char css_chsc_characteristics;
85 extern int chsc_determine_css_characteristics(void);
86 extern int css_characteristics_avail;
88 extern void *chsc_get_chp_desc(struct subchannel*, int);
90 extern int chsc_enable_facility(int);
91 struct channel_subsystem;
92 extern int chsc_secm(struct channel_subsystem *, int);
94 #define to_channelpath(device) container_of(device, struct channel_path, dev)