rp.c (37683) | rp.c (38485) |
---|---|
1/* 2 * Copyright (c) Comtrol Corporation <support@comtrol.com> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted prodived that the follwoing conditions 7 * are met. 8 * 1. Redistributions of source code must retain the above copyright --- 774 unchanged lines hidden (view full) --- 783DATA_SET (pcidevice_set, rp_pcidevice); 784 785static timeout_t rpdtrwakeup; 786 787struct isa_driver rpdriver = { 788 rpprobe, rpattach, "rp" 789 }; 790 | 1/* 2 * Copyright (c) Comtrol Corporation <support@comtrol.com> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted prodived that the follwoing conditions 7 * are met. 8 * 1. Redistributions of source code must retain the above copyright --- 774 unchanged lines hidden (view full) --- 783DATA_SET (pcidevice_set, rp_pcidevice); 784 785static timeout_t rpdtrwakeup; 786 787struct isa_driver rpdriver = { 788 rpprobe, rpattach, "rp" 789 }; 790 |
791#define CDEV_MAJOR 81 792 | |
793static char driver_name[] = "rp"; 794 795static d_open_t rpopen; 796static d_close_t rpclose; 797static d_read_t rpread; 798static d_write_t rpwrite; 799static d_ioctl_t rpioctl; 800static d_stop_t rpstop; 801static d_devtotty_t rpdevtotty; 802 | 791static char driver_name[] = "rp"; 792 793static d_open_t rpopen; 794static d_close_t rpclose; 795static d_read_t rpread; 796static d_write_t rpwrite; 797static d_ioctl_t rpioctl; 798static d_stop_t rpstop; 799static d_devtotty_t rpdevtotty; 800 |
803static struct cdevsw rp_cdevsw = 804 { rpopen, rpclose, rpread, rpwrite, 805 rpioctl, rpstop, noreset, rpdevtotty, 806 ttpoll, nommap, NULL, driver_name, 807 NULL, -1}; | 801#define CDEV_MAJOR 81 802static struct cdevsw rp_cdevsw = { 803 rpopen, rpclose, rpread, rpwrite, 804 rpioctl, rpstop, noreset, rpdevtotty, 805 ttpoll, nommap, NULL, driver_name, 806 NULL, -1, nodump, nopsize, 807 D_TTY, 808}; |
808 809static int rp_controller_port = 0; 810static int rp_num_ports_open = 0; 811static int rp_timeout; 812static int ndevs = 0; 813static int minor_to_unit[128]; 814static struct tty rp_tty[128]; 815 --- 579 unchanged lines hidden (view full) --- 1395 ++rp->wopeners; 1396 error = rpparam(tp, &tp->t_termios); 1397 --rp->wopeners; 1398 if(error != 0) { 1399 splx(oldspl); 1400 return(error); 1401 } 1402 | 809 810static int rp_controller_port = 0; 811static int rp_num_ports_open = 0; 812static int rp_timeout; 813static int ndevs = 0; 814static int minor_to_unit[128]; 815static struct tty rp_tty[128]; 816 --- 579 unchanged lines hidden (view full) --- 1396 ++rp->wopeners; 1397 error = rpparam(tp, &tp->t_termios); 1398 --rp->wopeners; 1399 if(error != 0) { 1400 splx(oldspl); 1401 return(error); 1402 } 1403 |
1403 ttsetwater(tp); 1404 | |
1405 rp_num_ports_open++; 1406 1407 IntMask = sGetChanIntID(&rp->rp_channel); 1408 IntMask = IntMask & rp->rp_intmask; 1409 ChanStatus = sGetChanStatus(&rp->rp_channel); 1410 if((IntMask & DELTA_CD) || IS_CALLOUT(dev)) { 1411 if((ChanStatus & CD_ACT) || IS_CALLOUT(dev)) { 1412 (void)(*linesw[tp->t_line].l_modem)(tp, 1); --- 647 unchanged lines hidden --- | 1404 rp_num_ports_open++; 1405 1406 IntMask = sGetChanIntID(&rp->rp_channel); 1407 IntMask = IntMask & rp->rp_intmask; 1408 ChanStatus = sGetChanStatus(&rp->rp_channel); 1409 if((IntMask & DELTA_CD) || IS_CALLOUT(dev)) { 1410 if((ChanStatus & CD_ACT) || IS_CALLOUT(dev)) { 1411 (void)(*linesw[tp->t_line].l_modem)(tp, 1); --- 647 unchanged lines hidden --- |