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 |
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 |
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}; |
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 |
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 --- |