diff options
Diffstat (limited to 'drivers/s390/cio/chsc.h')
-rw-r--r-- | drivers/s390/cio/chsc.h | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/drivers/s390/cio/chsc.h b/drivers/s390/cio/chsc.h new file mode 100644 index 000000000000..be20da49d147 --- /dev/null +++ b/drivers/s390/cio/chsc.h | |||
@@ -0,0 +1,66 @@ | |||
1 | #ifndef S390_CHSC_H | ||
2 | #define S390_CHSC_H | ||
3 | |||
4 | #define NR_CHPIDS 256 | ||
5 | |||
6 | #define CHSC_SEI_ACC_CHPID 1 | ||
7 | #define CHSC_SEI_ACC_LINKADDR 2 | ||
8 | #define CHSC_SEI_ACC_FULLLINKADDR 3 | ||
9 | |||
10 | struct chsc_header { | ||
11 | u16 length; | ||
12 | u16 code; | ||
13 | }; | ||
14 | |||
15 | struct channel_path_desc { | ||
16 | u8 flags; | ||
17 | u8 lsn; | ||
18 | u8 desc; | ||
19 | u8 chpid; | ||
20 | u8 swla; | ||
21 | u8 zeroes; | ||
22 | u8 chla; | ||
23 | u8 chpp; | ||
24 | }; | ||
25 | |||
26 | struct channel_path { | ||
27 | int id; | ||
28 | int state; | ||
29 | struct channel_path_desc desc; | ||
30 | struct device dev; | ||
31 | }; | ||
32 | |||
33 | extern void s390_process_css( void ); | ||
34 | extern void chsc_validate_chpids(struct subchannel *); | ||
35 | extern void chpid_is_actually_online(int); | ||
36 | |||
37 | struct css_general_char { | ||
38 | u64 : 41; | ||
39 | u32 aif : 1; /* bit 41 */ | ||
40 | u32 : 3; | ||
41 | u32 mcss : 1; /* bit 45 */ | ||
42 | u32 : 2; | ||
43 | u32 ext_mb : 1; /* bit 48 */ | ||
44 | u32 : 7; | ||
45 | u32 aif_tdd : 1; /* bit 56 */ | ||
46 | u32 : 10; | ||
47 | u32 aif_osa : 1; /* bit 67 */ | ||
48 | u32 : 28; | ||
49 | }__attribute__((packed)); | ||
50 | |||
51 | struct css_chsc_char { | ||
52 | u64 res; | ||
53 | u64 : 43; | ||
54 | u32 scssc : 1; /* bit 107 */ | ||
55 | u32 scsscf : 1; /* bit 108 */ | ||
56 | u32 : 19; | ||
57 | }__attribute__((packed)); | ||
58 | |||
59 | extern struct css_general_char css_general_characteristics; | ||
60 | extern struct css_chsc_char css_chsc_characteristics; | ||
61 | |||
62 | extern int chsc_determine_css_characteristics(void); | ||
63 | extern int css_characteristics_avail; | ||
64 | |||
65 | extern void *chsc_get_chp_desc(struct subchannel*, int); | ||
66 | #endif | ||