summaryrefslogtreecommitdiffstats
path: root/sys/gnu/i386
diff options
context:
space:
mode:
authorgpalmer <gpalmer@FreeBSD.org>1996-06-12 05:11:41 +0000
committergpalmer <gpalmer@FreeBSD.org>1996-06-12 05:11:41 +0000
commit57c3ebc617f6ed31240847c6fce74931a372824c (patch)
treec727af841ff654969571e10a8dc92e2a987cd0c2 /sys/gnu/i386
parentd356aa8b627cecbc5a3a5e98327366686498962d (diff)
downloadFreeBSD-src-57c3ebc617f6ed31240847c6fce74931a372824c.zip
FreeBSD-src-57c3ebc617f6ed31240847c6fce74931a372824c.tar.gz
Clean up -Wunused warnings.
Reviewed by: bde
Diffstat (limited to 'sys/gnu/i386')
-rw-r--r--sys/gnu/i386/isa/dgb.c22
-rw-r--r--sys/gnu/i386/isa/dgreg.h4
-rw-r--r--sys/gnu/i386/isa/nic3008.c17
-rw-r--r--sys/gnu/i386/isa/nic3008.h13
-rw-r--r--sys/gnu/i386/isa/nic3009.c13
-rw-r--r--sys/gnu/i386/isa/nic3009.h13
-rw-r--r--sys/gnu/i386/isa/niccyreg.h13
7 files changed, 55 insertions, 40 deletions
diff --git a/sys/gnu/i386/isa/dgb.c b/sys/gnu/i386/isa/dgb.c
index a73fb53..243c424 100644
--- a/sys/gnu/i386/isa/dgb.c
+++ b/sys/gnu/i386/isa/dgb.c
@@ -1,5 +1,5 @@
/*-
- * dgb.c $Id: dgb.c,v 1.16 1996/03/28 14:27:26 scrappy Exp $
+ * dgb.c $Id: dgb.c,v 1.17 1996/03/29 11:39:08 bde Exp $
*
* Digiboard driver.
*
@@ -168,7 +168,6 @@ static struct tty dgb_tty[NDGBPORTS];
*/
/* Interrupt handling entry points. */
-static void dgbintr __P((int unit));
static void dgbpoll __P((void *unit_c));
/* Device switch entry points. */
@@ -211,8 +210,6 @@ static struct cdevsw dgb_cdevsw =
ttselect, nommap, NULL, "dgb", NULL, -1 };
static speed_t dgbdefaultrate = TTYDEF_SPEED;
-static u_int dgb_events; /* input chars + weighted output completions */
-static int dgbmajor;
static struct speedtab dgbspeedtab[] = {
0, 0, /* old (sysV-like) Bx codes */
@@ -240,9 +237,6 @@ static int dgbdebug=0;
SYSCTL_INT(_debug, OID_AUTO, dgb_debug, CTLFLAG_RW,
&dgbdebug, 0, "");
-
-static int polltimeout=0;
-
static int setwin __P((struct dgb_softc *sc, unsigned addr));
static int setinitwin __P((struct dgb_softc *sc, unsigned addr));
static void hidewin __P((struct dgb_softc *sc));
@@ -305,10 +299,8 @@ dgbprobe(dev)
struct isa_device *dev;
{
struct dgb_softc *sc= &dgb_softc[dev->id_unit];
- int i, v, t;
+ int i, v;
u_long win_size; /* size of vizible memory window */
- u_char *mem;
- int addr;
int unit=dev->id_unit;
sc->unit=dev->id_unit;
@@ -451,7 +443,6 @@ dgbattach(dev)
int addr;
struct dgb_p *port;
struct board_chan *bc;
- struct global_data *gd;
int shrinkmem;
int nfails;
ushort *pstat;
@@ -1127,7 +1118,6 @@ dgbhardclose(port)
{
struct dgb_softc *sc=&dgb_softc[port->unit];
struct board_chan *bc=port->brdchan;
- int s;
setwin(sc,0);
@@ -1424,12 +1414,6 @@ dgbpoll(unit_c)
timeout(dgbpoll, unit_c, hz/25);
}
-static void
-dgbintr(unit)
- int unit;
-{
-}
-
static int
dgbioctl(dev, cmd, data, flag, p)
dev_t dev;
@@ -1680,7 +1664,6 @@ static int
dgbdrain(port)
struct dgb_p *port;
{
- struct tty *tp=port->tty;
struct dgb_softc *sc=&dgb_softc[port->unit];
struct board_chan *bc=port->brdchan;
int error;
@@ -1787,7 +1770,6 @@ dgbparam(tp, t)
struct termios *t;
{
int dev=tp->t_dev;
- int mynor=minor(dev);
int unit=MINOR_TO_UNIT(dev);
int pnum=MINOR_TO_PORT(dev);
struct dgb_softc *sc=&dgb_softc[unit];
diff --git a/sys/gnu/i386/isa/dgreg.h b/sys/gnu/i386/isa/dgreg.h
index 93f327d..3864d07 100644
--- a/sys/gnu/i386/isa/dgreg.h
+++ b/sys/gnu/i386/isa/dgreg.h
@@ -1,5 +1,5 @@
/*-
- * dgreg.h $Id: dgreg.h,v 1.2 1995/10/04 21:51:26 jkh Exp $
+ * dgreg.h $Id: dgreg.h,v 1.3 1995/12/22 16:08:15 bde Exp $
*
* Digiboard driver.
*
@@ -253,7 +253,7 @@ struct board_chan {
#define PCXE 1
#define PCXEVE 2
-static char *board_desc[] = {
+static char * const board_desc[] = {
"PC/Xi (64K)",
"PC/Xe (64K)",
"PC/Xe (8K) ",
diff --git a/sys/gnu/i386/isa/nic3008.c b/sys/gnu/i386/isa/nic3008.c
index b3b8907..3561e6f 100644
--- a/sys/gnu/i386/isa/nic3008.c
+++ b/sys/gnu/i386/isa/nic3008.c
@@ -1,6 +1,6 @@
-static char nic38_id[] = "@(#)$Id: nic3008.c,v 1.14 1995/12/17 21:14:34 phk Exp $";
-/*******************************************************************************
- * II - Version 0.1 $Revision: 1.14 $ $State: Exp $
+/* @(#)$Id: nic3008.c,v 1.15 1996/03/28 14:27:27 scrappy Exp $
+ *******************************************************************************
+ * II - Version 0.1 $Revision: 1.15 $ $State: Exp $
*
* Copyright 1994 Dietmar Friede
*******************************************************************************
@@ -10,6 +10,11 @@ static char nic38_id[] = "@(#)$Id: nic3008.c,v 1.14 1995/12/17 21:14:34 phk
*
*******************************************************************************
* $Log: nic3008.c,v $
+ * Revision 1.15 1996/03/28 14:27:27 scrappy
+ * Switched from using devfs_add_sw() to using devfs_add_swf()
+ *
+ * Reviewed by: julian@freebsd.org
+ *
* Revision 1.14 1995/12/17 21:14:34 phk
* Staticize.
*
@@ -521,7 +526,7 @@ nic_output(int cn)
int mb = C_CHAN(cn) ? 7 : 5;
dpr_type *dpr = sc->sc_dpr;
mbx_type *mbx = &dpr->dpr_mbx[mb];
- int r, l;
+ int l;
u_char *b = (u_char *) dpr;
int len= ctrl->o_len;
char *buf= ctrl->o_buf;
@@ -696,8 +701,7 @@ static int
nicioctl(dev_t dev, int cmd, caddr_t data, int flags, struct proc *p)
{
int error;
- u_char unit;
- int i, x;
+ int x;
struct nic_softc *sc = &nic_sc[minor(dev)];
dpr_type *dpr = sc->sc_dpr;
mbx_type *mbx;
@@ -973,7 +977,6 @@ b_intr(int mb, int c, struct nic_softc * sc)
case 9: /* DATA B3 IND */
{
u_char *b = (u_char *) dpr;
- u_char mno;
b += dpr->buf_ptr[mb];
if (mbx->more_data)
diff --git a/sys/gnu/i386/isa/nic3008.h b/sys/gnu/i386/isa/nic3008.h
index da82696..5a87409 100644
--- a/sys/gnu/i386/isa/nic3008.h
+++ b/sys/gnu/i386/isa/nic3008.h
@@ -1,5 +1,5 @@
-static char nic38hid[] = "@(#)$Id: nic3008.h,v 1.1 1995/01/25 14:06:18 jkr Exp jkr $";
-/*******************************************************************************
+/* @(#)$Id: nic3008.h,v 1.1 1995/02/14 15:00:12 jkh Exp $
+ *******************************************************************************
* II - Version 0.1 $Revision: 1.1 $ $State: Exp $
*
* Copyright 1994 Dietmar Friede
@@ -10,6 +10,15 @@ static char nic38hid[] = "@(#)$Id: nic3008.h,v 1.1 1995/01/25 14:06:18 jkr E
*
*******************************************************************************
* $Log: nic3008.h,v $
+ * Revision 1.1 1995/02/14 15:00:12 jkh
+ * An ISDN driver that supports the EDSS1 and the 1TR6 ISDN interfaces.
+ * EDSS1 is the "Euro-ISDN", 1TR6 is the soon obsolete german ISDN Interface.
+ * Obtained from: Dietmar Friede <dfriede@drnhh.neuhaus.de> and
+ * Juergen Krause <jkr@saarlink.de>
+ *
+ * This is only one part - the rest to follow in a couple of hours.
+ * This part is a benign import, since it doesn't affect anything else.
+ *
*
******************************************************************************/
diff --git a/sys/gnu/i386/isa/nic3009.c b/sys/gnu/i386/isa/nic3009.c
index 314b645..2e5a322 100644
--- a/sys/gnu/i386/isa/nic3009.c
+++ b/sys/gnu/i386/isa/nic3009.c
@@ -1,6 +1,6 @@
-static char nic39_id[] = "@(#)$Id: nic3009.c,v 1.14 1995/12/17 21:14:36 phk Exp $";
-/*******************************************************************************
- * II - Version 0.1 $Revision: 1.14 $ $State: Exp $
+/* @(#)$Id: nic3009.c,v 1.15 1996/03/28 14:27:28 scrappy Exp $
+ *******************************************************************************
+ * II - Version 0.1 $Revision: 1.15 $ $State: Exp $
*
* Copyright 1994 Dietmar Friede
*******************************************************************************
@@ -10,6 +10,11 @@ static char nic39_id[] = "@(#)$Id: nic3009.c,v 1.14 1995/12/17 21:14:36 phk
*
*******************************************************************************
* $Log: nic3009.c,v $
+ * Revision 1.15 1996/03/28 14:27:28 scrappy
+ * Switched from using devfs_add_sw() to using devfs_add_swf()
+ *
+ * Reviewed by: julian@freebsd.org
+ *
* Revision 1.14 1995/12/17 21:14:36 phk
* Staticize.
*
@@ -603,8 +608,6 @@ nnicopen(dev_t dev, int flags, int fmt, struct proc *p)
struct nnic_softc *sc;
u_char unit;
int x;
- unsigned error;
- u_char b= 0xff;
unit = minor(dev);
/* minor number out of limits ? */
diff --git a/sys/gnu/i386/isa/nic3009.h b/sys/gnu/i386/isa/nic3009.h
index 223619f..8e794cc 100644
--- a/sys/gnu/i386/isa/nic3009.h
+++ b/sys/gnu/i386/isa/nic3009.h
@@ -1,5 +1,5 @@
-static char nic39hid[] = "@(#)$Id: nic3009.h,v 1.1 1995/01/25 14:06:18 jkr Exp jkr $";
-/*******************************************************************************
+/* @(#)$Id: nic3009.h,v 1.1 1995/02/14 15:00:16 jkh Exp $
+ *******************************************************************************
* II - Version 0.1 $Revision: 1.1 $ $State: Exp $
*
* Copyright 1994 Dietmar Friede
@@ -10,6 +10,15 @@ static char nic39hid[] = "@(#)$Id: nic3009.h,v 1.1 1995/01/25 14:06:18 jkr E
*
*******************************************************************************
* $Log: nic3009.h,v $
+ * Revision 1.1 1995/02/14 15:00:16 jkh
+ * An ISDN driver that supports the EDSS1 and the 1TR6 ISDN interfaces.
+ * EDSS1 is the "Euro-ISDN", 1TR6 is the soon obsolete german ISDN Interface.
+ * Obtained from: Dietmar Friede <dfriede@drnhh.neuhaus.de> and
+ * Juergen Krause <jkr@saarlink.de>
+ *
+ * This is only one part - the rest to follow in a couple of hours.
+ * This part is a benign import, since it doesn't affect anything else.
+ *
*
******************************************************************************/
diff --git a/sys/gnu/i386/isa/niccyreg.h b/sys/gnu/i386/isa/niccyreg.h
index a9d8328..a696148 100644
--- a/sys/gnu/i386/isa/niccyreg.h
+++ b/sys/gnu/i386/isa/niccyreg.h
@@ -1,5 +1,5 @@
-static char nicregh_id[] = "@(#)$Id: niccyreg.h,v 1.1 1995/01/25 14:06:18 jkr Exp jkr $";
-/*******************************************************************************
+/* @(#)$Id: niccyreg.h,v 1.1 1995/02/14 15:00:19 jkh Exp $
+ *******************************************************************************
* II - Version 0.1 $Revision: 1.1 $ $State: Exp $
*
* Copyright 1994 Dietmar Friede
@@ -10,6 +10,15 @@ static char nicregh_id[] = "@(#)$Id: niccyreg.h,v 1.1 1995/01/25 14:06:18 jk
*
*******************************************************************************
* $Log: niccyreg.h,v $
+ * Revision 1.1 1995/02/14 15:00:19 jkh
+ * An ISDN driver that supports the EDSS1 and the 1TR6 ISDN interfaces.
+ * EDSS1 is the "Euro-ISDN", 1TR6 is the soon obsolete german ISDN Interface.
+ * Obtained from: Dietmar Friede <dfriede@drnhh.neuhaus.de> and
+ * Juergen Krause <jkr@saarlink.de>
+ *
+ * This is only one part - the rest to follow in a couple of hours.
+ * This part is a benign import, since it doesn't affect anything else.
+ *
*
******************************************************************************/
OpenPOWER on IntegriCloud