sio.c (37138) | sio.c (37683) |
---|---|
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 --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 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 | 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 --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 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 * $Id: sio.c,v 1.61 1998/06/17 09:27:15 kato Exp $ | 34 * $Id: sio.c,v 1.62 1998/06/24 13:37:23 kato Exp $ |
35 */ 36 37#include "opt_comconsole.h" 38#include "opt_compat.h" 39#include "opt_ddb.h" 40#include "opt_devfs.h" 41#include "opt_sio.h" 42#include "sio.h" --- 1394 unchanged lines hidden (view full) --- 1437 com_addr(unit) = com; 1438 splx(s); 1439 1440 dev = makedev(CDEV_MAJOR, 0); 1441 cdevsw_add(&dev, &sio_cdevsw, NULL); 1442#ifdef DEVFS 1443 com->devfs_token_ttyd = devfs_add_devswf(&sio_cdevsw, 1444 unit, DV_CHR, | 35 */ 36 37#include "opt_comconsole.h" 38#include "opt_compat.h" 39#include "opt_ddb.h" 40#include "opt_devfs.h" 41#include "opt_sio.h" 42#include "sio.h" --- 1394 unchanged lines hidden (view full) --- 1437 com_addr(unit) = com; 1438 splx(s); 1439 1440 dev = makedev(CDEV_MAJOR, 0); 1441 cdevsw_add(&dev, &sio_cdevsw, NULL); 1442#ifdef DEVFS 1443 com->devfs_token_ttyd = devfs_add_devswf(&sio_cdevsw, 1444 unit, DV_CHR, |
1445 UID_ROOT, GID_WHEEL, 0600, "ttyd%n", unit); | 1445 UID_ROOT, GID_WHEEL, 0600, "ttyd%r", unit); |
1446 com->devfs_token_ttyi = devfs_add_devswf(&sio_cdevsw, 1447 unit | CONTROL_INIT_STATE, DV_CHR, | 1446 com->devfs_token_ttyi = devfs_add_devswf(&sio_cdevsw, 1447 unit | CONTROL_INIT_STATE, DV_CHR, |
1448 UID_ROOT, GID_WHEEL, 0600, "ttyid%n", unit); | 1448 UID_ROOT, GID_WHEEL, 0600, "ttyid%r", unit); |
1449 com->devfs_token_ttyl = devfs_add_devswf(&sio_cdevsw, 1450 unit | CONTROL_LOCK_STATE, DV_CHR, | 1449 com->devfs_token_ttyl = devfs_add_devswf(&sio_cdevsw, 1450 unit | CONTROL_LOCK_STATE, DV_CHR, |
1451 UID_ROOT, GID_WHEEL, 0600, "ttyld%n", unit); | 1451 UID_ROOT, GID_WHEEL, 0600, "ttyld%r", unit); |
1452 com->devfs_token_cuaa = devfs_add_devswf(&sio_cdevsw, 1453 unit | CALLOUT_MASK, DV_CHR, | 1452 com->devfs_token_cuaa = devfs_add_devswf(&sio_cdevsw, 1453 unit | CALLOUT_MASK, DV_CHR, |
1454 UID_UUCP, GID_DIALER, 0660, "cuaa%n", unit); | 1454 UID_UUCP, GID_DIALER, 0660, "cuaa%r", unit); |
1455 com->devfs_token_cuai = devfs_add_devswf(&sio_cdevsw, 1456 unit | CALLOUT_MASK | CONTROL_INIT_STATE, DV_CHR, | 1455 com->devfs_token_cuai = devfs_add_devswf(&sio_cdevsw, 1456 unit | CALLOUT_MASK | CONTROL_INIT_STATE, DV_CHR, |
1457 UID_UUCP, GID_DIALER, 0660, "cuaia%n", unit); | 1457 UID_UUCP, GID_DIALER, 0660, "cuaia%r", unit); |
1458 com->devfs_token_cual = devfs_add_devswf(&sio_cdevsw, 1459 unit | CALLOUT_MASK | CONTROL_LOCK_STATE, DV_CHR, | 1458 com->devfs_token_cual = devfs_add_devswf(&sio_cdevsw, 1459 unit | CALLOUT_MASK | CONTROL_LOCK_STATE, DV_CHR, |
1460 UID_UUCP, GID_DIALER, 0660, "cuala%n", unit); | 1460 UID_UUCP, GID_DIALER, 0660, "cuala%r", unit); |
1461#endif 1462 com->id_flags = isdp->id_flags; /* Heritate id_flags for later */ 1463 return (1); 1464} 1465 1466static int 1467sioopen(dev, flag, mode, p) 1468 dev_t dev; --- 2855 unchanged lines hidden --- | 1461#endif 1462 com->id_flags = isdp->id_flags; /* Heritate id_flags for later */ 1463 return (1); 1464} 1465 1466static int 1467sioopen(dev, flag, mode, p) 1468 dev_t dev; --- 2855 unchanged lines hidden --- |