diff options
author | Sven Schnelle <svens@linux.ibm.com> | 2022-11-28 19:42:28 +0100 |
---|---|---|
committer | Heiko Carstens <hca@linux.ibm.com> | 2023-01-09 14:33:59 +0100 |
commit | f08e31558a98383f185dcff0a8d77f1963150156 (patch) | |
tree | 9a309f599415ea566888b13e79c8ccc4c279812d /drivers/s390/char/raw3270.h | |
parent | s390/tty3270: add AID defines (diff) | |
download | linux-f08e31558a98383f185dcff0a8d77f1963150156.tar.xz linux-f08e31558a98383f185dcff0a8d77f1963150156.zip |
s390/raw3270: add raw3270_start_request() helper
There are a few places (and there would be more with the following commits)
like this:
raw3270_request_reset(cp->kreset);
raw3270_request_set_cmd(cp->kreset, TC_WRITE);
raw3270_request_add_data(cp->kreset, &kreset_data, 1);
raw3270_start(&cp->view, cp->kreset);
i.e reset a request, setting the command, adding payload, and starting the
request. Add a helper raw3270_start_request() which takes a command and
the payload as argument and calls the approppriate functions.
Signed-off-by: Sven Schnelle <svens@linux.ibm.com>
Acked-by: Heiko Carstens <hca@linux.ibm.com>
Tested-by: Niklas Schnelle <schnelle@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'drivers/s390/char/raw3270.h')
-rw-r--r-- | drivers/s390/char/raw3270.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/s390/char/raw3270.h b/drivers/s390/char/raw3270.h index 7e0c88e9c3c2..c8e7a596051f 100644 --- a/drivers/s390/char/raw3270.h +++ b/drivers/s390/char/raw3270.h @@ -180,6 +180,8 @@ int raw3270_start_irq(struct raw3270_view *, struct raw3270_request *); int raw3270_reset(struct raw3270_view *); struct raw3270_view *raw3270_view(struct raw3270_view *); int raw3270_view_active(struct raw3270_view *); +int raw3270_start_request(struct raw3270_view *view, struct raw3270_request *rq, + int cmd, void *data, size_t len); /* Reference count inliner for view structures. */ static inline void |