Commit a22217e2 authored by Dong Jia Shi's avatar Dong Jia Shi Committed by Cornelia Huck

s390: cio: export more interfaces

Export the common I/O interfaces those are needed by an I/O
subchannel driver to actually talk to the subchannel.
Reviewed-by: default avatarPierre Morel <pmorel@linux.vnet.ibm.com>
Signed-off-by: default avatarDong Jia Shi <bjsdjshi@linux.vnet.ibm.com>
Cc: Sebastian Ott <sebott@linux.vnet.ibm.com>
Cc: Peter Oberparleiter <oberpar@linux.vnet.ibm.com>
Acked-by: default avatarSebastian Ott <sebott@linux.vnet.ibm.com>
Message-Id: <20170317031743.40128-3-bjsdjshi@linux.vnet.ibm.com>
Signed-off-by: default avatarCornelia Huck <cornelia.huck@de.ibm.com>
parent 5434da4d
...@@ -170,12 +170,14 @@ cio_start_key (struct subchannel *sch, /* subchannel structure */ ...@@ -170,12 +170,14 @@ cio_start_key (struct subchannel *sch, /* subchannel structure */
return ccode; return ccode;
} }
} }
EXPORT_SYMBOL_GPL(cio_start_key);
int int
cio_start (struct subchannel *sch, struct ccw1 *cpa, __u8 lpm) cio_start (struct subchannel *sch, struct ccw1 *cpa, __u8 lpm)
{ {
return cio_start_key(sch, cpa, lpm, PAGE_DEFAULT_KEY); return cio_start_key(sch, cpa, lpm, PAGE_DEFAULT_KEY);
} }
EXPORT_SYMBOL_GPL(cio_start);
/* /*
* resume suspended I/O operation * resume suspended I/O operation
...@@ -208,6 +210,7 @@ cio_resume (struct subchannel *sch) ...@@ -208,6 +210,7 @@ cio_resume (struct subchannel *sch)
return -ENODEV; return -ENODEV;
} }
} }
EXPORT_SYMBOL_GPL(cio_resume);
/* /*
* halt I/O operation * halt I/O operation
...@@ -241,6 +244,7 @@ cio_halt(struct subchannel *sch) ...@@ -241,6 +244,7 @@ cio_halt(struct subchannel *sch)
return -ENODEV; return -ENODEV;
} }
} }
EXPORT_SYMBOL_GPL(cio_halt);
/* /*
* Clear I/O operation * Clear I/O operation
...@@ -271,6 +275,7 @@ cio_clear(struct subchannel *sch) ...@@ -271,6 +275,7 @@ cio_clear(struct subchannel *sch)
return -ENODEV; return -ENODEV;
} }
} }
EXPORT_SYMBOL_GPL(cio_clear);
/* /*
* Function: cio_cancel * Function: cio_cancel
...@@ -308,6 +313,7 @@ cio_cancel (struct subchannel *sch) ...@@ -308,6 +313,7 @@ cio_cancel (struct subchannel *sch)
return -ENODEV; return -ENODEV;
} }
} }
EXPORT_SYMBOL_GPL(cio_cancel);
/** /**
* cio_cancel_halt_clear - Cancel running I/O by performing cancel, halt * cio_cancel_halt_clear - Cancel running I/O by performing cancel, halt
...@@ -368,6 +374,7 @@ int cio_cancel_halt_clear(struct subchannel *sch, int *iretry) ...@@ -368,6 +374,7 @@ int cio_cancel_halt_clear(struct subchannel *sch, int *iretry)
/* Function was unsuccessful */ /* Function was unsuccessful */
return -EIO; return -EIO;
} }
EXPORT_SYMBOL_GPL(cio_cancel_halt_clear);
static void cio_apply_config(struct subchannel *sch, struct schib *schib) static void cio_apply_config(struct subchannel *sch, struct schib *schib)
{ {
...@@ -441,6 +448,7 @@ int cio_commit_config(struct subchannel *sch) ...@@ -441,6 +448,7 @@ int cio_commit_config(struct subchannel *sch)
} }
return ret; return ret;
} }
EXPORT_SYMBOL_GPL(cio_commit_config);
/** /**
* cio_update_schib - Perform stsch and update schib if subchannel is valid. * cio_update_schib - Perform stsch and update schib if subchannel is valid.
...@@ -1046,6 +1054,7 @@ int cio_tm_start_key(struct subchannel *sch, struct tcw *tcw, u8 lpm, u8 key) ...@@ -1046,6 +1054,7 @@ int cio_tm_start_key(struct subchannel *sch, struct tcw *tcw, u8 lpm, u8 key)
return cio_start_handle_notoper(sch, lpm); return cio_start_handle_notoper(sch, lpm);
} }
} }
EXPORT_SYMBOL_GPL(cio_tm_start_key);
/** /**
* cio_tm_intrg - perform interrogate function * cio_tm_intrg - perform interrogate function
...@@ -1071,3 +1080,4 @@ int cio_tm_intrg(struct subchannel *sch) ...@@ -1071,3 +1080,4 @@ int cio_tm_intrg(struct subchannel *sch)
return -ENODEV; return -ENODEV;
} }
} }
EXPORT_SYMBOL_GPL(cio_tm_intrg);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment