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
--- 1166 unchanged lines hidden (view full) ---
1175 }
1176}
1177
1178static
1179int
1180rpattach(dev)
1181struct isa_device *dev;
1182{
1183 struct isa_device *idev;
1184 dev_t rp_dev;
1185 int iobase, unit, /*rpmajor,*/ oldspl;
1186 int num_ports, num_chan, num_aiops;
1187 int aiop, chan, port;
1188 int ChanStatus, line, i, count;
1189 unsigned int aiopio[MAX_AIOPS_PER_BOARD];
1190 struct rp_port *rp;
1191 struct tty *tty;
--- 83 unchanged lines hidden (view full) ---
1275 }
1276 ChanStatus = sGetChanStatus(&rp->rp_channel);
1277 rp->rp_cts = (ChanStatus & CTS_ACT) != 0;
1278 line = (unit << 5) | (aiop << 3) | chan;
1279 rp_table(line) = rp;
1280 }
1281 }
1282
1283 idev = find_isadev(isa_devtab_tty, &rpdriver,
1284 RP_MPMASTER(dev) + rp_pcicount);
1285 if(idev == NULL) {
1286 printf("rp%d: master device %d not configured\n",
1287 dev->id_unit, RP_MPMASTER(dev));
1288 }
1289/* printf("COOL!! Device is found!!\n");
1290 for(rpmajor=0;rpmajor<nchrdev;rpmajor++)
1291 if(cdevsw[rpmajor].d_open == rpopen)
1292 printf("From %d entries: Found entry at major = %d\n",nchrdev,rpmajor);
1293*/
1294 return(1);
1295}
1296
1297int
--- 756 unchanged lines hidden ---
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
--- 1166 unchanged lines hidden (view full) ---
1175 }
1176}
1177
1178static
1179int
1180rpattach(dev)
1181struct isa_device *dev;
1182{
1183 struct isa_device *idev;
1184 dev_t rp_dev;
1185 int iobase, unit, /*rpmajor,*/ oldspl;
1186 int num_ports, num_chan, num_aiops;
1187 int aiop, chan, port;
1188 int ChanStatus, line, i, count;
1189 unsigned int aiopio[MAX_AIOPS_PER_BOARD];
1190 struct rp_port *rp;
1191 struct tty *tty;
--- 83 unchanged lines hidden (view full) ---
1275 }
1276 ChanStatus = sGetChanStatus(&rp->rp_channel);
1277 rp->rp_cts = (ChanStatus & CTS_ACT) != 0;
1278 line = (unit << 5) | (aiop << 3) | chan;
1279 rp_table(line) = rp;
1280 }
1281 }
1282
1283 idev = find_isadev(isa_devtab_tty, &rpdriver,
1284 RP_MPMASTER(dev) + rp_pcicount);
1285 if(idev == NULL) {
1286 printf("rp%d: master device %d not configured\n",
1287 dev->id_unit, RP_MPMASTER(dev));
1288 }
1289/* printf("COOL!! Device is found!!\n");
1290 for(rpmajor=0;rpmajor<nchrdev;rpmajor++)
1291 if(cdevsw[rpmajor].d_open == rpopen)
1292 printf("From %d entries: Found entry at major = %d\n",nchrdev,rpmajor);
1293*/
1294 return(1);
1295}
1296
1297int
--- 756 unchanged lines hidden ---