aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/cio/chp.h
diff options
context:
space:
mode:
authorPeter Oberparleiter <peter.oberparleiter@de.ibm.com>2007-04-27 10:01:28 -0400
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2007-04-27 10:01:38 -0400
commite6b6e10ac1de116fc6d2288f185393014851cccf (patch)
tree85602cd6aed77d36cf87cbc05ac380c568e757ac /drivers/s390/cio/chp.h
parentd120b2a4e60cc9e62e7cc5dcf049100af3745cc4 (diff)
[S390] cio: Introduce separate files for channel-path related code.
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/chp.h')
-rw-r--r--drivers/s390/cio/chp.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/drivers/s390/cio/chp.h b/drivers/s390/cio/chp.h
new file mode 100644
index 000000000000..ac2b1a9c3bc2
--- /dev/null
+++ b/drivers/s390/cio/chp.h
@@ -0,0 +1,37 @@
1/*
2 * drivers/s390/cio/chp.h
3 *
4 * Copyright IBM Corp. 2007
5 * Author(s): Peter Oberparleiter <peter.oberparleiter@de.ibm.com>
6 */
7
8#ifndef S390_CHP_H
9#define S390_CHP_H S390_CHP_H
10
11#include <linux/types.h>
12#include <linux/device.h>
13
14#include "chpid.h"
15#include "chsc.h"
16
17struct channel_path {
18 struct chp_id chpid;
19 int state;
20 struct channel_path_desc desc;
21 /* Channel-measurement related stuff: */
22 int cmg;
23 int shared;
24 void *cmg_chars;
25 struct device dev;
26};
27
28int chp_get_status(struct chp_id chpid);
29u8 chp_get_sch_opm(struct subchannel *sch);
30int chp_is_registered(struct chp_id chpid);
31void *chp_get_chp_desc(struct chp_id chpid);
32int chp_process_crw(int id, int available);
33void chp_remove_cmg_attr(struct channel_path *chp);
34int chp_add_cmg_attr(struct channel_path *chp);
35int chp_new(struct chp_id chpid);
36
37#endif /* S390_CHP_H */