aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/cio/chp.h
diff options
context:
space:
mode:
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 */