summaryrefslogtreecommitdiffstats
path: root/sys/i4b/layer1
diff options
context:
space:
mode:
authoreivind <eivind@FreeBSD.org>1999-01-12 11:05:03 +0000
committereivind <eivind@FreeBSD.org>1999-01-12 11:05:03 +0000
commit10fe024e74a62f0e6658d88d9ffcb055d77e6c56 (patch)
treee001ca5cdf3b45d65738514da777d6e11a3b83e4 /sys/i4b/layer1
parent781ad75bd78c6d6d2e55bd641f1b7c19cecc5ada (diff)
downloadFreeBSD-src-10fe024e74a62f0e6658d88d9ffcb055d77e6c56.zip
FreeBSD-src-10fe024e74a62f0e6658d88d9ffcb055d77e6c56.tar.gz
Silence warnings.
Approved by: hm
Diffstat (limited to 'sys/i4b/layer1')
-rw-r--r--sys/i4b/layer1/i4b_elsa_qs1i.c7
-rw-r--r--sys/i4b/layer1/i4b_isic_pci.c6
-rw-r--r--sys/i4b/layer1/i4b_isic_pcmcia.c6
-rw-r--r--sys/i4b/layer1/i4b_itk_ix1.c3
4 files changed, 13 insertions, 9 deletions
diff --git a/sys/i4b/layer1/i4b_elsa_qs1i.c b/sys/i4b/layer1/i4b_elsa_qs1i.c
index a3c8ddc..a6b5181 100644
--- a/sys/i4b/layer1/i4b_elsa_qs1i.c
+++ b/sys/i4b/layer1/i4b_elsa_qs1i.c
@@ -27,7 +27,7 @@
* isic - I4B Siemens ISDN Chipset Driver for ELSA Quickstep 1000pro ISA
* =====================================================================
*
- * $Id: i4b_elsa_qs1i.c,v 1.12 1998/12/16 09:32:50 hm Exp $
+ * $Id: i4b_elsa_qs1i.c,v 1.1 1998/12/27 21:46:45 phk Exp $
*
* last edit-date: [Mon Dec 14 17:27:08 1998]
*
@@ -86,7 +86,7 @@
#include <i4b/layer1/i4b_hscx.h>
#ifdef __FreeBSD__
-static void i4b_eq1i_clrirq(void* base);
+/* static void i4b_eq1i_clrirq(void* base); */
#else
static void i4b_eq1i_clrirq(struct isic_softc *sc);
void isic_attach_Eqs1pi __P((struct isic_softc *sc));
@@ -125,12 +125,13 @@ void isic_attach_Eqs1pi __P((struct isic_softc *sc));
* ELSA QuickStep 1000pro/ISA clear IRQ routine
*---------------------------------------------------------------------------*/
#ifdef __FreeBSD__
+#ifdef notdef
static void
i4b_eq1i_clrirq(void* base)
{
outb((u_int)base + ELSA_OFF_IRQ, 0);
}
-
+#endif
#else
static void
i4b_eq1i_clrirq(struct isic_softc *sc)
diff --git a/sys/i4b/layer1/i4b_isic_pci.c b/sys/i4b/layer1/i4b_isic_pci.c
index 3aebf08..bd6d4fd 100644
--- a/sys/i4b/layer1/i4b_isic_pci.c
+++ b/sys/i4b/layer1/i4b_isic_pci.c
@@ -27,7 +27,7 @@
* i4b_isic_pci.c - PCI bus interface
* ==================================
*
- * $Id: i4b_isic_pci.c,v 1.9 1998/12/05 18:04:48 hm Exp $
+ * $Id: i4b_isic_pci.c,v 1.1 1998/12/27 21:46:46 phk Exp $
*
* last edit-date: [Sat Dec 5 18:24:36 1998]
*
@@ -87,7 +87,7 @@
#define PORT0_MAPOFF 4
#define PORT1_MAPOFF 12
-static char* i4b_pci_probe(pcici_t tag, pcidi_t type);
+static const char* i4b_pci_probe(pcici_t tag, pcidi_t type);
static void i4b_pci_attach(pcici_t config_id, int unit);
static int isic_pciattach(int unit, u_long type, u_int iobase1, u_int iobase2);
@@ -109,7 +109,7 @@ static void isic_pci_intr_sc(struct isic_softc *sc);
/*---------------------------------------------------------------------------*
* PCI probe routine
*---------------------------------------------------------------------------*/
-static char *
+static const char *
i4b_pci_probe(pcici_t tag, pcidi_t type)
{
switch(type)
diff --git a/sys/i4b/layer1/i4b_isic_pcmcia.c b/sys/i4b/layer1/i4b_isic_pcmcia.c
index a1fb22a..5dc9754 100644
--- a/sys/i4b/layer1/i4b_isic_pcmcia.c
+++ b/sys/i4b/layer1/i4b_isic_pcmcia.c
@@ -35,7 +35,7 @@
* i4b_isic_pcmcia.c - i4b FreeBSD PCMCIA support
* ----------------------------------------------
*
- * $Id: i4b_isic_pcmcia.c,v 1.3 1998/12/16 09:32:50 hm Exp $
+ * $Id: i4b_isic_pcmcia.c,v 1.1 1998/12/27 21:46:46 phk Exp $
*
* last edit-date: [Mon Dec 14 17:30:09 1998]
*
@@ -84,6 +84,9 @@
#include <i4b/include/i4b_mbuf.h>
#include <i4b/include/i4b_global.h>
+extern int isicattach(struct isa_device *dev);
+extern void isicintr(int unit);
+
/*
* PC-Card (PCMCIA) specific code.
*/
@@ -112,7 +115,6 @@ static int isic_pccard_init(devi)
struct pccard_devinfo *devi;
{
struct isa_device *is = &devi->isahd;
- struct isic_softc *sc = &isic_sc[is->id_unit];
if ((1 << is->id_unit) & opened)
return(EBUSY);
diff --git a/sys/i4b/layer1/i4b_itk_ix1.c b/sys/i4b/layer1/i4b_itk_ix1.c
index f7491cd..cd70dbf 100644
--- a/sys/i4b/layer1/i4b_itk_ix1.c
+++ b/sys/i4b/layer1/i4b_itk_ix1.c
@@ -26,7 +26,7 @@
* i4b_itk_ix1.c - ITK ix1 micro passive card driver for isdn4bsd
* --------------------------------------------------------------
*
- * $Id: i4b_itk_ix1.c,v 1.1 1998/12/16 13:43:20 hm Exp $
+ * $Id: i4b_itk_ix1.c,v 1.1 1998/12/27 21:46:46 phk Exp $
*
* last edit-date: [Wed Dec 16 14:46:36 1998]
*
@@ -406,6 +406,7 @@ itkix1_read_reg(u_char *base, u_int offset)
outb(port+ITK_ALE, HSCXB+offset);
return (inb(port+ITK_HSCX_DATA));
}
+ panic("itkix1_read_reg: Fallthrough\n");
}
#else
static u_int8_t itkix1_read_reg(struct isic_softc *sc, int what, bus_size_t offs)
OpenPOWER on IntegriCloud