diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
commit | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch) | |
tree | 0bba044c4ce775e45a88a51686b5d9f90697ea9d /drivers/s390/cio/chsc.h |
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.
Let it rip!
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 | ||