sio.c (124669) | sio.c (126076) |
---|---|
1/*- 2 * Copyright (c) 1991 The Regents of the University of California. 3 * 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 --- 21 unchanged lines hidden (view full) --- 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * from: @(#)com.c 7.5 (Berkeley) 5/16/91 34 * from: i386/isa sio.c,v 1.234 35 */ 36 37#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1991 The Regents of the University of California. 3 * 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 --- 21 unchanged lines hidden (view full) --- 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * from: @(#)com.c 7.5 (Berkeley) 5/16/91 34 * from: i386/isa sio.c,v 1.234 35 */ 36 37#include <sys/cdefs.h> |
38__FBSDID("$FreeBSD: head/sys/dev/sio/sio.c 124669 2004-01-18 12:26:33Z ru $"); | 38__FBSDID("$FreeBSD: head/sys/dev/sio/sio.c 126076 2004-02-21 19:42:58Z phk $"); |
39 40#include "opt_comconsole.h" 41#include "opt_compat.h" 42#include "opt_ddb.h" 43#include "opt_sio.h" 44 45/* 46 * Serial driver, based on 386BSD-0.1 com driver. --- 270 unchanged lines hidden (view full) --- 317 devclass_get_softc(sio_devclass, unit)) /* XXX */ 318 319static d_open_t sioopen; 320static d_close_t sioclose; 321static d_read_t sioread; 322static d_write_t siowrite; 323static d_ioctl_t sioioctl; 324 | 39 40#include "opt_comconsole.h" 41#include "opt_compat.h" 42#include "opt_ddb.h" 43#include "opt_sio.h" 44 45/* 46 * Serial driver, based on 386BSD-0.1 com driver. --- 270 unchanged lines hidden (view full) --- 317 devclass_get_softc(sio_devclass, unit)) /* XXX */ 318 319static d_open_t sioopen; 320static d_close_t sioclose; 321static d_read_t sioread; 322static d_write_t siowrite; 323static d_ioctl_t sioioctl; 324 |
325#define CDEV_MAJOR 28 | |
326static struct cdevsw sio_cdevsw = { 327 .d_open = sioopen, 328 .d_close = sioclose, 329 .d_read = sioread, 330 .d_write = siowrite, 331 .d_ioctl = sioioctl, 332 .d_poll = ttypoll, 333 .d_name = sio_driver_name, | 325static struct cdevsw sio_cdevsw = { 326 .d_open = sioopen, 327 .d_close = sioclose, 328 .d_read = sioread, 329 .d_write = siowrite, 330 .d_ioctl = sioioctl, 331 .d_poll = ttypoll, 332 .d_name = sio_driver_name, |
334 .d_maj = CDEV_MAJOR, | |
335 .d_flags = D_TTY, 336 .d_kqfilter = ttykqfilter, 337}; 338 339int comconsole = -1; 340static volatile speed_t comdefaultrate = CONSPEED; 341static u_long comdefaultrclk = DEFAULT_RCLK; 342SYSCTL_ULONG(_machdep, OID_AUTO, conrclk, CTLFLAG_RW, &comdefaultrclk, 0, ""); --- 2927 unchanged lines hidden --- | 333 .d_flags = D_TTY, 334 .d_kqfilter = ttykqfilter, 335}; 336 337int comconsole = -1; 338static volatile speed_t comdefaultrate = CONSPEED; 339static u_long comdefaultrclk = DEFAULT_RCLK; 340SYSCTL_ULONG(_machdep, OID_AUTO, conrclk, CTLFLAG_RW, &comdefaultrclk, 0, ""); --- 2927 unchanged lines hidden --- |