si.c (15640) | si.c (15683) |
---|---|
1/* 2 * Device driver for Specialix range (SI/XIO) of serial line multiplexors. 3 * 4 * Copyright (C) 1990, 1992 Specialix International, 5 * Copyright (C) 1993, Andy Rutter <andy@acronym.co.uk> 6 * Copyright (C) 1995, Peter Wemm <peter@haywire.dialix.com> 7 * 8 * Originally derived from: SunOS 4.x version --- 16 unchanged lines hidden (view full) --- 25 * International may be used to endorse or promote products derived from 26 * this software without specific prior written permission. 27 * 28 * THIS SOFTWARE IS PROVIDED BY ``AS IS'' AND ANY EXPRESS OR IMPLIED 29 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 30 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN 31 * NO EVENT SHALL THE AUTHORS BE LIABLE. 32 * | 1/* 2 * Device driver for Specialix range (SI/XIO) of serial line multiplexors. 3 * 4 * Copyright (C) 1990, 1992 Specialix International, 5 * Copyright (C) 1993, Andy Rutter <andy@acronym.co.uk> 6 * Copyright (C) 1995, Peter Wemm <peter@haywire.dialix.com> 7 * 8 * Originally derived from: SunOS 4.x version --- 16 unchanged lines hidden (view full) --- 25 * International may be used to endorse or promote products derived from 26 * this software without specific prior written permission. 27 * 28 * THIS SOFTWARE IS PROVIDED BY ``AS IS'' AND ANY EXPRESS OR IMPLIED 29 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 30 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN 31 * NO EVENT SHALL THE AUTHORS BE LIABLE. 32 * |
33 * $Id: si.c,v 1.38 1996/05/05 17:09:04 peter Exp $ | 33 * $Id: si.c,v 1.39 1996/05/05 17:35:19 peter Exp $ |
34 */ 35 36#ifndef lint 37static char si_copyright1[] = "@(#) (C) Specialix International, 1990,1992", 38 si_copyright2[] = "@(#) (C) Andy Rutter 1993", 39 si_copyright3[] = "@(#) (C) Peter Wemm 1995"; 40#endif /* not lint */ 41 --- 5 unchanged lines hidden (view full) --- 47#include <sys/proc.h> 48#include <sys/conf.h> 49#include <sys/file.h> 50#include <sys/uio.h> 51#include <sys/dkstat.h> 52#include <sys/kernel.h> 53#include <sys/syslog.h> 54#include <sys/malloc.h> | 34 */ 35 36#ifndef lint 37static char si_copyright1[] = "@(#) (C) Specialix International, 1990,1992", 38 si_copyright2[] = "@(#) (C) Andy Rutter 1993", 39 si_copyright3[] = "@(#) (C) Peter Wemm 1995"; 40#endif /* not lint */ 41 --- 5 unchanged lines hidden (view full) --- 47#include <sys/proc.h> 48#include <sys/conf.h> 49#include <sys/file.h> 50#include <sys/uio.h> 51#include <sys/dkstat.h> 52#include <sys/kernel.h> 53#include <sys/syslog.h> 54#include <sys/malloc.h> |
55#include <sys/sysctl.h> |
|
55#include <sys/devconf.h> 56#ifdef DEVFS 57#include <sys/devfsext.h> 58#endif /*DEVFS*/ 59 60#include <machine/clock.h> 61 62#include <vm/vm.h> --- 160 unchanged lines hidden (view full) --- 223static int si_default_lflag = 0; 224#ifdef SI_DEF_HWFLOW 225static int si_default_cflag = TTYDEF_CFLAG | CRTSCTS; 226#else 227static int si_default_cflag = TTYDEF_CFLAG; 228#endif 229 230#ifdef POLL | 56#include <sys/devconf.h> 57#ifdef DEVFS 58#include <sys/devfsext.h> 59#endif /*DEVFS*/ 60 61#include <machine/clock.h> 62 63#include <vm/vm.h> --- 160 unchanged lines hidden (view full) --- 224static int si_default_lflag = 0; 225#ifdef SI_DEF_HWFLOW 226static int si_default_cflag = TTYDEF_CFLAG | CRTSCTS; 227#else 228static int si_default_cflag = TTYDEF_CFLAG; 229#endif 230 231#ifdef POLL |
231static int si_pollrate = (hz / 10); /* 10 per second, in addition to irq */ | 232static int si_pollrate; /* in addition to irq */ |
232 233SYSCTL_INT(_machdep, OID_AUTO, si_pollrate, CTLFLAG_RD, &si_pollrate, 0, ""); 234 235static int init_finished = 0; 236static int fastpoll = 0; 237static void si_poll __P((void *)); 238#endif 239 --- 43 unchanged lines hidden (view full) --- 283 int type; 284 u_int i, ramsize; 285 volatile BYTE was, *ux; 286 volatile unsigned char *maddr; 287 unsigned char *paddr; 288 289 si_registerdev(id); 290 | 233 234SYSCTL_INT(_machdep, OID_AUTO, si_pollrate, CTLFLAG_RD, &si_pollrate, 0, ""); 235 236static int init_finished = 0; 237static int fastpoll = 0; 238static void si_poll __P((void *)); 239#endif 240 --- 43 unchanged lines hidden (view full) --- 284 int type; 285 u_int i, ramsize; 286 volatile BYTE was, *ux; 287 volatile unsigned char *maddr; 288 unsigned char *paddr; 289 290 si_registerdev(id); 291 |
292 si_pollrate = (hz / 10); /* 10 per second */ 293 |
|
291 maddr = id->id_maddr; /* virtual address... */ 292 paddr = (caddr_t)vtophys(id->id_maddr); /* physical address... */ 293 294 DPRINT((0, DBG_AUTOBOOT, "si%d: probe at virtual=0x%x physical=0x%x\n", 295 id->id_unit, id->id_maddr, paddr)); 296 297 /* 298 * this is a lie, but it's easier than trying to handle caching --- 2095 unchanged lines hidden --- | 294 maddr = id->id_maddr; /* virtual address... */ 295 paddr = (caddr_t)vtophys(id->id_maddr); /* physical address... */ 296 297 DPRINT((0, DBG_AUTOBOOT, "si%d: probe at virtual=0x%x physical=0x%x\n", 298 id->id_unit, id->id_maddr, paddr)); 299 300 /* 301 * this is a lie, but it's easier than trying to handle caching --- 2095 unchanged lines hidden --- |