con3215.c (c203e45f069af47ca7623e4dcd8c00bfba2722e4) con3215.c (23d805b647db6c2063a13089497615efa9deacdd)
1/*
2 * drivers/s390/char/con3215.c
3 * 3215 line mode terminal driver.
4 *
5 * S390 version
6 * Copyright (C) 1999,2000 IBM Deutschland Entwicklung GmbH, IBM Corporation
7 * Author(s): Martin Schwidefsky (schwidefsky@de.ibm.com),
8 *

--- 371 unchanged lines hidden (view full) ---

380 struct raw3215_info *raw;
381 struct raw3215_req *req;
382 struct tty_struct *tty;
383 int cstat, dstat;
384 int count, slen;
385
386 raw = cdev->dev.driver_data;
387 req = (struct raw3215_req *) intparm;
1/*
2 * drivers/s390/char/con3215.c
3 * 3215 line mode terminal driver.
4 *
5 * S390 version
6 * Copyright (C) 1999,2000 IBM Deutschland Entwicklung GmbH, IBM Corporation
7 * Author(s): Martin Schwidefsky (schwidefsky@de.ibm.com),
8 *

--- 371 unchanged lines hidden (view full) ---

380 struct raw3215_info *raw;
381 struct raw3215_req *req;
382 struct tty_struct *tty;
383 int cstat, dstat;
384 int count, slen;
385
386 raw = cdev->dev.driver_data;
387 req = (struct raw3215_req *) intparm;
388 cstat = irb->scsw.cstat;
389 dstat = irb->scsw.dstat;
388 cstat = irb->scsw.cmd.cstat;
389 dstat = irb->scsw.cmd.dstat;
390 if (cstat != 0) {
391 raw->message = KERN_WARNING
392 "Got nonzero channel status in raw3215_irq "
393 "(dev sts 0x%2x, sch sts 0x%2x)";
394 raw->msg_dstat = dstat;
395 raw->msg_cstat = cstat;
396 tasklet_schedule(&raw->tasklet);
397 }

--- 12 unchanged lines hidden (view full) ---

410 break;
411 case 0x08:
412 case 0x0C:
413 /* Channel end interrupt. */
414 if ((raw = req->info) == NULL)
415 return; /* That shouldn't happen ... */
416 if (req->type == RAW3215_READ) {
417 /* store residual count, then wait for device end */
390 if (cstat != 0) {
391 raw->message = KERN_WARNING
392 "Got nonzero channel status in raw3215_irq "
393 "(dev sts 0x%2x, sch sts 0x%2x)";
394 raw->msg_dstat = dstat;
395 raw->msg_cstat = cstat;
396 tasklet_schedule(&raw->tasklet);
397 }

--- 12 unchanged lines hidden (view full) ---

410 break;
411 case 0x08:
412 case 0x0C:
413 /* Channel end interrupt. */
414 if ((raw = req->info) == NULL)
415 return; /* That shouldn't happen ... */
416 if (req->type == RAW3215_READ) {
417 /* store residual count, then wait for device end */
418 req->residual = irb->scsw.count;
418 req->residual = irb->scsw.cmd.count;
419 }
420 if (dstat == 0x08)
421 break;
422 case 0x04:
423 /* Device end interrupt. */
424 if ((raw = req->info) == NULL)
425 return; /* That shouldn't happen ... */
426 if (req->type == RAW3215_READ && raw->tty != NULL) {

--- 751 unchanged lines hidden ---
419 }
420 if (dstat == 0x08)
421 break;
422 case 0x04:
423 /* Device end interrupt. */
424 if ((raw = req->info) == NULL)
425 return; /* That shouldn't happen ... */
426 if (req->type == RAW3215_READ && raw->tty != NULL) {

--- 751 unchanged lines hidden ---