summaryrefslogtreecommitdiffstats
path: root/drivers/s390/cio/chp.h
diff options
context:
space:
mode:
authorSebastian Ott <sebott@linux.vnet.ibm.com>2010-10-25 16:10:31 +0200
committerMartin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com>2010-10-25 16:10:18 +0200
commitc38a90a34cfc880eb2f7234c511cdb7d8bdebc45 (patch)
treecf10e8b31b59c3f4734fd8254468f4cc83efdcaf /drivers/s390/cio/chp.h
parent906c9768c7750ce76b85597174b9c3599a6ca9f6 (diff)
downloadop-kernel-dev-c38a90a34cfc880eb2f7234c511cdb7d8bdebc45.zip
op-kernel-dev-c38a90a34cfc880eb2f7234c511cdb7d8bdebc45.tar.gz
[S390] cio: update descriptor in chsc_chp_vary
Update the channel path descriptor at the beginning of to the vary_on operation. Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390/cio/chp.h')
-rw-r--r--drivers/s390/cio/chp.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/s390/cio/chp.h b/drivers/s390/cio/chp.h
index 695ec20..12b4903 100644
--- a/drivers/s390/cio/chp.h
+++ b/drivers/s390/cio/chp.h
@@ -52,6 +52,12 @@ struct channel_path {
void *cmg_chars;
};
+/* Return channel_path struct for given chpid. */
+static inline struct channel_path *chpid_to_chp(struct chp_id chpid)
+{
+ return channel_subsystems[chpid.cssid]->chps[chpid.id];
+}
+
int chp_get_status(struct chp_id chpid);
u8 chp_get_sch_opm(struct subchannel *sch);
int chp_is_registered(struct chp_id chpid);
OpenPOWER on IntegriCloud