cy.c (47625) | cy.c (47640) |
---|---|
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.88 1999/05/28 13:23:21 bde Exp $ | 30 * $Id: cy.c,v 1.89 1999/05/30 16:52:11 phk Exp $ |
31 */ 32 33#include "opt_compat.h" 34#include "opt_devfs.h" 35 36#include "cy.h" 37 38/* --- 497 unchanged lines hidden (view full) --- 536 537int 538cyattach_common(cy_iobase, cy_align) 539 cy_addr cy_iobase; 540 int cy_align; 541{ 542 int adapter; 543 int cyu; | 31 */ 32 33#include "opt_compat.h" 34#include "opt_devfs.h" 35 36#include "cy.h" 37 38/* --- 497 unchanged lines hidden (view full) --- 536 537int 538cyattach_common(cy_iobase, cy_align) 539 cy_addr cy_iobase; 540 int cy_align; 541{ 542 int adapter; 543 int cyu; |
544 dev_t dev; | |
545 u_char firmware_version; 546 cy_addr iobase; 547 int ncyu; 548 int unit; 549 550 adapter = cy_total_devices; 551 if ((u_int)adapter >= NCY) { 552 printf( --- 75 unchanged lines hidden (view full) --- 628 com->it_in.c_ispeed = com->it_in.c_ospeed = comdefaultrate; 629 com->it_out = com->it_in; 630 631 s = spltty(); 632 com_addr(unit) = com; 633 splx(s); 634 635 if (!sio_registered) { | 544 u_char firmware_version; 545 cy_addr iobase; 546 int ncyu; 547 int unit; 548 549 adapter = cy_total_devices; 550 if ((u_int)adapter >= NCY) { 551 printf( --- 75 unchanged lines hidden (view full) --- 627 com->it_in.c_ispeed = com->it_in.c_ospeed = comdefaultrate; 628 com->it_out = com->it_in; 629 630 s = spltty(); 631 com_addr(unit) = com; 632 splx(s); 633 634 if (!sio_registered) { |
636 dev = makedev(CDEV_MAJOR, 0); 637 cdevsw_add(&dev, &sio_cdevsw, NULL); | 635 cdevsw_add(&sio_cdevsw); |
638 register_swi(SWI_TTY, siopoll); 639 sio_registered = TRUE; 640 } 641#ifdef DEVFS 642 com->devfs_token_ttyd = devfs_add_devswf(&sio_cdevsw, 643 unit, DV_CHR, 644 UID_ROOT, GID_WHEEL, 0600, "ttyc%r%r", adapter, 645 unit % CY_MAX_PORTS); --- 2301 unchanged lines hidden --- | 636 register_swi(SWI_TTY, siopoll); 637 sio_registered = TRUE; 638 } 639#ifdef DEVFS 640 com->devfs_token_ttyd = devfs_add_devswf(&sio_cdevsw, 641 unit, DV_CHR, 642 UID_ROOT, GID_WHEEL, 0600, "ttyc%r%r", adapter, 643 unit % CY_MAX_PORTS); --- 2301 unchanged lines hidden --- |