diff options
author | Peter Oberparleiter <peter.oberparleiter@de.ibm.com> | 2007-04-27 10:01:26 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2007-04-27 10:01:38 -0400 |
commit | f86635fad14c4a6810cf0e08488fc9129a3b3b32 (patch) | |
tree | abd431344a28415983f6dcabdc3ac3ce5675e519 /drivers/s390/cio/chsc.h | |
parent | 6fc321fd7dd91f0592f37503219196835314fbb7 (diff) |
[S390] cio: Introduce struct chp_id.
Introduce data type for channel-path IDs.
Signed-off-by: Peter Oberparleiter <peter.oberparleiter@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Diffstat (limited to 'drivers/s390/cio/chsc.h')
-rw-r--r-- | drivers/s390/cio/chsc.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/s390/cio/chsc.h b/drivers/s390/cio/chsc.h index 0fb2b024208f..2949c85b6d92 100644 --- a/drivers/s390/cio/chsc.h +++ b/drivers/s390/cio/chsc.h | |||
@@ -1,6 +1,10 @@ | |||
1 | #ifndef S390_CHSC_H | 1 | #ifndef S390_CHSC_H |
2 | #define S390_CHSC_H | 2 | #define S390_CHSC_H |
3 | 3 | ||
4 | #include <linux/types.h> | ||
5 | #include <linux/device.h> | ||
6 | #include "chpid.h" | ||
7 | |||
4 | #define CHSC_SEI_ACC_CHPID 1 | 8 | #define CHSC_SEI_ACC_CHPID 1 |
5 | #define CHSC_SEI_ACC_LINKADDR 2 | 9 | #define CHSC_SEI_ACC_LINKADDR 2 |
6 | #define CHSC_SEI_ACC_FULLLINKADDR 3 | 10 | #define CHSC_SEI_ACC_FULLLINKADDR 3 |
@@ -34,7 +38,7 @@ struct channel_path_desc { | |||
34 | } __attribute__ ((packed)); | 38 | } __attribute__ ((packed)); |
35 | 39 | ||
36 | struct channel_path { | 40 | struct channel_path { |
37 | int id; | 41 | struct chp_id chpid; |
38 | int state; | 42 | int state; |
39 | struct channel_path_desc desc; | 43 | struct channel_path_desc desc; |
40 | /* Channel-measurement related stuff: */ | 44 | /* Channel-measurement related stuff: */ |
@@ -46,7 +50,7 @@ struct channel_path { | |||
46 | 50 | ||
47 | extern void s390_process_css( void ); | 51 | extern void s390_process_css( void ); |
48 | extern void chsc_validate_chpids(struct subchannel *); | 52 | extern void chsc_validate_chpids(struct subchannel *); |
49 | extern void chpid_is_actually_online(int); | 53 | extern void chpid_is_actually_online(struct chp_id); |
50 | extern int css_get_ssd_info(struct subchannel *); | 54 | extern int css_get_ssd_info(struct subchannel *); |
51 | extern int chsc_process_crw(void); | 55 | extern int chsc_process_crw(void); |
52 | extern int chp_process_crw(int, int); | 56 | extern int chp_process_crw(int, int); |