Skip to content

Commit

Permalink
[PATCH] s390: 3270 fullscreen view
Browse files Browse the repository at this point in the history
      Martin Schwidefsky <schwidefsky@de.ibm.com>

Fix fullscreen view of the 3270 device driver.

Signed-off-by: Richard Hitt <rbh00@utsglobal.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Richard Hitt authored and Linus Torvalds committed Oct 31, 2005
1 parent d89ea9b commit ed3cb6f
Show file tree
Hide file tree
Showing 6 changed files with 315 additions and 69 deletions.
9 changes: 9 additions & 0 deletions arch/s390/kernel/compat_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
#include <asm/dasd.h>
#include <asm/cmb.h>
#include <asm/tape390.h>
#include <asm/ccwdev.h>
#include "../../../drivers/s390/char/raw3270.h"

static int do_ioctl32_pointer(unsigned int fd, unsigned int cmd,
unsigned long arg, struct file *f)
Expand Down Expand Up @@ -62,6 +64,13 @@ COMPATIBLE_IOCTL(BIODASDCMFENABLE)
COMPATIBLE_IOCTL(BIODASDCMFDISABLE)
COMPATIBLE_IOCTL(BIODASDREADALLCMB)

COMPATIBLE_IOCTL(TUBICMD)
COMPATIBLE_IOCTL(TUBOCMD)
COMPATIBLE_IOCTL(TUBGETI)
COMPATIBLE_IOCTL(TUBGETO)
COMPATIBLE_IOCTL(TUBSETMOD)
COMPATIBLE_IOCTL(TUBGETMOD)

COMPATIBLE_IOCTL(TAPE390_DISPLAY)

/* s390 doesn't need handlers here */
Expand Down
7 changes: 4 additions & 3 deletions drivers/s390/char/con3270.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,9 @@ con3270_update(struct con3270 *cp)
struct string *s, *n;
int rc;

if (cp->view.dev)
raw3270_activate_view(&cp->view);

wrq = xchg(&cp->write, 0);
if (!wrq) {
con3270_set_timer(cp, 1);
Expand Down Expand Up @@ -489,8 +492,6 @@ con3270_write(struct console *co, const char *str, unsigned int count)
unsigned char c;

cp = condev;
if (cp->view.dev)
raw3270_activate_view(&cp->view);
spin_lock_irqsave(&cp->view.lock, flags);
while (count-- > 0) {
c = *str++;
Expand Down Expand Up @@ -620,7 +621,7 @@ con3270_init(void)
(void (*)(unsigned long)) con3270_read_tasklet,
(unsigned long) condev->read);

raw3270_add_view(&condev->view, &con3270_fn, 0);
raw3270_add_view(&condev->view, &con3270_fn, 1);

INIT_LIST_HEAD(&condev->freemem);
for (i = 0; i < CON3270_STRING_PAGES; i++) {
Expand Down
Loading

0 comments on commit ed3cb6f

Please sign in to comment.