cy_isa.c (36735) | cy_isa.c (37683) |
---|---|
1/*- 2 * cyclades cyclom-y serial driver 3 * Andrew Herbert <andrew@werple.apana.org.au>, 17 August 1993 4 * 5 * Copyright (c) 1993 Andrew Herbert. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 13 unchanged lines hidden (view full) --- 22 * NO EVENT SHALL I BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 23 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 24 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 25 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 26 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 27 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 28 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 * | 1/*- 2 * cyclades cyclom-y serial driver 3 * Andrew Herbert <andrew@werple.apana.org.au>, 17 August 1993 4 * 5 * Copyright (c) 1993 Andrew Herbert. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 13 unchanged lines hidden (view full) --- 22 * NO EVENT SHALL I BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 23 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 24 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 25 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 26 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 27 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 28 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 * |
30 * $Id: cy.c,v 1.62 1998/03/18 20:52:28 dg Exp $ | 30 * $Id: cy.c,v 1.63 1998/06/07 17:10:16 dfr Exp $ |
31 */ 32 33#include "opt_compat.h" 34#include "opt_devfs.h" 35 36#include "cy.h" 37 38/* --- 553 unchanged lines hidden (view full) --- 592 com_addr(unit) = com; 593 splx(s); 594 595 dev = makedev(CDEV_MAJOR, 0); 596 cdevsw_add(&dev, &sio_cdevsw, NULL); 597#ifdef DEVFS 598 com->devfs_token_ttyd = devfs_add_devswf(&sio_cdevsw, 599 unit, DV_CHR, | 31 */ 32 33#include "opt_compat.h" 34#include "opt_devfs.h" 35 36#include "cy.h" 37 38/* --- 553 unchanged lines hidden (view full) --- 592 com_addr(unit) = com; 593 splx(s); 594 595 dev = makedev(CDEV_MAJOR, 0); 596 cdevsw_add(&dev, &sio_cdevsw, NULL); 597#ifdef DEVFS 598 com->devfs_token_ttyd = devfs_add_devswf(&sio_cdevsw, 599 unit, DV_CHR, |
600 UID_ROOT, GID_WHEEL, 0600, "ttyc%n%n", adapter, | 600 UID_ROOT, GID_WHEEL, 0600, "ttyc%r%r", adapter, |
601 unit % CY_MAX_PORTS); 602 com->devfs_token_ttyi = devfs_add_devswf(&sio_cdevsw, 603 unit | CONTROL_INIT_STATE, DV_CHR, | 601 unit % CY_MAX_PORTS); 602 com->devfs_token_ttyi = devfs_add_devswf(&sio_cdevsw, 603 unit | CONTROL_INIT_STATE, DV_CHR, |
604 UID_ROOT, GID_WHEEL, 0600, "ttyic%n%n", adapter, | 604 UID_ROOT, GID_WHEEL, 0600, "ttyic%r%r", adapter, |
605 unit % CY_MAX_PORTS); 606 com->devfs_token_ttyl = devfs_add_devswf(&sio_cdevsw, 607 unit | CONTROL_LOCK_STATE, DV_CHR, | 605 unit % CY_MAX_PORTS); 606 com->devfs_token_ttyl = devfs_add_devswf(&sio_cdevsw, 607 unit | CONTROL_LOCK_STATE, DV_CHR, |
608 UID_ROOT, GID_WHEEL, 0600, "ttylc%n%n", adapter, | 608 UID_ROOT, GID_WHEEL, 0600, "ttylc%r%r", adapter, |
609 unit % CY_MAX_PORTS); 610 com->devfs_token_cuaa = devfs_add_devswf(&sio_cdevsw, 611 unit | CALLOUT_MASK, DV_CHR, | 609 unit % CY_MAX_PORTS); 610 com->devfs_token_cuaa = devfs_add_devswf(&sio_cdevsw, 611 unit | CALLOUT_MASK, DV_CHR, |
612 UID_UUCP, GID_DIALER, 0660, "cuac%n%n", adapter, | 612 UID_UUCP, GID_DIALER, 0660, "cuac%r%r", adapter, |
613 unit % CY_MAX_PORTS); 614 com->devfs_token_cuai = devfs_add_devswf(&sio_cdevsw, 615 unit | CALLOUT_MASK | CONTROL_INIT_STATE, DV_CHR, | 613 unit % CY_MAX_PORTS); 614 com->devfs_token_cuai = devfs_add_devswf(&sio_cdevsw, 615 unit | CALLOUT_MASK | CONTROL_INIT_STATE, DV_CHR, |
616 UID_UUCP, GID_DIALER, 0660, "cuaic%n%n", adapter, | 616 UID_UUCP, GID_DIALER, 0660, "cuaic%r%r", adapter, |
617 unit % CY_MAX_PORTS); 618 com->devfs_token_cual = devfs_add_devswf(&sio_cdevsw, 619 unit | CALLOUT_MASK | CONTROL_LOCK_STATE, DV_CHR, | 617 unit % CY_MAX_PORTS); 618 com->devfs_token_cual = devfs_add_devswf(&sio_cdevsw, 619 unit | CALLOUT_MASK | CONTROL_LOCK_STATE, DV_CHR, |
620 UID_UUCP, GID_DIALER, 0660, "cualc%n%n", adapter, | 620 UID_UUCP, GID_DIALER, 0660, "cualc%r%r", adapter, |
621 unit % CY_MAX_PORTS); 622#endif 623 } 624 } 625 626 /* ensure an edge for the next interrupt */ 627 cd_outb(cy_iobase, CY_CLEAR_INTR, cy_align, 0); 628 --- 1959 unchanged lines hidden --- | 621 unit % CY_MAX_PORTS); 622#endif 623 } 624 } 625 626 /* ensure an edge for the next interrupt */ 627 cd_outb(cy_iobase, CY_CLEAR_INTR, cy_align, 0); 628 --- 1959 unchanged lines hidden --- |