mfc.c (1.12) | mfc.c (1.13) |
---|---|
1/* $NetBSD: mfc.c,v 1.12 1996/04/21 21:12:09 veego Exp $ */ | 1/* $NetBSD: mfc.c,v 1.13 1996/06/06 04:47:33 mhitch Exp $ */ |
2 3/* 4 * Copyright (c) 1994 Michael L. Hitch 5 * Copyright (c) 1982, 1990 The Regents of the University of California. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions --- 468 unchanged lines hidden (view full) --- 478 if (unit >= mfcs_cd.cd_ndevs || (mfcs_active & (1 << unit)) == 0) 479 return (ENXIO); 480 sc = mfcs_cd.cd_devs[unit]; 481 482 s = spltty(); 483 484 if (sc->sc_tty) 485 tp = sc->sc_tty; | 2 3/* 4 * Copyright (c) 1994 Michael L. Hitch 5 * Copyright (c) 1982, 1990 The Regents of the University of California. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions --- 468 unchanged lines hidden (view full) --- 478 if (unit >= mfcs_cd.cd_ndevs || (mfcs_active & (1 << unit)) == 0) 479 return (ENXIO); 480 sc = mfcs_cd.cd_devs[unit]; 481 482 s = spltty(); 483 484 if (sc->sc_tty) 485 tp = sc->sc_tty; |
486 else | 486 else { |
487 tp = sc->sc_tty = ttymalloc(); | 487 tp = sc->sc_tty = ttymalloc(); |
488 tty_attach(tp); 489 } |
|
488 489 tp->t_oproc = (void (*) (struct tty *)) mfcsstart; 490 tp->t_param = mfcsparam; 491 tp->t_dev = dev; 492 tp->t_hwiflow = mfcshwiflow; 493 494 if ((tp->t_state & TS_ISOPEN) == 0) { 495 tp->t_state |= TS_WOPEN; --- 679 unchanged lines hidden --- | 490 491 tp->t_oproc = (void (*) (struct tty *)) mfcsstart; 492 tp->t_param = mfcsparam; 493 tp->t_dev = dev; 494 tp->t_hwiflow = mfcshwiflow; 495 496 if ((tp->t_state & TS_ISOPEN) == 0) { 497 tp->t_state |= TS_WOPEN; --- 679 unchanged lines hidden --- |