rc.c (39736) | rc.c (40565) |
---|---|
1/* 2 * Copyright (C) 1995 by Pavel Antonov, Moscow, Russia. 3 * Copyright (C) 1995 by Andrey A. Chernov, Moscow, Russia. 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 158 unchanged lines hidden (view full) --- 167 TTY_FE|TTY_OE, TTY_PE, TTY_PE|TTY_OE, 168 TTY_PE|TTY_FE, TTY_PE|TTY_FE|TTY_OE, TTY_BI, 169 TTY_BI|TTY_OE, TTY_BI|TTY_FE, TTY_BI|TTY_FE|TTY_OE, 170 TTY_BI|TTY_PE, TTY_BI|TTY_PE|TTY_OE, TTY_BI|TTY_PE|TTY_FE, 171 TTY_BI|TTY_PE|TTY_FE|TTY_OE 172}; 173 174/* Static prototypes */ | 1/* 2 * Copyright (C) 1995 by Pavel Antonov, Moscow, Russia. 3 * Copyright (C) 1995 by Andrey A. Chernov, Moscow, Russia. 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 158 unchanged lines hidden (view full) --- 167 TTY_FE|TTY_OE, TTY_PE, TTY_PE|TTY_OE, 168 TTY_PE|TTY_FE, TTY_PE|TTY_FE|TTY_OE, TTY_BI, 169 TTY_BI|TTY_OE, TTY_BI|TTY_FE, TTY_BI|TTY_FE|TTY_OE, 170 TTY_BI|TTY_PE, TTY_BI|TTY_PE|TTY_OE, TTY_BI|TTY_PE|TTY_FE, 171 TTY_BI|TTY_PE|TTY_FE|TTY_OE 172}; 173 174/* Static prototypes */ |
175static ointhand2_t rcintr; |
|
175static void rc_hwreset __P((int, int, unsigned int)); 176static int rc_test __P((int, int)); 177static void rc_discard_output __P((struct rc_chans *)); 178static void rc_hardclose __P((struct rc_chans *)); 179static int rc_modctl __P((struct rc_chans *, int, int)); 180static void rc_start __P((struct tty *)); 181static int rc_param __P((struct tty *, struct termios *)); 182static swihand_t rcpoll; --- 43 unchanged lines hidden (view full) --- 226 struct isa_device *dvp; 227{ 228 register int chan, nec = dvp->id_iobase; 229 struct rc_softc *rcb = &rc_softc[dvp->id_unit]; 230 struct rc_chans *rc = &rc_chans[dvp->id_unit * CD180_NCHAN]; 231 static int rc_started = 0; 232 struct tty *tp; 233 | 176static void rc_hwreset __P((int, int, unsigned int)); 177static int rc_test __P((int, int)); 178static void rc_discard_output __P((struct rc_chans *)); 179static void rc_hardclose __P((struct rc_chans *)); 180static int rc_modctl __P((struct rc_chans *, int, int)); 181static void rc_start __P((struct tty *)); 182static int rc_param __P((struct tty *, struct termios *)); 183static swihand_t rcpoll; --- 43 unchanged lines hidden (view full) --- 227 struct isa_device *dvp; 228{ 229 register int chan, nec = dvp->id_iobase; 230 struct rc_softc *rcb = &rc_softc[dvp->id_unit]; 231 struct rc_chans *rc = &rc_chans[dvp->id_unit * CD180_NCHAN]; 232 static int rc_started = 0; 233 struct tty *tp; 234 |
235 dvp->id_ointr = rcintr; 236 |
|
234 /* Thorooughly test the device */ 235 if (rcb->rcb_probed != RC_PROBED) 236 return 0; 237 rcb->rcb_addr = nec; 238 rcb->rcb_dtr = 0; 239 rcb->rcb_baserc = rc; 240 rcb->rcb_unit = dvp->id_unit; 241 /*rcb->rcb_chipid = 0x10 + dvp->id_unit;*/ --- 31 unchanged lines hidden (view full) --- 273 register_swi(SWI_TTY, rcpoll); 274 rc_wakeup((void *)NULL); 275 rc_started = 0; 276 } 277 return 1; 278} 279 280/* RC interrupt handling */ | 237 /* Thorooughly test the device */ 238 if (rcb->rcb_probed != RC_PROBED) 239 return 0; 240 rcb->rcb_addr = nec; 241 rcb->rcb_dtr = 0; 242 rcb->rcb_baserc = rc; 243 rcb->rcb_unit = dvp->id_unit; 244 /*rcb->rcb_chipid = 0x10 + dvp->id_unit;*/ --- 31 unchanged lines hidden (view full) --- 276 register_swi(SWI_TTY, rcpoll); 277 rc_wakeup((void *)NULL); 278 rc_started = 0; 279 } 280 return 1; 281} 282 283/* RC interrupt handling */ |
281void rcintr(unit) | 284static void 285rcintr(unit) |
282 int unit; 283{ 284 register struct rc_softc *rcb = &rc_softc[unit]; 285 register struct rc_chans *rc; 286 register int nec, resid; 287 register u_char val, iack, bsr, ucnt, *optr; 288 int good_data, t_state; 289 --- 1220 unchanged lines hidden --- | 286 int unit; 287{ 288 register struct rc_softc *rcb = &rc_softc[unit]; 289 register struct rc_chans *rc; 290 register int nec, resid; 291 register u_char val, iack, bsr, ucnt, *optr; 292 int good_data, t_state; 293 --- 1220 unchanged lines hidden --- |