Deleted Added
full compact
si.c (11609) si.c (11872)
1/*
2 * Device driver for Specialix range (SLXOS) 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 (SLXOS) 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.9 1995/09/22 20:00:12 peter Exp $
33 * $Id: si.c,v 1.10 1995/10/21 09:10:49 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

--- 1151 unchanged lines hidden (view full) ---

1193static int
1194si_Sioctl(dev_t dev, int cmd, caddr_t data, int flag, struct proc *p)
1195{
1196 struct si_softc *xsc;
1197 register struct si_port *xpp;
1198 volatile struct si_reg *regp;
1199 struct si_tcsi *dp;
1200 struct si_pstat *sps;
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

--- 1151 unchanged lines hidden (view full) ---

1193static int
1194si_Sioctl(dev_t dev, int cmd, caddr_t data, int flag, struct proc *p)
1195{
1196 struct si_softc *xsc;
1197 register struct si_port *xpp;
1198 volatile struct si_reg *regp;
1199 struct si_tcsi *dp;
1200 struct si_pstat *sps;
1201 BYTE *bp;
1202 int i, *ip, error = 0;
1201 int *ip, error = 0;
1203 int oldspl;
1204 int card, port;
1202 int oldspl;
1203 int card, port;
1205 unsigned short *usp;
1206 int mynor = minor(dev);
1207
1208 DPRINT((0, DBG_ENTRY|DBG_IOCTL, "si_Sioctl(%x,%x,%x,%x)\n",
1209 dev, cmd, data, flag));
1210
1211#if 1
1212 DPRINT((0, DBG_IOCTL, "TCSI_PORT=%x\n", TCSI_PORT));
1213 DPRINT((0, DBG_IOCTL, "TCSI_CCB=%x\n", TCSI_CCB));

--- 456 unchanged lines hidden (view full) ---

1670siintr(int unit)
1671{
1672 register struct si_softc *sc;
1673
1674 register struct si_port *pp;
1675 volatile struct si_channel *ccbp;
1676 register struct tty *tp;
1677 volatile caddr_t maddr;
1204 int mynor = minor(dev);
1205
1206 DPRINT((0, DBG_ENTRY|DBG_IOCTL, "si_Sioctl(%x,%x,%x,%x)\n",
1207 dev, cmd, data, flag));
1208
1209#if 1
1210 DPRINT((0, DBG_IOCTL, "TCSI_PORT=%x\n", TCSI_PORT));
1211 DPRINT((0, DBG_IOCTL, "TCSI_CCB=%x\n", TCSI_CCB));

--- 456 unchanged lines hidden (view full) ---

1668siintr(int unit)
1669{
1670 register struct si_softc *sc;
1671
1672 register struct si_port *pp;
1673 volatile struct si_channel *ccbp;
1674 register struct tty *tp;
1675 volatile caddr_t maddr;
1678 BYTE op, ip, cc;
1676 BYTE op, ip;
1679 int x, card, port, n, i;
1680 volatile BYTE *z;
1681 BYTE c;
1682
1683 DPRINT((0, (unit < 0) ? DBG_POLL:DBG_INTR, "siintr(%d)\n", unit));
1684 if (in_intr) {
1685 if (unit < 0) /* should never happen */
1686 return;

--- 523 unchanged lines hidden ---
1677 int x, card, port, n, i;
1678 volatile BYTE *z;
1679 BYTE c;
1680
1681 DPRINT((0, (unit < 0) ? DBG_POLL:DBG_INTR, "siintr(%d)\n", unit));
1682 if (in_intr) {
1683 if (unit < 0) /* should never happen */
1684 return;

--- 523 unchanged lines hidden ---