mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-14 14:55:41 +00:00
Silence warnings.
This commit is contained in:
parent
0044fd3054
commit
d20a303759
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=42546
@ -21,7 +21,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* $Id: if_fe.c,v 1.45 1998/12/15 15:51:37 kato Exp $
|
* $Id: if_fe.c,v 1.46 1998/12/31 03:21:14 kato Exp $
|
||||||
*
|
*
|
||||||
* Device driver for Fujitsu MB86960A/MB86965A based Ethernet cards.
|
* Device driver for Fujitsu MB86960A/MB86965A based Ethernet cards.
|
||||||
* To be used with FreeBSD 3.x
|
* To be used with FreeBSD 3.x
|
||||||
@ -3823,7 +3823,9 @@ fe_get_packet ( struct fe_softc * sc, u_short len )
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef BRIDGE
|
||||||
getit:
|
getit:
|
||||||
|
#endif
|
||||||
/* Strip off the Ethernet header. */
|
/* Strip off the Ethernet header. */
|
||||||
m->m_pkthdr.len -= sizeof ( struct ether_header );
|
m->m_pkthdr.len -= sizeof ( struct ether_header );
|
||||||
m->m_len -= sizeof ( struct ether_header );
|
m->m_len -= sizeof ( struct ether_header );
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $Id: if_lnc.c,v 1.49 1998/11/26 00:53:45 paul Exp $
|
* $Id: if_lnc.c,v 1.50 1998/11/26 00:57:32 paul Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -184,8 +184,8 @@ static void lnc_start __P((struct ifnet *ifp));
|
|||||||
static int lnc_ioctl __P((struct ifnet *ifp, u_long command, caddr_t data));
|
static int lnc_ioctl __P((struct ifnet *ifp, u_long command, caddr_t data));
|
||||||
static void lnc_watchdog __P((struct ifnet *ifp));
|
static void lnc_watchdog __P((struct ifnet *ifp));
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
static void lnc_dump_state __P((struct lnc_softc *sc));
|
void lnc_dump_state __P((struct lnc_softc *sc));
|
||||||
static void mbuf_dump_chain __P((struct mbuf *m));
|
void mbuf_dump_chain __P((struct mbuf *m));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if NPCI > 0
|
#if NPCI > 0
|
||||||
@ -1896,7 +1896,7 @@ lnc_watchdog(struct ifnet *ifp)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
static void
|
void
|
||||||
lnc_dump_state(struct lnc_softc *sc)
|
lnc_dump_state(struct lnc_softc *sc)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
@ -1951,7 +1951,7 @@ lnc_dump_state(struct lnc_softc *sc)
|
|||||||
outw(sc->rap, CSR0);
|
outw(sc->rap, CSR0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
void
|
||||||
mbuf_dump_chain(struct mbuf * m)
|
mbuf_dump_chain(struct mbuf * m)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $Id: if_fea.c,v 1.11 1998/12/09 02:18:53 eivind Exp $
|
* $Id: if_fea.c,v 1.12 1999/01/01 12:35:47 bde Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -207,7 +207,7 @@ pdq_eisa_attach(
|
|||||||
|
|
||||||
sc = malloc(sizeof(*sc), M_DEVBUF, M_NOWAIT);
|
sc = malloc(sizeof(*sc), M_DEVBUF, M_NOWAIT);
|
||||||
if (sc == NULL) {
|
if (sc == NULL) {
|
||||||
printf("fea%d: malloc failed!\n", ed->unit);
|
printf("fea%ld: malloc failed!\n", ed->unit);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
pdqs_eisa[ed->unit] = sc;
|
pdqs_eisa[ed->unit] = sc;
|
||||||
|
@ -768,7 +768,7 @@ void sDisInterrupts(CHANNEL_T *ChP,Word_t Flags)
|
|||||||
static int rpprobe __P((struct isa_device *));
|
static int rpprobe __P((struct isa_device *));
|
||||||
static int rpattach __P((struct isa_device *));
|
static int rpattach __P((struct isa_device *));
|
||||||
|
|
||||||
static char* rp_pciprobe(pcici_t tag, pcidi_t type);
|
static const char* rp_pciprobe(pcici_t tag, pcidi_t type);
|
||||||
static void rp_pciattach(pcici_t tag, int unit);
|
static void rp_pciattach(pcici_t tag, int unit);
|
||||||
static u_long rp_pcicount;
|
static u_long rp_pcicount;
|
||||||
|
|
||||||
@ -1007,7 +1007,7 @@ static void rp_do_poll(void *not_used)
|
|||||||
timeout(rp_do_poll, (void *)NULL, POLL_INTERVAL);
|
timeout(rp_do_poll, (void *)NULL, POLL_INTERVAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
static char*
|
static const char*
|
||||||
rp_pciprobe(pcici_t tag, pcidi_t type)
|
rp_pciprobe(pcici_t tag, pcidi_t type)
|
||||||
{
|
{
|
||||||
int vendor_id;
|
int vendor_id;
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
|
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
|
||||||
* NO EVENT SHALL THE AUTHORS BE LIABLE.
|
* NO EVENT SHALL THE AUTHORS BE LIABLE.
|
||||||
*
|
*
|
||||||
* $Id: si.c,v 1.76 1998/08/23 08:26:40 bde Exp $
|
* $Id: si.c,v 1.77 1998/08/23 10:12:12 bde Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
@ -133,7 +133,7 @@ static u_long sipcieisacount = 0;
|
|||||||
|
|
||||||
#if NPCI > 0
|
#if NPCI > 0
|
||||||
|
|
||||||
static char *sipciprobe __P((pcici_t, pcidi_t));
|
static const char *sipciprobe __P((pcici_t, pcidi_t));
|
||||||
static void sipciattach __P((pcici_t, int));
|
static void sipciattach __P((pcici_t, int));
|
||||||
|
|
||||||
static struct pci_device sipcidev = {
|
static struct pci_device sipcidev = {
|
||||||
@ -316,7 +316,7 @@ static char *si_type[] = {
|
|||||||
|
|
||||||
#if NPCI > 0
|
#if NPCI > 0
|
||||||
|
|
||||||
static char *
|
static const char *
|
||||||
sipciprobe(configid, deviceid)
|
sipciprobe(configid, deviceid)
|
||||||
pcici_t configid;
|
pcici_t configid;
|
||||||
pcidi_t deviceid;
|
pcidi_t deviceid;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $Id: if_wl.c,v 1.18 1998/12/07 21:58:21 archie Exp $ */
|
/* $Id: if_wl.c,v 1.19 1998/12/09 03:30:51 eivind Exp $ */
|
||||||
/*
|
/*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
* modification, are permitted provided that the following conditions
|
* modification, are permitted provided that the following conditions
|
||||||
@ -2549,7 +2549,7 @@ static
|
|||||||
void wl_cache_store (int unit, int base, struct ether_header *eh,
|
void wl_cache_store (int unit, int base, struct ether_header *eh,
|
||||||
struct mbuf *m)
|
struct mbuf *m)
|
||||||
{
|
{
|
||||||
struct ip *ip;
|
struct ip *ip = NULL; /* Avoid GCC warning */
|
||||||
int i;
|
int i;
|
||||||
int signal, silence;
|
int signal, silence;
|
||||||
int w_insertcache; /* computed index for cache entry storage */
|
int w_insertcache; /* computed index for cache entry storage */
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $Id: if_fea.c,v 1.11 1998/12/09 02:18:53 eivind Exp $
|
* $Id: if_fea.c,v 1.12 1999/01/01 12:35:47 bde Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -207,7 +207,7 @@ pdq_eisa_attach(
|
|||||||
|
|
||||||
sc = malloc(sizeof(*sc), M_DEVBUF, M_NOWAIT);
|
sc = malloc(sizeof(*sc), M_DEVBUF, M_NOWAIT);
|
||||||
if (sc == NULL) {
|
if (sc == NULL) {
|
||||||
printf("fea%d: malloc failed!\n", ed->unit);
|
printf("fea%ld: malloc failed!\n", ed->unit);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
pdqs_eisa[ed->unit] = sc;
|
pdqs_eisa[ed->unit] = sc;
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* $Id: if_fe.c,v 1.45 1998/12/15 15:51:37 kato Exp $
|
* $Id: if_fe.c,v 1.46 1998/12/31 03:21:14 kato Exp $
|
||||||
*
|
*
|
||||||
* Device driver for Fujitsu MB86960A/MB86965A based Ethernet cards.
|
* Device driver for Fujitsu MB86960A/MB86965A based Ethernet cards.
|
||||||
* To be used with FreeBSD 3.x
|
* To be used with FreeBSD 3.x
|
||||||
@ -3823,7 +3823,9 @@ fe_get_packet ( struct fe_softc * sc, u_short len )
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef BRIDGE
|
||||||
getit:
|
getit:
|
||||||
|
#endif
|
||||||
/* Strip off the Ethernet header. */
|
/* Strip off the Ethernet header. */
|
||||||
m->m_pkthdr.len -= sizeof ( struct ether_header );
|
m->m_pkthdr.len -= sizeof ( struct ether_header );
|
||||||
m->m_len -= sizeof ( struct ether_header );
|
m->m_len -= sizeof ( struct ether_header );
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $Id: if_lnc.c,v 1.49 1998/11/26 00:53:45 paul Exp $
|
* $Id: if_lnc.c,v 1.50 1998/11/26 00:57:32 paul Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -184,8 +184,8 @@ static void lnc_start __P((struct ifnet *ifp));
|
|||||||
static int lnc_ioctl __P((struct ifnet *ifp, u_long command, caddr_t data));
|
static int lnc_ioctl __P((struct ifnet *ifp, u_long command, caddr_t data));
|
||||||
static void lnc_watchdog __P((struct ifnet *ifp));
|
static void lnc_watchdog __P((struct ifnet *ifp));
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
static void lnc_dump_state __P((struct lnc_softc *sc));
|
void lnc_dump_state __P((struct lnc_softc *sc));
|
||||||
static void mbuf_dump_chain __P((struct mbuf *m));
|
void mbuf_dump_chain __P((struct mbuf *m));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if NPCI > 0
|
#if NPCI > 0
|
||||||
@ -1896,7 +1896,7 @@ lnc_watchdog(struct ifnet *ifp)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
static void
|
void
|
||||||
lnc_dump_state(struct lnc_softc *sc)
|
lnc_dump_state(struct lnc_softc *sc)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
@ -1951,7 +1951,7 @@ lnc_dump_state(struct lnc_softc *sc)
|
|||||||
outw(sc->rap, CSR0);
|
outw(sc->rap, CSR0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
void
|
||||||
mbuf_dump_chain(struct mbuf * m)
|
mbuf_dump_chain(struct mbuf * m)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $Id: if_rdp.c,v 1.1.1.1 1998/12/21 12:43:35 j Exp $
|
* $Id: if_rdp.c,v 1.2 1998/12/21 18:11:10 joerg Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -109,6 +109,7 @@
|
|||||||
* 2 - debug EEPROM IO
|
* 2 - debug EEPROM IO
|
||||||
* 4 - debug interrupt status
|
* 4 - debug interrupt status
|
||||||
*/
|
*/
|
||||||
|
#undef DEBUG
|
||||||
#define DEBUG 0
|
#define DEBUG 0
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $Id: if_wl.c,v 1.18 1998/12/07 21:58:21 archie Exp $ */
|
/* $Id: if_wl.c,v 1.19 1998/12/09 03:30:51 eivind Exp $ */
|
||||||
/*
|
/*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
* modification, are permitted provided that the following conditions
|
* modification, are permitted provided that the following conditions
|
||||||
@ -2549,7 +2549,7 @@ static
|
|||||||
void wl_cache_store (int unit, int base, struct ether_header *eh,
|
void wl_cache_store (int unit, int base, struct ether_header *eh,
|
||||||
struct mbuf *m)
|
struct mbuf *m)
|
||||||
{
|
{
|
||||||
struct ip *ip;
|
struct ip *ip = NULL; /* Avoid GCC warning */
|
||||||
int i;
|
int i;
|
||||||
int signal, silence;
|
int signal, silence;
|
||||||
int w_insertcache; /* computed index for cache entry storage */
|
int w_insertcache; /* computed index for cache entry storage */
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $Id: psm.c,v 1.58 1999/01/06 05:40:01 yokota Exp $
|
* $Id: psm.c,v 1.59 1999/01/11 03:18:23 yokota Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -240,12 +240,16 @@ static int get_aux_id __P((KBDC));
|
|||||||
static int set_mouse_sampling_rate __P((KBDC, int));
|
static int set_mouse_sampling_rate __P((KBDC, int));
|
||||||
static int set_mouse_scaling __P((KBDC, int));
|
static int set_mouse_scaling __P((KBDC, int));
|
||||||
static int set_mouse_resolution __P((KBDC, int));
|
static int set_mouse_resolution __P((KBDC, int));
|
||||||
|
#ifdef PSM_RESETAFTERSUSPEND
|
||||||
static int set_mouse_mode __P((KBDC));
|
static int set_mouse_mode __P((KBDC));
|
||||||
|
#endif /* PSM_RESETAFTERSUSPEND */
|
||||||
static int get_mouse_buttons __P((KBDC));
|
static int get_mouse_buttons __P((KBDC));
|
||||||
static int is_a_mouse __P((int));
|
static int is_a_mouse __P((int));
|
||||||
static void recover_from_error __P((KBDC));
|
static void recover_from_error __P((KBDC));
|
||||||
static int restore_controller __P((KBDC, int));
|
static int restore_controller __P((KBDC, int));
|
||||||
|
#ifdef PSM_RESETAFTERSUSPEND
|
||||||
static int reinitialize __P((int, mousemode_t *));
|
static int reinitialize __P((int, mousemode_t *));
|
||||||
|
#endif
|
||||||
static int doopen __P((int, int));
|
static int doopen __P((int, int));
|
||||||
static char *model_name(int);
|
static char *model_name(int);
|
||||||
static ointhand2_t psmintr;
|
static ointhand2_t psmintr;
|
||||||
@ -431,6 +435,7 @@ set_mouse_resolution(KBDC kbdc, int val)
|
|||||||
return ((res == PSM_ACK) ? val : -1);
|
return ((res == PSM_ACK) ? val : -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef PSM_RESETAFTERSUSPEND
|
||||||
/*
|
/*
|
||||||
* NOTE: once `set_mouse_mode()' is called, the mouse device must be
|
* NOTE: once `set_mouse_mode()' is called, the mouse device must be
|
||||||
* re-enabled by calling `enable_aux_dev()'
|
* re-enabled by calling `enable_aux_dev()'
|
||||||
@ -446,6 +451,8 @@ set_mouse_mode(KBDC kbdc)
|
|||||||
|
|
||||||
return (res == PSM_ACK);
|
return (res == PSM_ACK);
|
||||||
}
|
}
|
||||||
|
#endif /* PSM_RESETAFTERSUSPEND */
|
||||||
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
get_mouse_buttons(KBDC kbdc)
|
get_mouse_buttons(KBDC kbdc)
|
||||||
@ -563,6 +570,7 @@ restore_controller(KBDC kbdc, int command_byte)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef PSM_RESETAFTERSUSPEND
|
||||||
/*
|
/*
|
||||||
* Re-initialize the aux port and device. The aux port must be enabled
|
* Re-initialize the aux port and device. The aux port must be enabled
|
||||||
* and its interrupt must be disabled before calling this routine.
|
* and its interrupt must be disabled before calling this routine.
|
||||||
@ -669,6 +677,7 @@ reinitialize(int unit, mousemode_t *mode)
|
|||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
#endif /* PSM_RESETAFTERSUSPEND */
|
||||||
|
|
||||||
static int
|
static int
|
||||||
doopen(int unit, int command_byte)
|
doopen(int unit, int command_byte)
|
||||||
|
@ -768,7 +768,7 @@ void sDisInterrupts(CHANNEL_T *ChP,Word_t Flags)
|
|||||||
static int rpprobe __P((struct isa_device *));
|
static int rpprobe __P((struct isa_device *));
|
||||||
static int rpattach __P((struct isa_device *));
|
static int rpattach __P((struct isa_device *));
|
||||||
|
|
||||||
static char* rp_pciprobe(pcici_t tag, pcidi_t type);
|
static const char* rp_pciprobe(pcici_t tag, pcidi_t type);
|
||||||
static void rp_pciattach(pcici_t tag, int unit);
|
static void rp_pciattach(pcici_t tag, int unit);
|
||||||
static u_long rp_pcicount;
|
static u_long rp_pcicount;
|
||||||
|
|
||||||
@ -1007,7 +1007,7 @@ static void rp_do_poll(void *not_used)
|
|||||||
timeout(rp_do_poll, (void *)NULL, POLL_INTERVAL);
|
timeout(rp_do_poll, (void *)NULL, POLL_INTERVAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
static char*
|
static const char*
|
||||||
rp_pciprobe(pcici_t tag, pcidi_t type)
|
rp_pciprobe(pcici_t tag, pcidi_t type)
|
||||||
{
|
{
|
||||||
int vendor_id;
|
int vendor_id;
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
|
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
|
||||||
* NO EVENT SHALL THE AUTHORS BE LIABLE.
|
* NO EVENT SHALL THE AUTHORS BE LIABLE.
|
||||||
*
|
*
|
||||||
* $Id: si.c,v 1.76 1998/08/23 08:26:40 bde Exp $
|
* $Id: si.c,v 1.77 1998/08/23 10:12:12 bde Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
@ -133,7 +133,7 @@ static u_long sipcieisacount = 0;
|
|||||||
|
|
||||||
#if NPCI > 0
|
#if NPCI > 0
|
||||||
|
|
||||||
static char *sipciprobe __P((pcici_t, pcidi_t));
|
static const char *sipciprobe __P((pcici_t, pcidi_t));
|
||||||
static void sipciattach __P((pcici_t, int));
|
static void sipciattach __P((pcici_t, int));
|
||||||
|
|
||||||
static struct pci_device sipcidev = {
|
static struct pci_device sipcidev = {
|
||||||
@ -316,7 +316,7 @@ static char *si_type[] = {
|
|||||||
|
|
||||||
#if NPCI > 0
|
#if NPCI > 0
|
||||||
|
|
||||||
static char *
|
static const char *
|
||||||
sipciprobe(configid, deviceid)
|
sipciprobe(configid, deviceid)
|
||||||
pcici_t configid;
|
pcici_t configid;
|
||||||
pcidi_t deviceid;
|
pcidi_t deviceid;
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $Id: stallion.c,v 1.22 1998/08/23 09:57:09 bde Exp $
|
* $Id: stallion.c,v 1.23 1998/10/22 05:58:40 bde Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
@ -491,7 +491,7 @@ static int stl_clrportstats(stlport_t *portp, caddr_t data);
|
|||||||
static stlport_t *stl_getport(int brdnr, int panelnr, int portnr);
|
static stlport_t *stl_getport(int brdnr, int panelnr, int portnr);
|
||||||
|
|
||||||
#if NPCI > 0
|
#if NPCI > 0
|
||||||
static char *stlpciprobe(pcici_t tag, pcidi_t type);
|
static const char *stlpciprobe(pcici_t tag, pcidi_t type);
|
||||||
static void stlpciattach(pcici_t tag, int unit);
|
static void stlpciattach(pcici_t tag, int unit);
|
||||||
static void stlpciintr(void * arg);
|
static void stlpciintr(void * arg);
|
||||||
#endif
|
#endif
|
||||||
@ -673,7 +673,7 @@ static int stlattach(struct isa_device *idp)
|
|||||||
* carefull here, since it looks sort like a Nat Semi IDE chip...
|
* carefull here, since it looks sort like a Nat Semi IDE chip...
|
||||||
*/
|
*/
|
||||||
|
|
||||||
char *stlpciprobe(pcici_t tag, pcidi_t type)
|
static const char *stlpciprobe(pcici_t tag, pcidi_t type)
|
||||||
{
|
{
|
||||||
unsigned long class;
|
unsigned long class;
|
||||||
|
|
||||||
|
@ -25,12 +25,13 @@
|
|||||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $Id: wst.c,v 1.12 1998/09/15 18:16:38 sos Exp $
|
* $Id: wst.c,v 1.13 1998/12/07 21:58:24 archie Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "wdc.h"
|
#include "wdc.h"
|
||||||
#include "wst.h"
|
#include "wst.h"
|
||||||
#include "opt_atapi.h"
|
#include "opt_atapi.h"
|
||||||
|
#include "opt_ddb.h"
|
||||||
#include "opt_devfs.h"
|
#include "opt_devfs.h"
|
||||||
|
|
||||||
#if NWST > 0 && NWDC > 0 && defined(ATAPI)
|
#if NWST > 0 && NWDC > 0 && defined(ATAPI)
|
||||||
@ -211,7 +212,8 @@ static int wst_load_unload(struct wst *t, u_char finction);
|
|||||||
static int wst_rewind(struct wst *t);
|
static int wst_rewind(struct wst *t);
|
||||||
static void wst_reset(struct wst *t);
|
static void wst_reset(struct wst *t);
|
||||||
|
|
||||||
static void
|
#ifdef DDB
|
||||||
|
void
|
||||||
wst_dump(int lun, char *label, void *data, int len)
|
wst_dump(int lun, char *label, void *data, int len)
|
||||||
{
|
{
|
||||||
u_char *p = data;
|
u_char *p = data;
|
||||||
@ -221,6 +223,7 @@ wst_dump(int lun, char *label, void *data, int len)
|
|||||||
printf("-%x", *p++);
|
printf("-%x", *p++);
|
||||||
printf("\n");
|
printf("\n");
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef ATAPI_STATIC
|
#ifndef ATAPI_STATIC
|
||||||
static
|
static
|
||||||
|
@ -25,12 +25,13 @@
|
|||||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $Id: wst.c,v 1.12 1998/09/15 18:16:38 sos Exp $
|
* $Id: wst.c,v 1.13 1998/12/07 21:58:24 archie Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "wdc.h"
|
#include "wdc.h"
|
||||||
#include "wst.h"
|
#include "wst.h"
|
||||||
#include "opt_atapi.h"
|
#include "opt_atapi.h"
|
||||||
|
#include "opt_ddb.h"
|
||||||
#include "opt_devfs.h"
|
#include "opt_devfs.h"
|
||||||
|
|
||||||
#if NWST > 0 && NWDC > 0 && defined(ATAPI)
|
#if NWST > 0 && NWDC > 0 && defined(ATAPI)
|
||||||
@ -211,7 +212,8 @@ static int wst_load_unload(struct wst *t, u_char finction);
|
|||||||
static int wst_rewind(struct wst *t);
|
static int wst_rewind(struct wst *t);
|
||||||
static void wst_reset(struct wst *t);
|
static void wst_reset(struct wst *t);
|
||||||
|
|
||||||
static void
|
#ifdef DDB
|
||||||
|
void
|
||||||
wst_dump(int lun, char *label, void *data, int len)
|
wst_dump(int lun, char *label, void *data, int len)
|
||||||
{
|
{
|
||||||
u_char *p = data;
|
u_char *p = data;
|
||||||
@ -221,6 +223,7 @@ wst_dump(int lun, char *label, void *data, int len)
|
|||||||
printf("-%x", *p++);
|
printf("-%x", *p++);
|
||||||
printf("\n");
|
printf("\n");
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef ATAPI_STATIC
|
#ifndef ATAPI_STATIC
|
||||||
static
|
static
|
||||||
|
Loading…
Reference in New Issue
Block a user