nmdm.c (131579) | nmdm.c (132226) |
---|---|
1/* 2 * Copyright (c) 1982, 1986, 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 15 unchanged lines hidden (view full) --- 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 */ 30 31#include <sys/cdefs.h> | 1/* 2 * Copyright (c) 1982, 1986, 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 15 unchanged lines hidden (view full) --- 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 */ 30 31#include <sys/cdefs.h> |
32__FBSDID("$FreeBSD: head/sys/dev/nmdm/nmdm.c 131579 2004-07-04 16:27:58Z phk $"); | 32__FBSDID("$FreeBSD: head/sys/dev/nmdm/nmdm.c 132226 2004-07-15 20:47:41Z phk $"); |
33 34/* 35 * Pseudo-nulmodem driver 36 * Mighty handy for use with serial console in Vmware 37 */ 38 39#include "opt_compat.h" 40#include "opt_tty.h" --- 248 unchanged lines hidden (view full) --- 289 return (i); 290 } 291} 292 293static int 294nmdmclose(struct cdev *dev, int flag, int mode, struct thread *td) 295{ 296 | 33 34/* 35 * Pseudo-nulmodem driver 36 * Mighty handy for use with serial console in Vmware 37 */ 38 39#include "opt_compat.h" 40#include "opt_tty.h" --- 248 unchanged lines hidden (view full) --- 289 return (i); 290 } 291} 292 293static int 294nmdmclose(struct cdev *dev, int flag, int mode, struct thread *td) 295{ 296 |
297 return (ttyclose(dev->si_tty)); | 297 return (tty_close(dev->si_tty)); |
298} 299 300static void 301nmdmstart(struct tty *tp) 302{ 303 struct softpart *pt; 304 305 pt = tp->t_sc; --- 48 unchanged lines hidden --- | 298} 299 300static void 301nmdmstart(struct tty *tp) 302{ 303 struct softpart *pt; 304 305 pt = tp->t_sc; --- 48 unchanged lines hidden --- |