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
15 #define NR_MEASUREMENT_CHARS 5
17 u32 values
[NR_MEASUREMENT_CHARS
];
20 #define NR_MEASUREMENT_ENTRIES 8
22 u32 values
[NR_MEASUREMENT_ENTRIES
];
25 struct channel_path_desc
{
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);
51 struct css_general_char
{
53 u32 aif
: 1; /* bit 41 */
55 u32 mcss
: 1; /* bit 45 */
57 u32 ext_mb
: 1; /* bit 48 */
59 u32 aif_tdd
: 1; /* bit 56 */
61 u32 qebsm
: 1; /* bit 58 */
63 u32 aif_osa
: 1; /* bit 67 */
65 }__attribute__((packed
));
67 struct css_chsc_char
{
70 u32 secm
: 1; /* bit 84 */
72 u32 scmc
: 1; /* bit 86 */
74 u32 scssc
: 1; /* bit 107 */
75 u32 scsscf
: 1; /* bit 108 */
77 }__attribute__((packed
));
79 extern struct css_general_char css_general_characteristics
;
80 extern struct css_chsc_char css_chsc_characteristics
;
82 extern int chsc_determine_css_characteristics(void);
83 extern int css_characteristics_avail
;
85 extern void *chsc_get_chp_desc(struct subchannel
*, int);
87 extern int chsc_enable_facility(int);
88 struct channel_subsystem
;
89 extern int chsc_secm(struct channel_subsystem
*, int);
91 #define to_channelpath(device) container_of(device, struct channel_path, dev)