This commit is contained in:
perry 2005-02-04 02:10:35 +00:00
parent f57592cd95
commit 18db93c7f6
438 changed files with 4801 additions and 4896 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: bi.c,v 1.18 2003/01/01 00:10:16 thorpej Exp $ */
/* $NetBSD: bi.c,v 1.19 2005/02/04 02:10:36 perry Exp $ */
/*
* Copyright (c) 1996 Ludd, University of Lule}, Sweden.
* All rights reserved.
@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: bi.c,v 1.18 2003/01/01 00:10:16 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: bi.c,v 1.19 2005/02/04 02:10:36 perry Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -52,7 +52,7 @@ __KERNEL_RCSID(0, "$NetBSD: bi.c,v 1.18 2003/01/01 00:10:16 thorpej Exp $");
#include <dev/bi/bireg.h>
#include <dev/bi/bivar.h>
static int bi_print __P((void *, const char *));
static int bi_print(void *, const char *);
struct bi_list bi_list[] = {
{BIDT_MS820, DT_HAVDRV, "ms820"},

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_ni.c,v 1.23 2004/10/30 18:08:35 thorpej Exp $ */
/* $NetBSD: if_ni.c,v 1.24 2005/02/04 02:10:36 perry Exp $ */
/*
* Copyright (c) 2000 Ludd, University of Lule}, Sweden. All rights reserved.
*
@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_ni.c,v 1.23 2004/10/30 18:08:35 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_ni.c,v 1.24 2005/02/04 02:10:36 perry Exp $");
#include "opt_inet.h"
#include "bpfilter.h"
@ -140,15 +140,15 @@ struct ni_softc {
u_int8_t sc_enaddr[ETHER_ADDR_LEN];
};
static int nimatch __P((struct device *, struct cfdata *, void *));
static void niattach __P((struct device *, struct device *, void *));
static void niinit __P((struct ni_softc *));
static void nistart __P((struct ifnet *));
static void niintr __P((void *));
static int niioctl __P((struct ifnet *, u_long, caddr_t));
static int nimatch(struct device *, struct cfdata *, void *);
static void niattach(struct device *, struct device *, void *);
static void niinit(struct ni_softc *);
static void nistart(struct ifnet *);
static void niintr(void *);
static int niioctl(struct ifnet *, u_long, caddr_t);
static int ni_add_rxbuf(struct ni_softc *, struct ni_dg *, int);
static void ni_setup __P((struct ni_softc *));
static void nitimeout __P((struct ifnet *));
static void ni_setup(struct ni_softc *);
static void nitimeout(struct ifnet *);
static void ni_shutdown(void *);
static void ni_getpgs(struct ni_softc *sc, int size, caddr_t *v, paddr_t *p);
static int failtest(struct ni_softc *, int, int, int, char *);

View File

@ -1,4 +1,4 @@
/* $NetBSD: kdb.c,v 1.35 2004/10/31 12:52:55 he Exp $ */
/* $NetBSD: kdb.c,v 1.36 2005/02/04 02:10:36 perry Exp $ */
/*
* Copyright (c) 1996 Ludd, University of Lule}, Sweden.
* All rights reserved.
@ -40,7 +40,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: kdb.c,v 1.35 2004/10/31 12:52:55 he Exp $");
__KERNEL_RCSID(0, "$NetBSD: kdb.c,v 1.36 2005/02/04 02:10:36 perry Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@ -90,14 +90,14 @@ struct kdb_softc {
bus_space_handle_t sc_ioh;
};
int kdbmatch __P((struct device *, struct cfdata *, void *));
void kdbattach __P((struct device *, struct device *, void *));
void kdbreset __P((int));
void kdbintr __P((void *));
void kdbctlrdone __P((struct device *));
int kdbprint __P((void *, const char *));
void kdbsaerror __P((struct device *, int));
void kdbgo __P((struct device *, struct mscp_xi *));
int kdbmatch(struct device *, struct cfdata *, void *);
void kdbattach(struct device *, struct device *, void *);
void kdbreset(int);
void kdbintr(void *);
void kdbctlrdone(struct device *);
int kdbprint(void *, const char *);
void kdbsaerror(struct device *, int);
void kdbgo(struct device *, struct mscp_xi *);
CFATTACH_DECL(kdb, sizeof(struct kdb_softc),
kdbmatch, kdbattach, NULL, NULL);

View File

@ -1,4 +1,4 @@
/* $NetBSD: uba_bi.c,v 1.8 2002/10/02 16:33:39 thorpej Exp $ */
/* $NetBSD: uba_bi.c,v 1.9 2005/02/04 02:10:36 perry Exp $ */
/*
* Copyright (c) 1998 Ludd, University of Lule}, Sweden.
* All rights reserved.
@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: uba_bi.c,v 1.8 2002/10/02 16:33:39 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: uba_bi.c,v 1.9 2005/02/04 02:10:36 perry Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@ -62,10 +62,10 @@ __KERNEL_RCSID(0, "$NetBSD: uba_bi.c,v 1.8 2002/10/02 16:33:39 thorpej Exp $");
#define BUA(uba) ((struct dwbua_regs *)(uba))
static int uba_bi_match __P((struct device *, struct cfdata *, void *));
static void uba_bi_attach __P((struct device *, struct device *, void *));
static void bua_init __P((struct uba_softc *));
static void bua_purge __P((struct uba_softc *, int));
static int uba_bi_match(struct device *, struct cfdata *, void *);
static void uba_bi_attach(struct device *, struct device *, void *);
static void bua_init(struct uba_softc *);
static void bua_purge(struct uba_softc *, int);
/* bua_csr */
#define BUACSR_ERR 0x80000000 /* composite error */

View File

@ -1,4 +1,4 @@
/* $NetBSD: adv_cardbus.c,v 1.9 2004/08/02 19:14:28 mycroft Exp $ */
/* $NetBSD: adv_cardbus.c,v 1.10 2005/02/04 02:10:36 perry Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@ -43,7 +43,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: adv_cardbus.c,v 1.9 2004/08/02 19:14:28 mycroft Exp $");
__KERNEL_RCSID(0, "$NetBSD: adv_cardbus.c,v 1.10 2005/02/04 02:10:36 perry Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -89,9 +89,9 @@ struct adv_cardbus_softc {
bus_size_t sc_size;
};
int adv_cardbus_match __P((struct device *, struct cfdata *, void *));
void adv_cardbus_attach __P((struct device *, struct device *, void *));
int adv_cardbus_detach __P((struct device *, int));
int adv_cardbus_match(struct device *, struct cfdata *, void *);
void adv_cardbus_attach(struct device *, struct device *, void *);
int adv_cardbus_detach(struct device *, int);
CFATTACH_DECL(adv_cardbus, sizeof(struct adv_cardbus_softc),
adv_cardbus_match, adv_cardbus_attach, adv_cardbus_detach, NULL);

View File

@ -1,4 +1,4 @@
/* $NetBSD: ahc_cardbus.c,v 1.14 2004/08/02 19:14:28 mycroft Exp $ */
/* $NetBSD: ahc_cardbus.c,v 1.15 2005/02/04 02:10:36 perry Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@ -45,7 +45,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ahc_cardbus.c,v 1.14 2004/08/02 19:14:28 mycroft Exp $");
__KERNEL_RCSID(0, "$NetBSD: ahc_cardbus.c,v 1.15 2005/02/04 02:10:36 perry Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -86,9 +86,9 @@ struct ahc_cardbus_softc {
bus_size_t sc_size;
};
int ahc_cardbus_match __P((struct device *, struct cfdata *, void *));
void ahc_cardbus_attach __P((struct device *, struct device *, void *));
int ahc_cardbus_detach __P((struct device *, int));
int ahc_cardbus_match(struct device *, struct cfdata *, void *);
void ahc_cardbus_attach(struct device *, struct device *, void *);
int ahc_cardbus_detach(struct device *, int);
int ahc_activate(struct device *self, enum devact act);
CFATTACH_DECL(ahc_cardbus, sizeof(struct ahc_cardbus_softc),

View File

@ -1,4 +1,4 @@
/* $NetBSD: cardbus_map.c,v 1.14 2001/11/15 09:48:02 lukem Exp $ */
/* $NetBSD: cardbus_map.c,v 1.15 2005/02/04 02:10:36 perry Exp $ */
/*
* Copyright (c) 1999 and 2000
@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: cardbus_map.c,v 1.14 2001/11/15 09:48:02 lukem Exp $");
__KERNEL_RCSID(0, "$NetBSD: cardbus_map.c,v 1.15 2005/02/04 02:10:36 perry Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -58,12 +58,12 @@ __KERNEL_RCSID(0, "$NetBSD: cardbus_map.c,v 1.14 2001/11/15 09:48:02 lukem Exp $
#endif
static int cardbus_io_find __P((cardbus_chipset_tag_t, cardbus_function_tag_t,
static int cardbus_io_find(cardbus_chipset_tag_t, cardbus_function_tag_t,
cardbustag_t, int, cardbusreg_t,
bus_addr_t *, bus_size_t *, int *));
static int cardbus_mem_find __P((cardbus_chipset_tag_t, cardbus_function_tag_t,
bus_addr_t *, bus_size_t *, int *);
static int cardbus_mem_find(cardbus_chipset_tag_t, cardbus_function_tag_t,
cardbustag_t, int, cardbusreg_t,
bus_addr_t *, bus_size_t *, int *));
bus_addr_t *, bus_size_t *, int *);
/*
* static int cardbus_io_find(cardbus_chipset_tag_t cc,

View File

@ -1,4 +1,4 @@
/* $NetBSD: cardbusvar.h,v 1.30 2004/12/14 02:34:15 chs Exp $ */
/* $NetBSD: cardbusvar.h,v 1.31 2005/02/04 02:10:36 perry Exp $ */
/*
* Copyright (c) 1998, 1999 and 2000
@ -84,47 +84,47 @@ typedef int cardbus_intr_handle_t;
* cardbustag_t tag, int offs, cardbusreg_t val);
*/
typedef struct cardbus_functions {
int (*cardbus_space_alloc) __P((cardbus_chipset_tag_t, rbus_tag_t,
int (*cardbus_space_alloc)(cardbus_chipset_tag_t, rbus_tag_t,
bus_addr_t, bus_size_t, bus_addr_t, bus_size_t,
int, bus_addr_t *, bus_space_handle_t *));
int (*cardbus_space_free) __P((cardbus_chipset_tag_t, rbus_tag_t,
bus_space_handle_t, bus_size_t));
void *(*cardbus_intr_establish) __P((cardbus_chipset_tag_t, int, int,
int (*)(void *), void *));
void (*cardbus_intr_disestablish) __P((cardbus_chipset_tag_t, void *));
int (*cardbus_ctrl) __P((cardbus_chipset_tag_t, int));
int (*cardbus_power) __P((cardbus_chipset_tag_t, int));
int, bus_addr_t *, bus_space_handle_t *);
int (*cardbus_space_free)(cardbus_chipset_tag_t, rbus_tag_t,
bus_space_handle_t, bus_size_t);
void *(*cardbus_intr_establish)(cardbus_chipset_tag_t, int, int,
int (*)(void *), void *);
void (*cardbus_intr_disestablish)(cardbus_chipset_tag_t, void *);
int (*cardbus_ctrl)(cardbus_chipset_tag_t, int);
int (*cardbus_power)(cardbus_chipset_tag_t, int);
cardbustag_t (*cardbus_make_tag) __P((cardbus_chipset_tag_t, int, int,
int));
void (*cardbus_free_tag) __P((cardbus_chipset_tag_t, cardbustag_t));
cardbusreg_t (*cardbus_conf_read) __P((cardbus_chipset_tag_t,
cardbustag_t, int));
void (*cardbus_conf_write) __P((cardbus_chipset_tag_t, cardbustag_t,
int, cardbusreg_t));
cardbustag_t (*cardbus_make_tag)(cardbus_chipset_tag_t, int, int,
int);
void (*cardbus_free_tag)(cardbus_chipset_tag_t, cardbustag_t);
cardbusreg_t (*cardbus_conf_read)(cardbus_chipset_tag_t,
cardbustag_t, int);
void (*cardbus_conf_write)(cardbus_chipset_tag_t, cardbustag_t,
int, cardbusreg_t);
} cardbus_function_t, *cardbus_function_tag_t;
#else
typedef struct cardbus_functions {
int (*cardbus_ctrl) __P((cardbus_chipset_tag_t, int));
int (*cardbus_power) __P((cardbus_chipset_tag_t, int));
int (*cardbus_mem_open) __P((cardbus_chipset_tag_t, int, u_int32_t,
u_int32_t));
int (*cardbus_mem_close) __P((cardbus_chipset_tag_t, int));
int (*cardbus_io_open) __P((cardbus_chipset_tag_t, int, u_int32_t,
u_int32_t));
int (*cardbus_io_close) __P((cardbus_chipset_tag_t, int));
void *(*cardbus_intr_establish) __P((cardbus_chipset_tag_t, int, int,
int (*)(void *), void *));
void (*cardbus_intr_disestablish) __P((cardbus_chipset_tag_t, void *));
int (*cardbus_ctrl)(cardbus_chipset_tag_t, int);
int (*cardbus_power)(cardbus_chipset_tag_t, int);
int (*cardbus_mem_open)(cardbus_chipset_tag_t, int, u_int32_t,
u_int32_t);
int (*cardbus_mem_close)(cardbus_chipset_tag_t, int);
int (*cardbus_io_open)(cardbus_chipset_tag_t, int, u_int32_t,
u_int32_t);
int (*cardbus_io_close)(cardbus_chipset_tag_t, int);
void *(*cardbus_intr_establish)(cardbus_chipset_tag_t, int, int,
int (*)(void *), void *);
void (*cardbus_intr_disestablish)(cardbus_chipset_tag_t, void *);
cardbustag_t (*cardbus_make_tag) __P((cardbus_chipset_tag_t, int, int,
int));
cardbusreg_t (*cardbus_conf_read) __P((cardbus_chipset_tag_t,
cardbustag_t, int));
void (*cardbus_conf_write) __P((cardbus_chipset_tag_t, cardbustag_t,
int, cardbusreg_t));
cardbustag_t (*cardbus_make_tag)(cardbus_chipset_tag_t, int, int,
int);
cardbusreg_t (*cardbus_conf_read)(cardbus_chipset_tag_t,
cardbustag_t, int);
void (*cardbus_conf_write)(cardbus_chipset_tag_t, cardbustag_t,
int, cardbusreg_t);
} cardbus_function_t, *cardbus_function_tag_t;
#endif /* rbus */
@ -298,28 +298,28 @@ struct cardbus_attach_args {
#define CARDBUS_VPPMASK 0x00f0
int cardbus_attach_card __P((struct cardbus_softc *));
void cardbus_detach_card __P((struct cardbus_softc *));
void *cardbus_intr_establish __P((cardbus_chipset_tag_t, cardbus_function_tag_t,
cardbus_intr_handle_t, int, int (*) (void *), void *arg));
void cardbus_intr_disestablish __P((cardbus_chipset_tag_t,
cardbus_function_tag_t, void *));
int cardbus_attach_card(struct cardbus_softc *);
void cardbus_detach_card(struct cardbus_softc *);
void *cardbus_intr_establish(cardbus_chipset_tag_t, cardbus_function_tag_t,
cardbus_intr_handle_t, int, int (*) (void *), void *arg);
void cardbus_intr_disestablish(cardbus_chipset_tag_t,
cardbus_function_tag_t, void *);
int cardbus_mapreg_map __P((struct cardbus_softc *, int, int, cardbusreg_t,
int, bus_space_tag_t *, bus_space_handle_t *, bus_addr_t *, bus_size_t *));
int cardbus_mapreg_unmap __P((struct cardbus_softc *, int, int,
bus_space_tag_t, bus_space_handle_t, bus_size_t));
int cardbus_mapreg_map(struct cardbus_softc *, int, int, cardbusreg_t,
int, bus_space_tag_t *, bus_space_handle_t *, bus_addr_t *, bus_size_t *);
int cardbus_mapreg_unmap(struct cardbus_softc *, int, int,
bus_space_tag_t, bus_space_handle_t, bus_size_t);
int cardbus_save_bar __P((cardbus_devfunc_t));
int cardbus_restore_bar __P((cardbus_devfunc_t));
int cardbus_save_bar(cardbus_devfunc_t);
int cardbus_restore_bar(cardbus_devfunc_t);
int cardbus_function_enable __P((struct cardbus_softc *, int));
int cardbus_function_disable __P((struct cardbus_softc *, int));
int cardbus_function_enable(struct cardbus_softc *, int);
int cardbus_function_disable(struct cardbus_softc *, int);
int cardbus_get_capability __P((cardbus_chipset_tag_t, cardbus_function_tag_t,
cardbustag_t, int, int *, cardbusreg_t *));
int cardbus_powerstate __P((cardbus_devfunc_t, pcitag_t, const int *, int *));
int cardbus_setpowerstate __P((const char *, cardbus_devfunc_t, pcitag_t, int));
int cardbus_get_capability(cardbus_chipset_tag_t, cardbus_function_tag_t,
cardbustag_t, int, int *, cardbusreg_t *);
int cardbus_powerstate(cardbus_devfunc_t, pcitag_t, const int *, int *);
int cardbus_setpowerstate(const char *, cardbus_devfunc_t, pcitag_t, int);
#define Cardbus_function_enable(ct) cardbus_function_enable((ct)->ct_sc, (ct)->ct_func)
#define Cardbus_function_disable(ct) cardbus_function_disable((ct)->ct_sc, (ct)->ct_func)

View File

@ -1,4 +1,4 @@
/* $NetBSD: cardslot.c,v 1.25 2004/09/13 12:55:47 drochner Exp $ */
/* $NetBSD: cardslot.c,v 1.26 2005/02/04 02:10:36 perry Exp $ */
/*
* Copyright (c) 1999 and 2000
@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: cardslot.c,v 1.25 2004/09/13 12:55:47 drochner Exp $");
__KERNEL_RCSID(0, "$NetBSD: cardslot.c,v 1.26 2005/02/04 02:10:36 perry Exp $");
#include "opt_cardslot.h"
@ -65,16 +65,16 @@ __KERNEL_RCSID(0, "$NetBSD: cardslot.c,v 1.25 2004/09/13 12:55:47 drochner Exp $
STATIC void cardslotattach __P((struct device *, struct device *, void *));
STATIC void cardslotattach(struct device *, struct device *, void *);
STATIC int cardslotmatch __P((struct device *, struct cfdata *, void *));
static void create_slot_manager __P((void *));
static void cardslot_event_thread __P((void *arg));
STATIC int cardslotmatch(struct device *, struct cfdata *, void *);
static void create_slot_manager(void *);
static void cardslot_event_thread(void *arg);
STATIC int cardslot_cb_print __P((void *aux, const char *pcic));
static int cardslot_16_print __P((void *, const char *));
static int cardslot_16_submatch __P((struct device *, struct cfdata *,
const locdesc_t *, void *));
STATIC int cardslot_cb_print(void *aux, const char *pcic);
static int cardslot_16_print(void *, const char *);
static int cardslot_16_submatch(struct device *, struct cfdata *,
const locdesc_t *, void *);
CFATTACH_DECL(cardslot, sizeof(struct cardslot_softc),
cardslotmatch, cardslotattach, NULL, NULL);

View File

@ -1,4 +1,4 @@
/* $NetBSD: cardslotvar.h,v 1.8 2004/09/13 12:55:47 drochner Exp $ */
/* $NetBSD: cardslotvar.h,v 1.9 2005/02/04 02:10:36 perry Exp $ */
/*
* Copyright (c) 1999
@ -122,6 +122,6 @@ typedef struct cardslot_softc *cardslot_t;
#define IS_CARDSLOT_INSERT_REMOVE_EV(x) (0 <= (x) && (x) <= 3)
void cardslot_event_throw __P((cardslot_t, int));
void cardslot_event_throw(cardslot_t, int);
#endif /* !_DEV_CARDBUS_CARDSLOTVAR_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_ex_cardbus.c,v 1.33 2004/08/02 19:14:28 mycroft Exp $ */
/* $NetBSD: if_ex_cardbus.c,v 1.34 2005/02/04 02:10:36 perry Exp $ */
/*
* CardBus specific routines for 3Com 3C575-family CardBus ethernet adapter
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_ex_cardbus.c,v 1.33 2004/08/02 19:14:28 mycroft Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_ex_cardbus.c,v 1.34 2005/02/04 02:10:36 perry Exp $");
/* #define EX_DEBUG 4 */ /* define to report information for debugging */
@ -83,14 +83,14 @@ __KERNEL_RCSID(0, "$NetBSD: if_ex_cardbus.c,v 1.33 2004/08/02 19:14:28 mycroft E
#define EX_CB_INTR 4 /* intr acknowledge reg. CardBus only */
#define EX_CB_INTR_ACK 0x8000 /* intr acknowledge bit */
int ex_cardbus_match __P((struct device *, struct cfdata *, void *));
void ex_cardbus_attach __P((struct device *, struct device *,void *));
int ex_cardbus_detach __P((struct device *, int));
void ex_cardbus_intr_ack __P((struct ex_softc *));
int ex_cardbus_match(struct device *, struct cfdata *, void *);
void ex_cardbus_attach(struct device *, struct device *,void *);
int ex_cardbus_detach(struct device *, int);
void ex_cardbus_intr_ack(struct ex_softc *);
int ex_cardbus_enable __P((struct ex_softc *));
void ex_cardbus_disable __P((struct ex_softc *));
void ex_cardbus_power __P((struct ex_softc *, int));
int ex_cardbus_enable(struct ex_softc *);
void ex_cardbus_disable(struct ex_softc *);
void ex_cardbus_power(struct ex_softc *, int);
struct ex_cardbus_softc {
struct ex_softc sc_softc;
@ -185,10 +185,10 @@ const struct ex_cardbus_product {
};
void ex_cardbus_setup __P((struct ex_cardbus_softc *));
void ex_cardbus_setup(struct ex_cardbus_softc *);
const struct ex_cardbus_product *ex_cardbus_lookup
__P((const struct cardbus_attach_args *));
(const struct cardbus_attach_args *);
const struct ex_cardbus_product *
ex_cardbus_lookup(ca)

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_fxp_cardbus.c,v 1.18 2004/08/02 19:14:28 mycroft Exp $ */
/* $NetBSD: if_fxp_cardbus.c,v 1.19 2005/02/04 02:10:36 perry Exp $ */
/*
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_fxp_cardbus.c,v 1.18 2004/08/02 19:14:28 mycroft Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_fxp_cardbus.c,v 1.19 2005/02/04 02:10:36 perry Exp $");
#include "opt_inet.h"
#include "opt_ns.h"
@ -98,12 +98,12 @@ __KERNEL_RCSID(0, "$NetBSD: if_fxp_cardbus.c,v 1.18 2004/08/02 19:14:28 mycroft
#include <dev/cardbus/cardbusvar.h>
#include <dev/pci/pcidevs.h>
static int fxp_cardbus_match __P((struct device *, struct cfdata *, void *));
static void fxp_cardbus_attach __P((struct device *, struct device *, void *));
static int fxp_cardbus_detach __P((struct device * self, int flags));
static void fxp_cardbus_setup __P((struct fxp_softc * sc));
static int fxp_cardbus_enable __P((struct fxp_softc * sc));
static void fxp_cardbus_disable __P((struct fxp_softc * sc));
static int fxp_cardbus_match(struct device *, struct cfdata *, void *);
static void fxp_cardbus_attach(struct device *, struct device *, void *);
static int fxp_cardbus_detach(struct device * self, int flags);
static void fxp_cardbus_setup(struct fxp_softc * sc);
static int fxp_cardbus_enable(struct fxp_softc * sc);
static void fxp_cardbus_disable(struct fxp_softc * sc);
struct fxp_cardbus_softc {
struct fxp_softc sc;

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_rtk_cardbus.c,v 1.23 2004/08/02 19:26:51 mycroft Exp $ */
/* $NetBSD: if_rtk_cardbus.c,v 1.24 2005/02/04 02:10:36 perry Exp $ */
/*
* Copyright (c) 2000 Masanori Kanaoka
@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_rtk_cardbus.c,v 1.23 2004/08/02 19:26:51 mycroft Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_rtk_cardbus.c,v 1.24 2005/02/04 02:10:36 perry Exp $");
#include "opt_inet.h"
#include "opt_ns.h"
@ -125,9 +125,9 @@ static const struct rtk_type rtk_cardbus_devs[] = {
{ 0, 0, 0, NULL }
};
static int rtk_cardbus_match __P((struct device *, struct cfdata *, void *));
static void rtk_cardbus_attach __P((struct device *, struct device *, void *));
static int rtk_cardbus_detach __P((struct device *, int));
static int rtk_cardbus_match(struct device *, struct cfdata *, void *);
static void rtk_cardbus_attach(struct device *, struct device *, void *);
static int rtk_cardbus_detach(struct device *, int);
struct rtk_cardbus_softc {
struct rtk_softc sc_rtk; /* real rtk softc */
@ -148,13 +148,13 @@ CFATTACH_DECL(rtk_cardbus, sizeof(struct rtk_cardbus_softc),
rtk_cardbus_match, rtk_cardbus_attach, rtk_cardbus_detach, rtk_activate);
const struct rtk_type *rtk_cardbus_lookup
__P((const struct cardbus_attach_args *));
(const struct cardbus_attach_args *);
void rtk_cardbus_setup __P((struct rtk_cardbus_softc *));
void rtk_cardbus_setup (struct rtk_cardbus_softc *);
int rtk_cardbus_enable __P((struct rtk_softc *));
void rtk_cardbus_disable __P((struct rtk_softc *));
void rtk_cardbus_power __P((struct rtk_softc *, int));
int rtk_cardbus_enable (struct rtk_softc *);
void rtk_cardbus_disable(struct rtk_softc *);
void rtk_cardbus_power (struct rtk_softc *, int);
const struct rtk_type *
rtk_cardbus_lookup(ca)
const struct cardbus_attach_args *ca;

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_tlp_cardbus.c,v 1.43 2004/08/02 19:31:52 mycroft Exp $ */
/* $NetBSD: if_tlp_cardbus.c,v 1.44 2005/02/04 02:10:36 perry Exp $ */
/*-
* Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
@ -43,7 +43,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_tlp_cardbus.c,v 1.43 2004/08/02 19:31:52 mycroft Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_tlp_cardbus.c,v 1.44 2005/02/04 02:10:36 perry Exp $");
#include "opt_inet.h"
#include "opt_ns.h"
@ -124,9 +124,9 @@ struct tulip_cardbus_softc {
int sc_intrline; /* interrupt line */
};
int tlp_cardbus_match __P((struct device *, struct cfdata *, void *));
void tlp_cardbus_attach __P((struct device *, struct device *, void *));
int tlp_cardbus_detach __P((struct device *, int));
int tlp_cardbus_match(struct device *, struct cfdata *, void *);
void tlp_cardbus_attach(struct device *, struct device *, void *);
int tlp_cardbus_detach(struct device *, int);
CFATTACH_DECL(tlp_cardbus, sizeof(struct tulip_cardbus_softc),
tlp_cardbus_match, tlp_cardbus_attach, tlp_cardbus_detach, tlp_activate);
@ -171,31 +171,31 @@ const struct tulip_cardbus_product {
};
struct tlp_cardbus_quirks {
void (*tpq_func) __P((struct tulip_cardbus_softc *,
const u_int8_t *));
void (*tpq_func)(struct tulip_cardbus_softc *,
const u_int8_t *);
u_int8_t tpq_oui[3];
};
void tlp_cardbus_lxt_quirks __P((struct tulip_cardbus_softc *,
const u_int8_t *));
void tlp_cardbus_lxt_quirks(struct tulip_cardbus_softc *,
const u_int8_t *);
const struct tlp_cardbus_quirks tlp_cardbus_21142_quirks[] = {
{ tlp_cardbus_lxt_quirks, { 0x00, 0x40, 0x05 } },
{ NULL, { 0, 0, 0 } }
};
void tlp_cardbus_setup __P((struct tulip_cardbus_softc *));
void tlp_cardbus_setup(struct tulip_cardbus_softc *);
int tlp_cardbus_enable __P((struct tulip_softc *));
void tlp_cardbus_disable __P((struct tulip_softc *));
void tlp_cardbus_power __P((struct tulip_softc *, int));
int tlp_cardbus_enable(struct tulip_softc *);
void tlp_cardbus_disable(struct tulip_softc *);
void tlp_cardbus_power(struct tulip_softc *, int);
void tlp_cardbus_x3201_reset __P((struct tulip_softc *));
void tlp_cardbus_x3201_reset(struct tulip_softc *);
const struct tulip_cardbus_product *tlp_cardbus_lookup
__P((const struct cardbus_attach_args *));
void tlp_cardbus_get_quirks __P((struct tulip_cardbus_softc *,
const u_int8_t *, const struct tlp_cardbus_quirks *));
(const struct cardbus_attach_args *);
void tlp_cardbus_get_quirks(struct tulip_cardbus_softc *,
const u_int8_t *, const struct tlp_cardbus_quirks *);
const struct tulip_cardbus_product *
tlp_cardbus_lookup(ca)

View File

@ -1,4 +1,4 @@
/* $NetBSD: rbus.c,v 1.20 2004/05/16 21:32:31 skd Exp $ */
/* $NetBSD: rbus.c,v 1.21 2005/02/04 02:10:36 perry Exp $ */
/*
* Copyright (c) 1999 and 2000
* HAYAKAWA Koichi. All rights reserved.
@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: rbus.c,v 1.20 2004/05/16 21:32:31 skd Exp $");
__KERNEL_RCSID(0, "$NetBSD: rbus.c,v 1.21 2005/02/04 02:10:36 perry Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -54,10 +54,10 @@ __KERNEL_RCSID(0, "$NetBSD: rbus.c,v 1.20 2004/05/16 21:32:31 skd Exp $");
static rbus_tag_t rbus_new_body __P((bus_space_tag_t bt, rbus_tag_t parent,
static rbus_tag_t rbus_new_body(bus_space_tag_t bt, rbus_tag_t parent,
struct extent *ex, bus_addr_t start,
bus_addr_t end, bus_addr_t offset,
int flags));
int flags);
int

View File

@ -1,4 +1,4 @@
/* $NetBSD: rbus.h,v 1.6 2003/07/08 10:06:30 itojun Exp $ */
/* $NetBSD: rbus.h,v 1.7 2005/02/04 02:10:36 perry Exp $ */
/*
* Copyright (c) 1999
* HAYAKAWA Koichi. All rights reserved.
@ -90,11 +90,11 @@ struct rbustag {
bus_addr_t rb_end;
bus_addr_t rb_offset;
#if notyet
int (*rb_space_alloc) __P((struct rbustag *, bus_addr_t, bus_addr_t,
int (*rb_space_alloc)(struct rbustag *, bus_addr_t, bus_addr_t,
bus_addr_t, bus_size_t, bus_addr_t, bus_addr_t,
int, bus_addr_t *, bus_space_handle_t *));
int (*rbus_space_free) __P((struct rbustag *, bus_space_handle_t,
bus_size_t, bus_addr_t *));
int, bus_addr_t *, bus_space_handle_t *);
int (*rbus_space_free)(struct rbustag *, bus_space_handle_t,
bus_size_t, bus_addr_t *);
#endif
int rb_flags;
#define RBUS_SPACE_INVALID 0x00
@ -116,15 +116,15 @@ typedef struct rbustag *rbus_tag_t;
* easier. These functions should be member functions of rbus
* `class'.
*/
int rbus_space_alloc __P((rbus_tag_t, bus_addr_t, bus_size_t, bus_addr_t,
bus_addr_t, int, bus_addr_t *, bus_space_handle_t *));
int rbus_space_alloc(rbus_tag_t, bus_addr_t, bus_size_t, bus_addr_t,
bus_addr_t, int, bus_addr_t *, bus_space_handle_t *);
int rbus_space_alloc_subregion __P((rbus_tag_t, bus_addr_t, bus_addr_t,
int rbus_space_alloc_subregion(rbus_tag_t, bus_addr_t, bus_addr_t,
bus_addr_t, bus_size_t, bus_addr_t, bus_addr_t, int,
bus_addr_t *, bus_space_handle_t *));
bus_addr_t *, bus_space_handle_t *);
int rbus_space_free __P((rbus_tag_t, bus_space_handle_t, bus_size_t,
bus_addr_t *));
int rbus_space_free(rbus_tag_t, bus_space_handle_t, bus_size_t,
bus_addr_t *);
/*
@ -134,18 +134,18 @@ int rbus_space_free __P((rbus_tag_t, bus_space_handle_t, bus_size_t,
* rbus_new is a constructor which make an rbus instance from a parent
* rbus.
*/
rbus_tag_t rbus_new __P((rbus_tag_t, bus_addr_t, bus_size_t, bus_addr_t, int));
rbus_tag_t rbus_new(rbus_tag_t, bus_addr_t, bus_size_t, bus_addr_t, int);
rbus_tag_t rbus_new_root_delegate __P((bus_space_tag_t, bus_addr_t, bus_size_t,
bus_addr_t));
rbus_tag_t rbus_new_root_share __P((bus_space_tag_t, struct extent *,
bus_addr_t, bus_size_t, bus_addr_t));
rbus_tag_t rbus_new_root_delegate(bus_space_tag_t, bus_addr_t, bus_size_t,
bus_addr_t);
rbus_tag_t rbus_new_root_share(bus_space_tag_t, struct extent *,
bus_addr_t, bus_size_t, bus_addr_t);
/*
* This function release bus-space used by the argument. This
* function is so-called-as a destructor.
*/
int rbus_delete __P((rbus_tag_t));
int rbus_delete(rbus_tag_t);
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: rbus_ppb.c,v 1.13 2004/08/30 15:05:19 drochner Exp $ */
/* $NetBSD: rbus_ppb.c,v 1.14 2005/02/04 02:10:36 perry Exp $ */
/*
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: rbus_ppb.c,v 1.13 2004/08/30 15:05:19 drochner Exp $");
__KERNEL_RCSID(0, "$NetBSD: rbus_ppb.c,v 1.14 2005/02/04 02:10:36 perry Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -83,44 +83,44 @@ __KERNEL_RCSID(0, "$NetBSD: rbus_ppb.c,v 1.13 2004/08/30 15:05:19 drochner Exp $
struct ppb_softc;
static int ppb_cardbus_match __P((struct device *, struct cfdata *, void *));
static void ppb_cardbus_attach __P((struct device *, struct device *, void *));
static int ppb_cardbus_detach __P((struct device * self, int flags));
/*static*/ void ppb_cardbus_setup __P((struct ppb_softc * sc));
/*static*/ int ppb_cardbus_enable __P((struct ppb_softc * sc));
/*static*/ void ppb_cardbus_disable __P((struct ppb_softc * sc));
static int ppb_activate __P((struct device *self, enum devact act));
int rppbprint __P((void *aux, const char *pnp));
int rbus_intr_fixup __P((pci_chipset_tag_t pc, int minbus,
int maxbus, int line));
void rbus_do_header_fixup __P((pci_chipset_tag_t pc, pcitag_t tag,
void *context));
static int ppb_cardbus_match(struct device *, struct cfdata *, void *);
static void ppb_cardbus_attach(struct device *, struct device *, void *);
static int ppb_cardbus_detach(struct device * self, int flags);
/*static*/ void ppb_cardbus_setup(struct ppb_softc * sc);
/*static*/ int ppb_cardbus_enable(struct ppb_softc * sc);
/*static*/ void ppb_cardbus_disable(struct ppb_softc * sc);
static int ppb_activate(struct device *self, enum devact act);
int rppbprint(void *aux, const char *pnp);
int rbus_intr_fixup(pci_chipset_tag_t pc, int minbus,
int maxbus, int line);
void rbus_do_header_fixup(pci_chipset_tag_t pc, pcitag_t tag,
void *context);
static void rbus_pci_phys_allocate __P((pci_chipset_tag_t pc,
pcitag_t tag,
void *context));
static void rbus_pci_phys_allocate(pci_chipset_tag_t pc,
pcitag_t tag,
void *context);
static int rbus_do_phys_allocate __P((pci_chipset_tag_t pc,
pcitag_t tag,
static int rbus_do_phys_allocate(pci_chipset_tag_t pc,
pcitag_t tag,
int mapreg,
void *ctx,
void *ctx,
int type,
bus_addr_t *addr,
bus_size_t size));
bus_size_t size);
static void rbus_pci_phys_countspace __P((pci_chipset_tag_t pc,
pcitag_t tag,
void *context));
static void rbus_pci_phys_countspace(pci_chipset_tag_t pc,
pcitag_t tag,
void *context);
static int rbus_do_phys_countspace __P((pci_chipset_tag_t pc,
pcitag_t tag,
static int rbus_do_phys_countspace(pci_chipset_tag_t pc,
pcitag_t tag,
int mapreg,
void *ctx,
void *ctx,
int type,
bus_addr_t *addr,
bus_size_t size));
bus_size_t size);
unsigned int rbus_round_up __P((unsigned int size, unsigned int min));
unsigned int rbus_round_up(unsigned int size, unsigned int min);
struct ppb_cardbus_softc {

View File

@ -1,4 +1,4 @@
/* $NetBSD: clock_subr.c,v 1.10 2004/12/29 20:55:57 bjh21 Exp $ */
/* $NetBSD: clock_subr.c,v 1.11 2005/02/04 02:10:35 perry Exp $ */
/*
* Copyright (c) 1982, 1990, 1993
@ -84,14 +84,14 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: clock_subr.c,v 1.10 2004/12/29 20:55:57 bjh21 Exp $");
__KERNEL_RCSID(0, "$NetBSD: clock_subr.c,v 1.11 2005/02/04 02:10:35 perry Exp $");
#include <sys/param.h>
#include <sys/systm.h>
#include <dev/clock_subr.h>
static inline int leapyear __P((int year));
static inline int leapyear(int year);
#define FEBRUARY 2
#define days_in_year(a) (leapyear(a) ? 366 : 365)
#define days_in_month(a) (month_days[(a) - 1])

View File

@ -1,4 +1,4 @@
/* $NetBSD: clock_subr.h,v 1.10 2003/07/18 21:41:24 thorpej Exp $ */
/* $NetBSD: clock_subr.h,v 1.11 2005/02/04 02:10:35 perry Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@ -52,8 +52,8 @@ struct clock_ymdhms {
u_char dt_sec;
};
time_t clock_ymdhms_to_secs __P((struct clock_ymdhms *));
void clock_secs_to_ymdhms __P((time_t, struct clock_ymdhms *));
time_t clock_ymdhms_to_secs(struct clock_ymdhms *);
void clock_secs_to_ymdhms(time_t, struct clock_ymdhms *);
/*
* BCD to decimal and decimal to BCD.

View File

@ -1,4 +1,4 @@
/* $NetBSD: cons.h,v 1.22 2003/10/17 18:16:43 cdi Exp $ */
/* $NetBSD: cons.h,v 1.23 2005/02/04 02:10:35 perry Exp $ */
/*
* Copyright (c) 1990, 1993
@ -82,21 +82,21 @@
struct consdev {
void (*cn_probe) /* probe hardware and fill in consdev info */
__P((struct consdev *));
(struct consdev *);
void (*cn_init) /* turn on as console */
__P((struct consdev *));
(struct consdev *);
int (*cn_getc) /* kernel getchar interface */
__P((dev_t));
(dev_t);
void (*cn_putc) /* kernel putchar interface */
__P((dev_t, int));
(dev_t, int);
void (*cn_pollc) /* turn on and off polling */
__P((dev_t, int));
(dev_t, int);
void (*cn_bell) /* ring bell */
__P((dev_t, u_int, u_int, u_int));
(dev_t, u_int, u_int, u_int);
void (*cn_halt) /* stop device */
__P((dev_t));
(dev_t);
void (*cn_flush) /* flush output */
__P((dev_t));
(dev_t);
dev_t cn_dev; /* major/minor of device */
int cn_pri; /* pecking order; the higher the better */
};
@ -113,29 +113,29 @@ struct consdev {
extern struct consdev constab[];
extern struct consdev *cn_tab;
void cninit __P((void));
int cngetc __P((void));
int cngetsn __P((char *, int));
void cnputc __P((int));
void cnpollc __P((int));
void cnbell __P((u_int, u_int, u_int));
void cnflush __P((void));
void cnhalt __P((void));
void cnrint __P((void));
void nullcnprobe __P((struct consdev *));
void nullcninit __P((struct consdev *));
void nullcnpollc __P((dev_t, int));
void nullconsattach __P((int));
void cninit(void);
int cngetc(void);
int cngetsn(char *, int);
void cnputc(int);
void cnpollc(int);
void cnbell(u_int, u_int, u_int);
void cnflush(void);
void cnhalt(void);
void cnrint(void);
void nullcnprobe(struct consdev *);
void nullcninit(struct consdev *);
void nullcnpollc(dev_t, int);
void nullconsattach(int);
/* console-specific types */
#define dev_type_cnprobe(n) void n __P((struct consdev *))
#define dev_type_cninit(n) void n __P((struct consdev *))
#define dev_type_cngetc(n) int n __P((dev_t))
#define dev_type_cnputc(n) void n __P((dev_t, int))
#define dev_type_cnpollc(n) void n __P((dev_t, int))
#define dev_type_cnbell(n) void n __P((dev_t, u_int, u_int, u_int));
#define dev_type_cnhalt(n) void n __P((dev_t))
#define dev_type_cnflush(n) void n __P((dev_t))
#define dev_type_cnprobe(n) void n(struct consdev *)
#define dev_type_cninit(n) void n(struct consdev *)
#define dev_type_cngetc(n) int n(dev_t)
#define dev_type_cnputc(n) void n(dev_t, int)
#define dev_type_cnpollc(n) void n(dev_t, int)
#define dev_type_cnbell(n) void n(dev_t, u_int, u_int, u_int);
#define dev_type_cnhalt(n) void n(dev_t)
#define dev_type_cnflush(n) void n(dev_t)
#define dev_decl(n,t) __CONCAT(dev_type_,t)(__CONCAT(n,t))
#define dev_init(n,t) __CONCAT(n,t)

View File

@ -1,4 +1,4 @@
/* $NetBSD: clockvar.h,v 1.5 2004/02/13 11:36:21 wiz Exp $ */
/* $NetBSD: clockvar.h,v 1.6 2005/02/04 02:10:36 perry Exp $ */
/*
* Copyright (c) 1994, 1995 Carnegie-Mellon University.
@ -54,9 +54,9 @@ struct clocktime {
* chip-dependent routines.
*/
struct clockfns {
void (*cf_init) __P((struct device *));
void (*cf_get) __P((struct device *, time_t, struct clocktime *));
void (*cf_set) __P((struct device *, struct clocktime *));
void (*cf_init)(struct device *);
void (*cf_get)(struct device *, time_t, struct clocktime *);
void (*cf_set)(struct device *, struct clocktime *);
};
void clockattach __P((struct device *, const struct clockfns *));
void clockattach(struct device *, const struct clockfns *);

View File

@ -1,4 +1,4 @@
/* $NetBSD: dzkbd.c,v 1.12 2003/08/07 16:30:54 agc Exp $ */
/* $NetBSD: dzkbd.c,v 1.13 2005/02/04 02:10:36 perry Exp $ */
/*
* Copyright (c) 1992, 1993
@ -45,7 +45,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: dzkbd.c,v 1.12 2003/08/07 16:30:54 agc Exp $");
__KERNEL_RCSID(0, "$NetBSD: dzkbd.c,v 1.13 2005/02/04 02:10:36 perry Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -88,17 +88,17 @@ struct dzkbd_softc {
struct device *sc_wskbddev;
};
static int dzkbd_input __P((void *, int));
static int dzkbd_input(void *, int);
static int dzkbd_match __P((struct device *, struct cfdata *, void *));
static void dzkbd_attach __P((struct device *, struct device *, void *));
static int dzkbd_match(struct device *, struct cfdata *, void *);
static void dzkbd_attach(struct device *, struct device *, void *);
CFATTACH_DECL(dzkbd, sizeof(struct dzkbd_softc),
dzkbd_match, dzkbd_attach, NULL, NULL);
static int dzkbd_enable __P((void *, int));
static void dzkbd_set_leds __P((void *, int));
static int dzkbd_ioctl __P((void *, u_long, caddr_t, int, struct proc *));
static int dzkbd_enable(void *, int);
static void dzkbd_set_leds(void *, int);
static int dzkbd_ioctl(void *, u_long, caddr_t, int, struct proc *);
const struct wskbd_accessops dzkbd_accessops = {
dzkbd_enable,
@ -114,7 +114,7 @@ const struct wskbd_consops dzkbd_consops = {
dzkbd_cnpollc,
};
static int dzkbd_sendchar __P((void *, u_char));
static int dzkbd_sendchar(void *, u_char);
const struct wskbd_mapdata dzkbd_keymapdata = {
lkkbd_keydesctab,

View File

@ -1,4 +1,4 @@
/* $NetBSD: dzms.c,v 1.10 2003/08/07 16:30:54 agc Exp $ */
/* $NetBSD: dzms.c,v 1.11 2005/02/04 02:10:36 perry Exp $ */
/*
* Copyright (c) 1992, 1993
@ -45,7 +45,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: dzms.c,v 1.10 2003/08/07 16:30:54 agc Exp $");
__KERNEL_RCSID(0, "$NetBSD: dzms.c,v 1.11 2005/02/04 02:10:36 perry Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -82,16 +82,16 @@ struct dzms_softc { /* driver status information */
struct device *sc_wsmousedev;
};
static int dzms_match __P((struct device *, struct cfdata *, void *));
static void dzms_attach __P((struct device *, struct device *, void *));
static int dzms_input __P((void *, int));
static int dzms_match(struct device *, struct cfdata *, void *);
static void dzms_attach(struct device *, struct device *, void *);
static int dzms_input(void *, int);
CFATTACH_DECL(dzms, sizeof(struct dzms_softc),
dzms_match, dzms_attach, NULL, NULL);
static int dzms_enable __P((void *));
static int dzms_ioctl __P((void *, u_long, caddr_t, int, struct proc *));
static void dzms_disable __P((void *));
static int dzms_enable(void *);
static int dzms_ioctl(void *, u_long, caddr_t, int, struct proc *);
static void dzms_disable(void *);
const struct wsmouse_accessops dzms_accessops = {
dzms_enable,

View File

@ -1,4 +1,4 @@
/* $NetBSD: dzvar.h,v 1.6 2003/08/07 16:30:55 agc Exp $ */
/* $NetBSD: dzvar.h,v 1.7 2005/02/04 02:10:36 perry Exp $ */
/*
* Copyright (c) 1992, 1993
* The Regents of the University of California. All rights reserved.
@ -97,7 +97,7 @@ struct dz_softc {
struct dz_softc *dz_sc; /* backpointer to softc */
int dz_line; /* channel number */
void *dz_private; /* sub-driver data pointer */
int (*dz_catch) __P((void *, int)); /* Fast catch recv */
int (*dz_catch)(void *, int); /* Fast catch recv */
struct tty * dz_tty; /* what we work on */
#ifdef notyet
caddr_t dz_mem; /* pointers to clist output */

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_le_dec.c,v 1.13 2003/08/07 16:30:55 agc Exp $ */
/* $NetBSD: if_le_dec.c,v 1.14 2005/02/04 02:10:36 perry Exp $ */
/*-
* Copyright (c) 1992, 1993
@ -73,7 +73,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_le_dec.c,v 1.13 2003/08/07 16:30:55 agc Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_le_dec.c,v 1.14 2005/02/04 02:10:36 perry Exp $");
#include "opt_inet.h"
#include "bpfilter.h"
@ -105,7 +105,7 @@ __KERNEL_RCSID(0, "$NetBSD: if_le_dec.c,v 1.13 2003/08/07 16:30:55 agc Exp $");
#include <machine/bus.h>
/* access LANCE registers */
void le_dec_writereg __P((volatile u_short *regptr, u_short val));
void le_dec_writereg(volatile u_short *regptr, u_short val);
#define LERDWR(cntl, src, dst) { (dst) = (src); tc_mb(); }
#define LEWREG(src, dst) le_dec_writereg(&(dst), (src))
@ -121,8 +121,8 @@ void le_dec_writereg __P((volatile u_short *regptr, u_short val));
#define hide static
#endif
hide void le_dec_wrcsr __P((struct lance_softc *, u_int16_t, u_int16_t));
hide u_int16_t le_dec_rdcsr __P((struct lance_softc *, u_int16_t));
hide void le_dec_wrcsr(struct lance_softc *, u_int16_t, u_int16_t);
hide u_int16_t le_dec_rdcsr(struct lance_softc *, u_int16_t);
void
dec_le_common_attach(sc, eap)

View File

@ -1,4 +1,4 @@
/* $NetBSD: lk201.h,v 1.7 1999/03/19 18:34:01 ad Exp $ */
/* $NetBSD: lk201.h,v 1.8 2005/02/04 02:10:36 perry Exp $ */
/*
@ -140,6 +140,6 @@
#define LEFT_BUTTON 0x04
#ifdef _KERNEL
extern int LKgetc __P((dev_t dev));
extern void lkdivert __P ((int (*getc_fn)(dev_t dev), dev_t dev));
extern int LKgetc(dev_t dev);
extern void lkdivert(int (*getc_fn)(dev_t dev), dev_t dev);
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: lk201var.h,v 1.4 2004/03/24 17:26:53 drochner Exp $ */
/* $NetBSD: lk201var.h,v 1.5 2005/02/04 02:10:36 perry Exp $ */
/*
* Copyright (c) 1998
@ -27,7 +27,7 @@
*/
struct lk201_attachment {
int (*sendchar) __P((void *, u_char));
int (*sendchar)(void *, u_char);
void *cookie;
};
@ -40,8 +40,8 @@ struct lk201_state {
int kcvol;
};
int lk201_init __P((struct lk201_state *));
int lk201_decode __P((struct lk201_state *, int, u_int *, int *));
void lk201_bell __P((struct lk201_state *, struct wskbd_bell_data *));
void lk201_set_leds __P((struct lk201_state *, int));
void lk201_set_keyclick __P((struct lk201_state *, int));
int lk201_init(struct lk201_state *);
int lk201_decode(struct lk201_state *, int, u_int *, int *);
void lk201_bell(struct lk201_state *, struct wskbd_bell_data *);
void lk201_set_leds(struct lk201_state *, int);
void lk201_set_keyclick(struct lk201_state *, int);

View File

@ -1,4 +1,4 @@
/* $NetBSD: mcclock.c,v 1.15 2001/12/05 10:54:51 simonb Exp $ */
/* $NetBSD: mcclock.c,v 1.16 2005/02/04 02:10:36 perry Exp $ */
/*
* Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University.
@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: mcclock.c,v 1.15 2001/12/05 10:54:51 simonb Exp $");
__KERNEL_RCSID(0, "$NetBSD: mcclock.c,v 1.16 2005/02/04 02:10:36 perry Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@ -50,9 +50,9 @@ __KERNEL_RCSID(0, "$NetBSD: mcclock.c,v 1.15 2001/12/05 10:54:51 simonb Exp $");
#endif
void mcclock_init __P((struct device *));
void mcclock_get __P((struct device *, time_t, struct clocktime *));
void mcclock_set __P((struct device *, struct clocktime *));
void mcclock_init(struct device *);
void mcclock_get(struct device *, time_t, struct clocktime *);
void mcclock_set(struct device *, struct clocktime *);
const struct clockfns mcclock_clockfns = {
mcclock_init, mcclock_get, mcclock_set,

View File

@ -1,4 +1,4 @@
/* $NetBSD: mcclock_pad32.c,v 1.10 2001/11/13 12:49:45 lukem Exp $ */
/* $NetBSD: mcclock_pad32.c,v 1.11 2005/02/04 02:10:36 perry Exp $ */
/*
* Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University.
@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: mcclock_pad32.c,v 1.10 2001/11/13 12:49:45 lukem Exp $");
__KERNEL_RCSID(0, "$NetBSD: mcclock_pad32.c,v 1.11 2005/02/04 02:10:36 perry Exp $");
/*
@ -58,8 +58,8 @@ __KERNEL_RCSID(0, "$NetBSD: mcclock_pad32.c,v 1.10 2001/11/13 12:49:45 lukem Exp
#include <dev/dec/mcclock_pad32.h>
void mcclock_pad32_write __P((struct mcclock_softc *, u_int, u_int));
u_int mcclock_pad32_read __P((struct mcclock_softc *, u_int));
void mcclock_pad32_write(struct mcclock_softc *, u_int, u_int);
u_int mcclock_pad32_read(struct mcclock_softc *, u_int);
const struct mcclock_busfns mcclock_pad32_busfns = {
mcclock_pad32_write, mcclock_pad32_read,

View File

@ -1,4 +1,4 @@
/* $NetBSD: mcclockvar.h,v 1.4 1997/06/22 08:02:19 jonathan Exp $ */
/* $NetBSD: mcclockvar.h,v 1.5 2005/02/04 02:10:36 perry Exp $ */
/*
* Copyright (c) 1996 Carnegie-Mellon University.
@ -33,9 +33,8 @@ struct mcclock_softc {
};
struct mcclock_busfns {
void (*mc_bf_write) __P((struct mcclock_softc *, u_int, u_int));
u_int (*mc_bf_read) __P((struct mcclock_softc *, u_int));
void (*mc_bf_write)(struct mcclock_softc *, u_int, u_int);
u_int (*mc_bf_read)(struct mcclock_softc *, u_int);
};
void mcclock_attach __P((struct mcclock_softc *,
const struct mcclock_busfns *));
void mcclock_attach(struct mcclock_softc *, const struct mcclock_busfns *);

View File

@ -1,4 +1,4 @@
/* $NetBSD: vsxxx.c,v 1.4 2002/03/17 19:40:55 atatat Exp $ */
/* $NetBSD: vsxxx.c,v 1.5 2005/02/04 02:10:36 perry Exp $ */
/*
* Copyright (c) 1999 Tohru Nishimura. All rights reserved.
@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: vsxxx.c,v 1.4 2002/03/17 19:40:55 atatat Exp $");
__KERNEL_RCSID(0, "$NetBSD: vsxxx.c,v 1.5 2005/02/04 02:10:36 perry Exp $");
/*
* Common machinary for VSXXX mice and tablet
@ -76,9 +76,9 @@ __KERNEL_RCSID(0, "$NetBSD: vsxxx.c,v 1.4 2002/03/17 19:40:55 atatat Exp $");
extern struct cfdriver vsms_cd;
static int vsxxx_enable __P((void *));
static int vsxxx_ioctl __P((void *, u_long, caddr_t, int, struct proc *));
static void vsxxx_disable __P((void *));
static int vsxxx_enable(void *);
static int vsxxx_ioctl(void *, u_long, caddr_t, int, struct proc *);
static void vsxxx_disable(void *);
struct wsmouse_accessops vsxxx_accessops = { /* EXPORT */
vsxxx_enable, /* MD? */

View File

@ -1,4 +1,4 @@
/* $NetBSD: vsxxxvar.h,v 1.1 1999/11/20 04:55:30 nisimura Exp $ */
/* $NetBSD: vsxxxvar.h,v 1.2 2005/02/04 02:10:36 perry Exp $ */
/*
* Copyright (c) 1999 Tohru Nishimura. All rights reserved.
@ -52,4 +52,4 @@ struct vsxxx_softc {
};
extern struct wsmouse_accessops vsxxx_accessops;
void vsxxx_input __P((int));
void vsxxx_input(int);

View File

@ -1,4 +1,4 @@
/* $NetBSD: gpib.c,v 1.2 2004/09/13 12:55:47 drochner Exp $ */
/* $NetBSD: gpib.c,v 1.3 2005/02/04 02:10:36 perry Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: gpib.c,v 1.2 2004/09/13 12:55:47 drochner Exp $");
__KERNEL_RCSID(0, "$NetBSD: gpib.c,v 1.3 2005/02/04 02:10:36 perry Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -65,8 +65,8 @@ int gpibdebug = 0xff;
#define DPRINTF(mask, str) /* nothing */
#endif
int gpibmatch __P((struct device *, struct cfdata *, void *));
void gpibattach __P((struct device *, struct device *, void *));
int gpibmatch(struct device *, struct cfdata *, void *);
void gpibattach(struct device *, struct device *, void *);
CFATTACH_DECL(gpib, sizeof(struct gpib_softc),
gpibmatch, gpibattach, NULL, NULL);

View File

@ -1,4 +1,4 @@
/* $NetBSD: adv.c,v 1.33 2003/05/03 18:11:11 wiz Exp $ */
/* $NetBSD: adv.c,v 1.34 2005/02/04 02:10:36 perry Exp $ */
/*
* Generic driver for the Advanced Systems Inc. Narrow SCSI controllers
@ -38,7 +38,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: adv.c,v 1.33 2003/05/03 18:11:11 wiz Exp $");
__KERNEL_RCSID(0, "$NetBSD: adv.c,v 1.34 2005/02/04 02:10:36 perry Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -74,25 +74,25 @@ __KERNEL_RCSID(0, "$NetBSD: adv.c,v 1.33 2003/05/03 18:11:11 wiz Exp $");
/******************************************************************************/
static int adv_alloc_control_data __P((ASC_SOFTC *));
static void adv_free_control_data __P((ASC_SOFTC *));
static int adv_create_ccbs __P((ASC_SOFTC *, ADV_CCB *, int));
static void adv_free_ccb __P((ASC_SOFTC *, ADV_CCB *));
static void adv_reset_ccb __P((ADV_CCB *));
static int adv_init_ccb __P((ASC_SOFTC *, ADV_CCB *));
static ADV_CCB *adv_get_ccb __P((ASC_SOFTC *));
static void adv_queue_ccb __P((ASC_SOFTC *, ADV_CCB *));
static void adv_start_ccbs __P((ASC_SOFTC *));
static int adv_alloc_control_data(ASC_SOFTC *);
static void adv_free_control_data(ASC_SOFTC *);
static int adv_create_ccbs(ASC_SOFTC *, ADV_CCB *, int);
static void adv_free_ccb(ASC_SOFTC *, ADV_CCB *);
static void adv_reset_ccb(ADV_CCB *);
static int adv_init_ccb(ASC_SOFTC *, ADV_CCB *);
static ADV_CCB *adv_get_ccb(ASC_SOFTC *);
static void adv_queue_ccb(ASC_SOFTC *, ADV_CCB *);
static void adv_start_ccbs(ASC_SOFTC *);
static void adv_scsipi_request __P((struct scsipi_channel *,
scsipi_adapter_req_t, void *));
static void advminphys __P((struct buf *));
static void adv_narrow_isr_callback __P((ASC_SOFTC *, ASC_QDONE_INFO *));
static void adv_scsipi_request(struct scsipi_channel *,
scsipi_adapter_req_t, void *);
static void advminphys(struct buf *);
static void adv_narrow_isr_callback(ASC_SOFTC *, ASC_QDONE_INFO *);
static int adv_poll __P((ASC_SOFTC *, struct scsipi_xfer *, int));
static void adv_timeout __P((void *));
static void adv_watchdog __P((void *));
static int adv_poll(ASC_SOFTC *, struct scsipi_xfer *, int);
static void adv_timeout(void *);
static void adv_watchdog(void *);
/******************************************************************************/

View File

@ -1,4 +1,4 @@
/* $NetBSD: adv.h,v 1.9 2003/07/08 10:06:30 itojun Exp $ */
/* $NetBSD: adv.h,v 1.10 2005/02/04 02:10:36 perry Exp $ */
/*
* Generic driver definitions and exported functions for the Advanced
@ -92,11 +92,11 @@ struct adv_control
/******************************************************************************/
int adv_init __P((ASC_SOFTC *));
void adv_attach __P((ASC_SOFTC *));
int adv_detach __P((ASC_SOFTC *, int));
int adv_intr __P((void *));
ADV_CCB *adv_ccb_phys_kv __P((ASC_SOFTC *, u_long));
int adv_init(ASC_SOFTC *);
void adv_attach(ASC_SOFTC *);
int adv_detach(ASC_SOFTC *, int);
int adv_intr(void *);
ADV_CCB *adv_ccb_phys_kv(ASC_SOFTC *, u_long);
/******************************************************************************/

View File

@ -1,4 +1,4 @@
/* $NetBSD: advlib.h,v 1.14 2004/02/13 18:02:05 wiz Exp $ */
/* $NetBSD: advlib.h,v 1.15 2005/02/04 02:10:36 perry Exp $ */
/*
* Definitions for low level routines and data structures
@ -1329,20 +1329,20 @@ typedef struct asceep_config
/******************************************************************************/
void AscInitASC_SOFTC __P((ASC_SOFTC *));
int16_t AscInitFromEEP __P((ASC_SOFTC *));
u_int16_t AscInitFromASC_SOFTC __P((ASC_SOFTC *));
int AscInitDriver __P((ASC_SOFTC *));
void AscReInitLram __P((ASC_SOFTC *));
int AscFindSignature __P((bus_space_tag_t, bus_space_handle_t));
u_int8_t AscGetChipIRQ __P((bus_space_tag_t, bus_space_handle_t, u_int16_t));
u_int16_t AscGetIsaDmaChannel __P((bus_space_tag_t, bus_space_handle_t));
int AscISR __P((ASC_SOFTC *));
int AscExeScsiQueue __P((ASC_SOFTC *, ASC_SCSI_Q *));
void AscInquiryHandling __P((ASC_SOFTC *, u_int8_t, ASC_SCSI_INQUIRY *));
int AscAbortCCB __P((ASC_SOFTC *, struct adv_ccb *));
int AscResetBus __P((ASC_SOFTC *));
int AscResetDevice __P((ASC_SOFTC *, u_char));
void AscInitASC_SOFTC(ASC_SOFTC *);
int16_t AscInitFromEEP(ASC_SOFTC *);
u_int16_t AscInitFromASC_SOFTC(ASC_SOFTC *);
int AscInitDriver(ASC_SOFTC *);
void AscReInitLram(ASC_SOFTC *);
int AscFindSignature(bus_space_tag_t, bus_space_handle_t);
u_int8_t AscGetChipIRQ(bus_space_tag_t, bus_space_handle_t, u_int16_t);
u_int16_t AscGetIsaDmaChannel(bus_space_tag_t, bus_space_handle_t);
int AscISR(ASC_SOFTC *);
int AscExeScsiQueue(ASC_SOFTC *, ASC_SCSI_Q *);
void AscInquiryHandling(ASC_SOFTC *, u_int8_t, ASC_SCSI_INQUIRY *);
int AscAbortCCB(ASC_SOFTC *, struct adv_ccb *);
int AscResetBus(ASC_SOFTC *);
int AscResetDevice(ASC_SOFTC *, u_char);
/******************************************************************************/

View File

@ -1,4 +1,4 @@
/* $NetBSD: adw.h,v 1.10 2003/07/08 10:06:30 itojun Exp $ */
/* $NetBSD: adw.h,v 1.11 2005/02/04 02:10:36 perry Exp $ */
/*
* Generic driver definitions and exported functions for the Advanced
@ -107,10 +107,10 @@ struct adw_control {
/******************************************************************************/
int adw_init __P((ADW_SOFTC *));
void adw_attach __P((ADW_SOFTC *));
int adw_intr __P((void *));
ADW_CCB *adw_ccb_phys_kv __P((ADW_SOFTC *, u_int32_t));
int adw_init(ADW_SOFTC *);
void adw_attach(ADW_SOFTC *);
int adw_intr(void *);
ADW_CCB *adw_ccb_phys_kv(ADW_SOFTC *, u_int32_t);
/******************************************************************************/

View File

@ -1,4 +1,4 @@
/* $NetBSD: adwlib.c,v 1.31 2003/11/02 11:07:44 wiz Exp $ */
/* $NetBSD: adwlib.c,v 1.32 2005/02/04 02:10:36 perry Exp $ */
/*
* Low level routines for the Advanced Systems Inc. SCSI controllers chips
@ -52,7 +52,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: adwlib.c,v 1.31 2003/11/02 11:07:44 wiz Exp $");
__KERNEL_RCSID(0, "$NetBSD: adwlib.c,v 1.32 2005/02/04 02:10:36 perry Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -79,26 +79,23 @@ __KERNEL_RCSID(0, "$NetBSD: adwlib.c,v 1.31 2003/11/02 11:07:44 wiz Exp $");
/* Static Functions */
int AdwRamSelfTest __P((bus_space_tag_t, bus_space_handle_t, u_int8_t));
int AdwLoadMCode __P((bus_space_tag_t, bus_space_handle_t, u_int16_t *,
u_int8_t));
int AdwASC3550Cabling __P((bus_space_tag_t, bus_space_handle_t, ADW_DVC_CFG *));
int AdwASC38C0800Cabling __P((bus_space_tag_t, bus_space_handle_t,
ADW_DVC_CFG *));
int AdwASC38C1600Cabling __P((bus_space_tag_t, bus_space_handle_t,
ADW_DVC_CFG *));
int AdwRamSelfTest(bus_space_tag_t, bus_space_handle_t, u_int8_t);
int AdwLoadMCode(bus_space_tag_t, bus_space_handle_t, u_int16_t *, u_int8_t);
int AdwASC3550Cabling(bus_space_tag_t, bus_space_handle_t, ADW_DVC_CFG *);
int AdwASC38C0800Cabling(bus_space_tag_t, bus_space_handle_t, ADW_DVC_CFG *);
int AdwASC38C1600Cabling(bus_space_tag_t, bus_space_handle_t, ADW_DVC_CFG *);
static u_int16_t AdwGetEEPROMConfig __P((bus_space_tag_t, bus_space_handle_t,
ADW_EEPROM *));
static void AdwSetEEPROMConfig __P((bus_space_tag_t, bus_space_handle_t,
ADW_EEPROM *));
static u_int16_t AdwReadEEPWord __P((bus_space_tag_t, bus_space_handle_t, int));
static void AdwWaitEEPCmd __P((bus_space_tag_t, bus_space_handle_t));
static u_int16_t AdwGetEEPROMConfig(bus_space_tag_t, bus_space_handle_t,
ADW_EEPROM *);
static void AdwSetEEPROMConfig(bus_space_tag_t, bus_space_handle_t,
ADW_EEPROM *);
static u_int16_t AdwReadEEPWord(bus_space_tag_t, bus_space_handle_t, int);
static void AdwWaitEEPCmd(bus_space_tag_t, bus_space_handle_t);
static void AdwInquiryHandling __P((ADW_SOFTC *, ADW_SCSI_REQ_Q *));
static void AdwInquiryHandling(ADW_SOFTC *, ADW_SCSI_REQ_Q *);
static void AdwSleepMilliSecond __P((u_int32_t));
static void AdwDelayMicroSecond __P((u_int32_t));
static void AdwSleepMilliSecond(u_int32_t);
static void AdwDelayMicroSecond(u_int32_t);
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: adwlib.h,v 1.15 2001/04/25 17:53:29 bouyer Exp $ */
/* $NetBSD: adwlib.h,v 1.16 2005/02/04 02:10:36 perry Exp $ */
/*
* Definitions for low level routines and data structures
@ -1057,13 +1057,13 @@ do { \
* Adv Library functions available to drivers.
*/
int AdwInitFromEEPROM __P((ADW_SOFTC *));
int AdwInitDriver __P((ADW_SOFTC *));
int AdwExeScsiQueue __P((ADW_SOFTC *, ADW_SCSI_REQ_Q *));
int AdwISR __P((ADW_SOFTC *));
void AdwResetChip __P((bus_space_tag_t, bus_space_handle_t));
int AdwSendIdleCmd __P((ADW_SOFTC *, u_int16_t, u_int32_t));
int AdwResetSCSIBus __P((ADW_SOFTC *));
int AdwResetCCB __P((ADW_SOFTC *));
int AdwInitFromEEPROM(ADW_SOFTC *);
int AdwInitDriver(ADW_SOFTC *);
int AdwExeScsiQueue(ADW_SOFTC *, ADW_SCSI_REQ_Q *);
int AdwISR(ADW_SOFTC *);
void AdwResetChip(bus_space_tag_t, bus_space_handle_t);
int AdwSendIdleCmd(ADW_SOFTC *, u_int16_t, u_int32_t);
int AdwResetSCSIBus(ADW_SOFTC *);
int AdwResetCCB(ADW_SOFTC *);
#endif /* _ADVANSYS_WIDE_LIBRARY_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: adwmcode.h,v 1.8 2003/02/21 17:14:06 tsutsui Exp $ */
/* $NetBSD: adwmcode.h,v 1.9 2005/02/04 02:10:36 perry Exp $ */
/*
* Generic driver definitions and exported functions for the Advanced
@ -203,7 +203,7 @@ struct adw_mcode {
/******************************************************************************/
ADW_CARRIER *AdwInitCarriers __P((bus_dmamap_t, ADW_CARRIER *));
ADW_CARRIER *AdwInitCarriers(bus_dmamap_t, ADW_CARRIER *);
extern const struct adw_mcode adw_asc3550_mcode_data;
extern const struct adw_mcode adw_asc38C0800_mcode_data;

View File

@ -1,4 +1,4 @@
/* $NetBSD: aic77xxvar.h,v 1.1 2000/03/15 02:06:19 fvdl Exp $ */
/* $NetBSD: aic77xxvar.h,v 1.2 2005/02/04 02:10:36 perry Exp $ */
/*
* Common routines for AHA-27/284X and aic7770 motherboard SCSI controllers.
@ -30,5 +30,5 @@
* $FreeBSD: src/sys/dev/aic7xxx/ahc_eisa.c,v 1.15 2000/01/29 14:22:19 peter Exp $
*/
int ahc_aic77xx_irq __P((bus_space_tag_t, bus_space_handle_t));
int ahc_aic77xx_attach __P((struct ahc_softc *ahc));
int ahc_aic77xx_irq(bus_space_tag_t, bus_space_handle_t);
int ahc_aic77xx_attach(struct ahc_softc *ahc);

View File

@ -1,4 +1,4 @@
/* $NetBSD: atppcvar.h,v 1.4 2004/04/21 17:38:48 drochner Exp $ */
/* $NetBSD: atppcvar.h,v 1.5 2005/02/04 02:10:36 perry Exp $ */
/*-
* Copyright (c) 2001 Alcove - Nicolas Souchu
@ -246,14 +246,14 @@ struct atppc_softc {
/* Function prototypes */
/* Soft config attach/detach routines */
void atppc_sc_attach __P((struct atppc_softc *));
int atppc_sc_detach __P((struct atppc_softc *, int));
void atppc_sc_attach(struct atppc_softc *);
int atppc_sc_detach(struct atppc_softc *, int);
/* Detection routines */
int atppc_detect_port __P((bus_space_tag_t, bus_space_handle_t));
int atppc_detect_port(bus_space_tag_t, bus_space_handle_t);
/* Interrupt handler for atppc device */
int atppcintr __P((void *));
int atppcintr(void *);
#endif /* _KERNEL */

View File

@ -1,4 +1,4 @@
/* $NetBSD: bt463.c,v 1.9 2003/11/13 03:09:29 chs Exp $ */
/* $NetBSD: bt463.c,v 1.10 2005/02/04 02:10:36 perry Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -69,7 +69,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: bt463.c,v 1.9 2003/11/13 03:09:29 chs Exp $");
__KERNEL_RCSID(0, "$NetBSD: bt463.c,v 1.10 2005/02/04 02:10:36 perry Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -91,33 +91,26 @@ __KERNEL_RCSID(0, "$NetBSD: bt463.c,v 1.9 2003/11/13 03:09:29 chs Exp $");
/*
* Functions exported via the RAMDAC configuration table.
*/
void bt463_init __P((struct ramdac_cookie *));
int bt463_set_cmap __P((struct ramdac_cookie *,
struct wsdisplay_cmap *));
int bt463_get_cmap __P((struct ramdac_cookie *,
struct wsdisplay_cmap *));
int bt463_set_cursor __P((struct ramdac_cookie *,
struct wsdisplay_cursor *));
int bt463_get_cursor __P((struct ramdac_cookie *,
struct wsdisplay_cursor *));
int bt463_set_curpos __P((struct ramdac_cookie *,
struct wsdisplay_curpos *));
int bt463_get_curpos __P((struct ramdac_cookie *,
struct wsdisplay_curpos *));
int bt463_get_curmax __P((struct ramdac_cookie *,
struct wsdisplay_curpos *));
int bt463_check_curcmap __P((struct ramdac_cookie *,
struct wsdisplay_cursor *cursorp));
void bt463_set_curcmap __P((struct ramdac_cookie *,
struct wsdisplay_cursor *cursorp));
int bt463_get_curcmap __P((struct ramdac_cookie *,
struct wsdisplay_cursor *cursorp));
void bt463_init(struct ramdac_cookie *);
int bt463_set_cmap(struct ramdac_cookie *, struct wsdisplay_cmap *);
int bt463_get_cmap(struct ramdac_cookie *, struct wsdisplay_cmap *);
int bt463_set_cursor(struct ramdac_cookie *, struct wsdisplay_cursor *);
int bt463_get_cursor(struct ramdac_cookie *, struct wsdisplay_cursor *);
int bt463_set_curpos(struct ramdac_cookie *, struct wsdisplay_curpos *);
int bt463_get_curpos(struct ramdac_cookie *, struct wsdisplay_curpos *);
int bt463_get_curmax(struct ramdac_cookie *, struct wsdisplay_curpos *);
int bt463_check_curcmap(struct ramdac_cookie *,
struct wsdisplay_cursor *cursorp);
void bt463_set_curcmap(struct ramdac_cookie *,
struct wsdisplay_cursor *cursorp);
int bt463_get_curcmap(struct ramdac_cookie *,
struct wsdisplay_cursor *cursorp);
#ifdef BT463_DEBUG
int bt463_store __P((void *));
int bt463_debug __P((void *));
int bt463_readback __P((void *));
void bt463_copyback __P((void *));
int bt463_store(void *);
int bt463_debug(void *);
int bt463_readback(void *);
void bt463_copyback(void *);
#endif
struct ramdac_funcs bt463_funcsstruct = {
@ -146,9 +139,9 @@ struct bt463data {
* struct tga_devconfig *
*/
int (*ramdac_sched_update) __P((void *, void (*)(void *)));
void (*ramdac_wr) __P((void *, u_int, u_int8_t));
u_int8_t (*ramdac_rd) __P((void *, u_int));
int (*ramdac_sched_update)(void *, void (*)(void *));
void (*ramdac_wr)(void *, u_int, u_int8_t);
u_int8_t (*ramdac_rd)(void *, u_int);
int changed; /* what changed; see below */
char curcmap_r[2]; /* cursor colormap */
@ -187,9 +180,9 @@ static struct bt463data *console_data;
/*
* Internal functions.
*/
inline void bt463_wraddr __P((struct bt463data *, u_int16_t));
inline void bt463_wraddr(struct bt463data *, u_int16_t);
void bt463_update __P((void *));
void bt463_update(void *);
/*****************************************************************************/

View File

@ -1,4 +1,4 @@
/* $NetBSD: bt463var.h,v 1.1 2000/04/02 18:57:36 nathanw Exp $ */
/* $NetBSD: bt463var.h,v 1.2 2005/02/04 02:10:36 perry Exp $ */
/*-
* Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@ -38,11 +38,11 @@
struct ramdac_funcs *bt463_funcs(void);
struct ramdac_cookie *bt463_register __P((void *,
struct ramdac_cookie *bt463_register(void *,
int (*)(void *, void (*)(void *)),
void (*)(void *, u_int, u_int8_t),
u_int8_t (*)(void *, u_int)));
void bt463_cninit __P((void *,
u_int8_t (*)(void *, u_int));
void bt463_cninit(void *,
int (*)(void *, void (*)(void *)),
void (*)(void *, u_int, u_int8_t),
u_int8_t (*)(void *, u_int)));
u_int8_t (*)(void *, u_int));

View File

@ -1,4 +1,4 @@
/* $NetBSD: bt485.c,v 1.10 2003/11/13 03:09:29 chs Exp $ */
/* $NetBSD: bt485.c,v 1.11 2005/02/04 02:10:36 perry Exp $ */
/*
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: bt485.c,v 1.10 2003/11/13 03:09:29 chs Exp $");
__KERNEL_RCSID(0, "$NetBSD: bt485.c,v 1.11 2005/02/04 02:10:36 perry Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -53,21 +53,14 @@ __KERNEL_RCSID(0, "$NetBSD: bt485.c,v 1.10 2003/11/13 03:09:29 chs Exp $");
/*
* Functions exported via the RAMDAC configuration table.
*/
void bt485_init __P((struct ramdac_cookie *));
int bt485_set_cmap __P((struct ramdac_cookie *,
struct wsdisplay_cmap *));
int bt485_get_cmap __P((struct ramdac_cookie *,
struct wsdisplay_cmap *));
int bt485_set_cursor __P((struct ramdac_cookie *,
struct wsdisplay_cursor *));
int bt485_get_cursor __P((struct ramdac_cookie *,
struct wsdisplay_cursor *));
int bt485_set_curpos __P((struct ramdac_cookie *,
struct wsdisplay_curpos *));
int bt485_get_curpos __P((struct ramdac_cookie *,
struct wsdisplay_curpos *));
int bt485_get_curmax __P((struct ramdac_cookie *,
struct wsdisplay_curpos *));
void bt485_init(struct ramdac_cookie *);
int bt485_set_cmap(struct ramdac_cookie *, struct wsdisplay_cmap *);
int bt485_get_cmap(struct ramdac_cookie *, struct wsdisplay_cmap *);
int bt485_set_cursor(struct ramdac_cookie *, struct wsdisplay_cursor *);
int bt485_get_cursor(struct ramdac_cookie *, struct wsdisplay_cursor *);
int bt485_set_curpos(struct ramdac_cookie *, struct wsdisplay_curpos *);
int bt485_get_curpos(struct ramdac_cookie *, struct wsdisplay_curpos *);
int bt485_get_curmax(struct ramdac_cookie *, struct wsdisplay_curpos *);
/* XXX const */
struct ramdac_funcs bt485_funcsstruct = {
@ -96,9 +89,9 @@ struct bt485data {
* struct tga_devconfig *
*/
int (*ramdac_sched_update) __P((void *, void (*)(void *)));
void (*ramdac_wr) __P((void *, u_int, u_int8_t));
u_int8_t (*ramdac_rd) __P((void *, u_int));
int (*ramdac_sched_update)(void *, void (*)(void *));
void (*ramdac_wr)(void *, u_int, u_int8_t);
u_int8_t (*ramdac_rd)(void *, u_int);
int changed; /* what changed; see below */
int curenb; /* cursor enabled */
@ -126,10 +119,10 @@ struct bt485data {
/*
* Internal functions.
*/
inline void bt485_wr_i __P((struct bt485data *, u_int8_t, u_int8_t));
inline u_int8_t bt485_rd_i __P((struct bt485data *, u_int8_t));
void bt485_update __P((void *));
void bt485_update_curpos __P((struct bt485data *));
inline void bt485_wr_i (struct bt485data *, u_int8_t, u_int8_t);
inline u_int8_t bt485_rd_i(struct bt485data *, u_int8_t);
void bt485_update(void *);
void bt485_update_curpos(struct bt485data *);
/*****************************************************************************/

View File

@ -1,4 +1,4 @@
/* $NetBSD: bt485var.h,v 1.1 2000/03/04 10:25:57 elric Exp $ */
/* $NetBSD: bt485var.h,v 1.2 2005/02/04 02:10:36 perry Exp $ */
/*-
* Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@ -38,11 +38,11 @@
struct ramdac_funcs *bt485_funcs(void);
struct ramdac_cookie *bt485_register __P((void *,
struct ramdac_cookie *bt485_register(void *,
int (*)(void *, void (*)(void *)),
void (*)(void *, u_int, u_int8_t),
u_int8_t (*)(void *, u_int)));
void bt485_cninit __P((void *,
u_int8_t (*)(void *, u_int));
void bt485_cninit(void *,
int (*)(void *, void (*)(void *)),
void (*)(void *, u_int, u_int8_t),
u_int8_t (*)(void *, u_int)));
u_int8_t (*)(void *, u_int));

View File

@ -1,4 +1,4 @@
/* $NetBSD: clmpcc.c,v 1.22 2002/10/23 09:13:14 jdolecek Exp $ */
/* $NetBSD: clmpcc.c,v 1.23 2005/02/04 02:10:36 perry Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: clmpcc.c,v 1.22 2002/10/23 09:13:14 jdolecek Exp $");
__KERNEL_RCSID(0, "$NetBSD: clmpcc.c,v 1.23 2005/02/04 02:10:36 perry Exp $");
#include "opt_ddb.h"
@ -74,14 +74,13 @@ __KERNEL_RCSID(0, "$NetBSD: clmpcc.c,v 1.22 2002/10/23 09:13:14 jdolecek Exp $")
#endif
static int clmpcc_init __P((struct clmpcc_softc *sc));
static void clmpcc_shutdown __P((struct clmpcc_chan *));
static int clmpcc_speed __P((struct clmpcc_softc *, speed_t,
int *, int *));
static int clmpcc_param __P((struct tty *, struct termios *));
static void clmpcc_set_params __P((struct clmpcc_chan *));
static void clmpcc_start __P((struct tty *));
static int clmpcc_modem_control __P((struct clmpcc_chan *, int, int));
static int clmpcc_init(struct clmpcc_softc *sc);
static void clmpcc_shutdown(struct clmpcc_chan *);
static int clmpcc_speed(struct clmpcc_softc *, speed_t, int *, int *);
static int clmpcc_param(struct tty *, struct termios *);
static void clmpcc_set_params(struct clmpcc_chan *);
static void clmpcc_start(struct tty *);
static int clmpcc_modem_control(struct clmpcc_chan *, int, int);
#define CLMPCCUNIT(x) (minor(x) & 0x7fffc)
#define CLMPCCCHAN(x) (minor(x) & 0x00003)
@ -125,25 +124,25 @@ static struct clmpcc_softc *cons_sc = NULL;
static int cons_chan;
static int cons_rate;
static int clmpcc_common_getc __P((struct clmpcc_softc *, int));
static void clmpcc_common_putc __P((struct clmpcc_softc *, int, int));
int clmpcccngetc __P((dev_t));
void clmpcccnputc __P((dev_t, int));
static int clmpcc_common_getc(struct clmpcc_softc *, int);
static void clmpcc_common_putc(struct clmpcc_softc *, int, int);
int clmpcccngetc(dev_t);
void clmpcccnputc(dev_t, int);
/*
* Convenience functions, inlined for speed
*/
#define integrate static inline
integrate u_int8_t clmpcc_rdreg __P((struct clmpcc_softc *, u_int));
integrate void clmpcc_wrreg __P((struct clmpcc_softc *, u_int, u_int));
integrate u_int8_t clmpcc_rdreg_odd __P((struct clmpcc_softc *, u_int));
integrate void clmpcc_wrreg_odd __P((struct clmpcc_softc *, u_int, u_int));
integrate void clmpcc_wrtx_multi __P((struct clmpcc_softc *, u_int8_t *,
u_int));
integrate u_int8_t clmpcc_select_channel __P((struct clmpcc_softc *, u_int));
integrate void clmpcc_channel_cmd __P((struct clmpcc_softc *,int,int));
integrate void clmpcc_enable_transmitter __P((struct clmpcc_chan *));
integrate u_int8_t clmpcc_rdreg(struct clmpcc_softc *, u_int);
integrate void clmpcc_wrreg(struct clmpcc_softc *, u_int, u_int);
integrate u_int8_t clmpcc_rdreg_odd(struct clmpcc_softc *, u_int);
integrate void clmpcc_wrreg_odd(struct clmpcc_softc *, u_int, u_int);
integrate void clmpcc_wrtx_multi(struct clmpcc_softc *, u_int8_t *,
u_int);
integrate u_int8_t clmpcc_select_channel(struct clmpcc_softc *, u_int);
integrate void clmpcc_channel_cmd(struct clmpcc_softc *,int,int);
integrate void clmpcc_enable_transmitter(struct clmpcc_chan *);
#define clmpcc_rd_msvr(s) clmpcc_rdreg_odd(s,CLMPCC_REG_MSVR)
#define clmpcc_wr_msvr(s,r,v) clmpcc_wrreg_odd(s,r,v)
@ -1443,7 +1442,7 @@ clmpcc_softintr(arg)
struct clmpcc_softc *sc = (struct clmpcc_softc *)arg;
struct clmpcc_chan *ch;
struct tty *tp;
int (*rint) __P((int, struct tty *));
int (*rint)(int, struct tty *);
u_char *get;
u_char reg;
u_int c;

View File

@ -1,4 +1,4 @@
/* $NetBSD: clmpccvar.h,v 1.8 2003/11/02 11:07:45 wiz Exp $ */
/* $NetBSD: clmpccvar.h,v 1.9 2005/02/04 02:10:36 perry Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@ -118,14 +118,14 @@ struct clmpcc_softc {
#ifndef __HAVE_GENERIC_SOFT_INTERRUPTS
/* Called to request a soft interrupt callback to clmpcc_softintr */
void (*sc_softhook) __P((struct clmpcc_softc *));
void (*sc_softhook)(struct clmpcc_softc *);
volatile int sc_soft_running;
#else
void *sc_softintr_cookie;
#endif
/* Called when an interrupt has to be acknowledged in polled mode. */
void (*sc_iackhook) __P((struct clmpcc_softc *, int));
void (*sc_iackhook)(struct clmpcc_softc *, int);
/*
* No user-serviceable parts below
@ -133,11 +133,11 @@ struct clmpcc_softc {
struct clmpcc_chan sc_chans[CLMPCC_NUM_CHANS];
};
extern void clmpcc_attach __P((struct clmpcc_softc *));
extern int clmpcc_cnattach __P((struct clmpcc_softc *, int, int));
extern int clmpcc_rxintr __P((void *));
extern int clmpcc_txintr __P((void *));
extern int clmpcc_mdintr __P((void *));
extern void clmpcc_softintr __P((void *));
extern void clmpcc_attach(struct clmpcc_softc *);
extern int clmpcc_cnattach(struct clmpcc_softc *, int, int);
extern int clmpcc_rxintr(void *);
extern int clmpcc_txintr(void *);
extern int clmpcc_mdintr(void *);
extern void clmpcc_softintr(void *);
#endif /* __clmpccvar_h */

View File

@ -1,4 +1,4 @@
/* $NetBSD: comvar.h,v 1.47 2003/11/08 01:59:38 simonb Exp $ */
/* $NetBSD: comvar.h,v 1.48 2005/02/04 02:10:36 perry Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou. All rights reserved.
@ -46,13 +46,13 @@
#include <sys/lock.h>
#endif
int comcnattach __P((bus_space_tag_t, bus_addr_t, int, int, int, tcflag_t));
int comcnattach(bus_space_tag_t, bus_addr_t, int, int, int, tcflag_t);
#ifdef KGDB
int com_kgdb_attach __P((bus_space_tag_t, bus_addr_t, int, int, int, tcflag_t));
int com_kgdb_attach(bus_space_tag_t, bus_addr_t, int, int, int, tcflag_t);
#endif
int com_is_console __P((bus_space_tag_t, bus_addr_t, bus_space_handle_t *));
int com_is_console(bus_space_tag_t, bus_addr_t, bus_space_handle_t *);
/* Hardware flag masks */
#define COM_HW_NOIEN 0x01
@ -135,8 +135,8 @@ struct com_softc {
#define COM_TYPE_AU1x00 3 /* AMD/Alchemy Au1x000 proc. built-in */
/* power management hooks */
int (*enable) __P((struct com_softc *));
void (*disable) __P((struct com_softc *));
int (*enable)(struct com_softc *);
void (*disable)(struct com_softc *);
int enabled;
/* PPS signal on DCD, with or without inkernel clock disciplining */
@ -159,11 +159,11 @@ struct com_softc {
#define CLR(t, f) (t) &= ~(f)
#define ISSET(t, f) ((t) & (f))
int comprobe1 __P((bus_space_tag_t, bus_space_handle_t));
int comintr __P((void *));
void com_attach_subr __P((struct com_softc *));
int com_detach __P((struct device *, int));
int com_activate __P((struct device *, enum devact));
int comprobe1(bus_space_tag_t, bus_space_handle_t);
int comintr(void *);
void com_attach_subr(struct com_softc *);
int com_detach(struct device *, int);
int com_activate(struct device *, enum devact);
#ifndef __HAVE_GENERIC_SOFT_INTERRUPTS
#ifdef __NO_SOFT_SERIAL_INTERRUPT

View File

@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: daic.c,v 1.20 2004/08/13 11:25:58 pooka Exp $");
__KERNEL_RCSID(0, "$NetBSD: daic.c,v 1.21 2005/02/04 02:10:36 perry Exp $");
/*
* daic.c: MI driver for Diehl active ISDN cards (S, SX, SXn, SCOM, QUADRO)
@ -76,14 +76,14 @@ struct cfdriver daic_cd = {
#endif
/* local function prototypes */
static char * cardtypename __P((int cardtype));
static int daic_download __P((void *, int portcount, struct isdn_dr_prot *data));
static int daic_diagnostic __P((void *, struct isdn_diagnostic_request *req));
static char * cardtypename(int cardtype);
static int daic_download(void *, int portcount, struct isdn_dr_prot *data);
static int daic_diagnostic(void *, struct isdn_diagnostic_request *req);
static void daic_connect_request(struct call_desc *cd);
static void daic_connect_response(struct call_desc *cd, int, int);
static void daic_disconnect_request(struct call_desc *cd, int);
static int daic_reset __P((bus_space_tag_t bus, bus_space_handle_t io, int port, int *memsize));
static int daic_handle_intr __P((struct daic_softc *sc, int port));
static int daic_reset(bus_space_tag_t bus, bus_space_handle_t io, int port, int *memsize);
static int daic_handle_intr(struct daic_softc *sc, int port);
static void daic_register_port(struct daic_softc *sc, int port);
static void daic_request(struct daic_softc *sc, int port, u_int req, u_int id, bus_size_t parmsize, const u_int8_t *parms);
static u_int daic_assign(struct daic_softc *sc, int port, u_int instance, bus_size_t parmsize, const u_int8_t *parms);

View File

@ -1,4 +1,4 @@
/* $NetBSD: daicvar.h,v 1.6 2003/12/04 13:57:30 keihan Exp $ */
/* $NetBSD: daicvar.h,v 1.7 2005/02/04 02:10:36 perry Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@ -119,9 +119,9 @@ struct daic_softc {
/*
* functions exported from MI part
*/
extern int daic_probe __P((bus_space_tag_t bus, bus_space_handle_t io));
extern void daic_attach __P((struct device *self, struct daic_softc *sc));
extern int daic_intr __P((struct daic_softc *));
extern int daic_probe(bus_space_tag_t bus, bus_space_handle_t io);
extern void daic_attach(struct device *self, struct daic_softc *sc);
extern int daic_intr(struct daic_softc *);
#endif
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: dp8390.c,v 1.54 2004/10/30 18:08:36 thorpej Exp $ */
/* $NetBSD: dp8390.c,v 1.55 2005/02/04 02:10:36 perry Exp $ */
/*
* Device driver for National Semiconductor DS8390/WD83C690 based ethernet
@ -14,7 +14,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: dp8390.c,v 1.54 2004/10/30 18:08:36 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: dp8390.c,v 1.55 2005/02/04 02:10:36 perry Exp $");
#include "opt_ipkdb.h"
#include "opt_inet.h"
@ -73,16 +73,16 @@ __KERNEL_RCSID(0, "$NetBSD: dp8390.c,v 1.54 2004/10/30 18:08:36 thorpej Exp $");
int dp8390_debug = 0;
#endif
static __inline__ void dp8390_xmit __P((struct dp8390_softc *));
static __inline__ void dp8390_xmit(struct dp8390_softc *);
static __inline__ void dp8390_read_hdr __P((struct dp8390_softc *,
int, struct dp8390_ring *));
static __inline__ int dp8390_ring_copy __P((struct dp8390_softc *,
int, caddr_t, u_short));
static __inline__ int dp8390_write_mbuf __P((struct dp8390_softc *,
struct mbuf *, int));
static __inline__ void dp8390_read_hdr(struct dp8390_softc *,
int, struct dp8390_ring *);
static __inline__ int dp8390_ring_copy(struct dp8390_softc *,
int, caddr_t, u_short);
static __inline__ int dp8390_write_mbuf(struct dp8390_softc *,
struct mbuf *, int);
static int dp8390_test_mem __P((struct dp8390_softc *));
static int dp8390_test_mem(struct dp8390_softc *);
/*
* Standard media init routine for the dp8390.
@ -1353,11 +1353,11 @@ dp8390_detach(sc, flags)
}
#ifdef IPKDB_DP8390
static void dp8390_ipkdb_hwinit __P((struct ipkdb_if *));
static void dp8390_ipkdb_init __P((struct ipkdb_if *));
static void dp8390_ipkdb_leave __P((struct ipkdb_if *));
static int dp8390_ipkdb_rcv __P((struct ipkdb_if *, u_char *, int));
static void dp8390_ipkdb_send __P((struct ipkdb_if *, u_char *, int));
static void dp8390_ipkdb_hwinit(struct ipkdb_if *);
static void dp8390_ipkdb_init(struct ipkdb_if *);
static void dp8390_ipkdb_leave(struct ipkdb_if *);
static int dp8390_ipkdb_rcv(struct ipkdb_if *, u_char *, int);
static void dp8390_ipkdb_send(struct ipkdb_if *, u_char *, int);
/*
* This is essentially similar to dp8390_config above.

View File

@ -1,4 +1,4 @@
/* $NetBSD: dp8390var.h,v 1.24 2003/11/02 11:07:45 wiz Exp $ */
/* $NetBSD: dp8390var.h,v 1.25 2005/02/04 02:10:36 perry Exp $ */
/*
* Device driver for National Semiconductor DS8390/WD83C690 based ethernet
@ -75,25 +75,22 @@ struct dp8390_softc {
rndsource_element_t rnd_source; /* random source */
#endif
int (*test_mem) __P((struct dp8390_softc *));
void (*init_card) __P((struct dp8390_softc *));
void (*stop_card) __P((struct dp8390_softc *));
void (*read_hdr) __P((struct dp8390_softc *,
int, struct dp8390_ring *));
void (*recv_int) __P((struct dp8390_softc *));
int (*ring_copy) __P((struct dp8390_softc *,
int, caddr_t, u_short));
int (*write_mbuf) __P((struct dp8390_softc *, struct mbuf *, int));
int (*test_mem)(struct dp8390_softc *);
void (*init_card)(struct dp8390_softc *);
void (*stop_card)(struct dp8390_softc *);
void (*read_hdr)(struct dp8390_softc *, int, struct dp8390_ring *);
void (*recv_int)(struct dp8390_softc *);
int (*ring_copy)(struct dp8390_softc *, int, caddr_t, u_short);
int (*write_mbuf)(struct dp8390_softc *, struct mbuf *, int);
int (*sc_enable) __P((struct dp8390_softc *));
void (*sc_disable) __P((struct dp8390_softc *));
int (*sc_enable)(struct dp8390_softc *);
void (*sc_disable)(struct dp8390_softc *);
void (*sc_media_init) __P((struct dp8390_softc *));
void (*sc_media_fini) __P((struct dp8390_softc *));
void (*sc_media_init)(struct dp8390_softc *);
void (*sc_media_fini)(struct dp8390_softc *);
int (*sc_mediachange) __P((struct dp8390_softc *));
void (*sc_mediastatus) __P((struct dp8390_softc *,
struct ifmediareq *));
int (*sc_mediachange)(struct dp8390_softc *);
void (*sc_mediastatus)(struct dp8390_softc *, struct ifmediareq *);
};
/*
@ -155,33 +152,33 @@ struct dp8390_softc {
#define NIC_BARRIER(t, h) bus_space_barrier(t, h, 0, 0x10, \
BUS_SPACE_BARRIER_READ | BUS_SPACE_BARRIER_WRITE)
int dp8390_config __P((struct dp8390_softc *));
int dp8390_intr __P((void *));
int dp8390_ioctl __P((struct ifnet *, u_long, caddr_t));
void dp8390_start __P((struct ifnet *));
void dp8390_watchdog __P((struct ifnet *));
void dp8390_reset __P((struct dp8390_softc *));
void dp8390_init __P((struct dp8390_softc *));
void dp8390_stop __P((struct dp8390_softc *));
int dp8390_config(struct dp8390_softc *);
int dp8390_intr(void *);
int dp8390_ioctl(struct ifnet *, u_long, caddr_t);
void dp8390_start(struct ifnet *);
void dp8390_watchdog(struct ifnet *);
void dp8390_reset(struct dp8390_softc *);
void dp8390_init(struct dp8390_softc *);
void dp8390_stop(struct dp8390_softc *);
void dp8390_rint __P((struct dp8390_softc *));
void dp8390_rint(struct dp8390_softc *);
void dp8390_getmcaf __P((struct ethercom *, u_int8_t *));
struct mbuf *dp8390_get __P((struct dp8390_softc *, int, u_short));
void dp8390_read __P((struct dp8390_softc *, int, u_short));
void dp8390_getmcaf(struct ethercom *, u_int8_t *);
struct mbuf *dp8390_get(struct dp8390_softc *, int, u_short);
void dp8390_read(struct dp8390_softc *, int, u_short);
int dp8390_enable __P((struct dp8390_softc *));
void dp8390_disable __P((struct dp8390_softc *));
int dp8390_enable(struct dp8390_softc *);
void dp8390_disable(struct dp8390_softc *);
int dp8390_activate __P((struct device *, enum devact));
int dp8390_activate(struct device *, enum devact);
int dp8390_detach __P((struct dp8390_softc *, int));
int dp8390_detach(struct dp8390_softc *, int);
int dp8390_mediachange __P((struct ifnet *));
void dp8390_mediastatus __P((struct ifnet *, struct ifmediareq *));
int dp8390_mediachange(struct ifnet *);
void dp8390_mediastatus(struct ifnet *, struct ifmediareq *);
void dp8390_media_init __P((struct dp8390_softc *));
void dp8390_media_init(struct dp8390_softc *);
#ifdef IPKDB_DP8390
int dp8390_ipkdb_attach __P((struct ipkdb_if *));
int dp8390_ipkdb_attach(struct ipkdb_if *);
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: ds.h,v 1.4 2002/03/24 15:51:45 bjh21 Exp $ */
/* $NetBSD: ds.h,v 1.5 2005/02/04 02:10:36 perry Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@ -90,9 +90,9 @@
*/
struct ds_handle {
int (*ds_read_bit) __P((void *));
void (*ds_write_bit) __P((void *, int));
void (*ds_reset) __P((void *));
int (*ds_read_bit)(void *);
void (*ds_write_bit)(void *, int);
void (*ds_reset)(void *);
void *ds_hw_handle;
};
@ -101,8 +101,8 @@ struct ds_handle {
* the same 1-wire bus as the DS2404 RTC.
*/
static u_int8_t ds_read_byte __P((struct ds_handle *));
static void ds_write_byte __P((struct ds_handle *, unsigned int));
static u_int8_t ds_read_byte(struct ds_handle *);
static void ds_write_byte(struct ds_handle *, unsigned int);
static inline u_int8_t
ds_read_byte(dsh)

View File

@ -1,4 +1,4 @@
/* $NetBSD: ds1286reg.h,v 1.5 2003/07/08 10:06:30 itojun Exp $ */
/* $NetBSD: ds1286reg.h,v 1.6 2005/02/04 02:10:36 perry Exp $ */
/*
* Copyright (c) 2001 Rafal K. Boni
@ -130,8 +130,8 @@
* RTC register/NVRAM read and write functions -- machine-dependent.
* Appropriately manipulate RTC registers to get/put data values.
*/
u_int ds1286_read __P((void *, u_int));
void ds1286_write __P((void *, u_int, u_int));
u_int ds1286_read(void *, u_int);
void ds1286_write(void *, u_int, u_int);
/*
* A collection of TOD/Alarm registers.

View File

@ -1,4 +1,4 @@
/* $NetBSD: ds1687reg.h,v 1.5 2005/02/01 16:16:22 he Exp $ */
/* $NetBSD: ds1687reg.h,v 1.6 2005/02/04 02:10:36 perry Exp $ */
/*
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@ -188,8 +188,8 @@
* RTC register/NVRAM read and write functions -- machine-dependent.
* Appropriately manipulate RTC registers to get/put data values.
*/
u_int ds1687_read __P((void *, u_int));
void ds1687_write __P((void *, u_int, u_int));
u_int ds1687_read(void *, u_int);
void ds1687_write(void *, u_int, u_int);
/*
* A collection of TOD/Alarm registers.

View File

@ -1,4 +1,4 @@
/* $NetBSD: elink3.c,v 1.109 2005/01/11 04:16:27 briggs Exp $ */
/* $NetBSD: elink3.c,v 1.110 2005/02/04 02:10:36 perry Exp $ */
/*-
* Copyright (c) 1998, 2001 The NetBSD Foundation, Inc.
@ -69,7 +69,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: elink3.c,v 1.109 2005/01/11 04:16:27 briggs Exp $");
__KERNEL_RCSID(0, "$NetBSD: elink3.c,v 1.110 2005/02/04 02:10:36 perry Exp $");
#include "opt_inet.h"
#include "opt_ns.h"
@ -188,51 +188,50 @@ const struct ep_media ep_509_media[] = {
0 },
};
void ep_internalconfig __P((struct ep_softc *sc));
void ep_vortex_probemedia __P((struct ep_softc *sc));
void ep_509_probemedia __P((struct ep_softc *sc));
void ep_internalconfig(struct ep_softc *sc);
void ep_vortex_probemedia(struct ep_softc *sc);
void ep_509_probemedia(struct ep_softc *sc);
static void eptxstat __P((struct ep_softc *));
static int epstatus __P((struct ep_softc *));
int epinit __P((struct ifnet *));
void epstop __P((struct ifnet *, int));
int epioctl __P((struct ifnet *, u_long, caddr_t));
void epstart __P((struct ifnet *));
void epwatchdog __P((struct ifnet *));
void epreset __P((struct ep_softc *));
static void epshutdown __P((void *));
void epread __P((struct ep_softc *));
struct mbuf *epget __P((struct ep_softc *, int));
void epmbuffill __P((void *));
void epmbufempty __P((struct ep_softc *));
void epsetfilter __P((struct ep_softc *));
void ep_roadrunner_mii_enable __P((struct ep_softc *));
void epsetmedia __P((struct ep_softc *));
static void eptxstat(struct ep_softc *);
static int epstatus(struct ep_softc *);
int epinit(struct ifnet *);
void epstop(struct ifnet *, int);
int epioctl(struct ifnet *, u_long, caddr_t);
void epstart(struct ifnet *);
void epwatchdog(struct ifnet *);
void epreset(struct ep_softc *);
static void epshutdown(void *);
void epread(struct ep_softc *);
struct mbuf *epget(struct ep_softc *, int);
void epmbuffill(void *);
void epmbufempty(struct ep_softc *);
void epsetfilter(struct ep_softc *);
void ep_roadrunner_mii_enable(struct ep_softc *);
void epsetmedia(struct ep_softc *);
/* ifmedia callbacks */
int ep_media_change __P((struct ifnet *ifp));
void ep_media_status __P((struct ifnet *ifp, struct ifmediareq *req));
int ep_media_change(struct ifnet *ifp);
void ep_media_status(struct ifnet *ifp, struct ifmediareq *req);
/* MII callbacks */
int ep_mii_readreg __P((struct device *, int, int));
void ep_mii_writereg __P((struct device *, int, int, int));
void ep_statchg __P((struct device *));
int ep_mii_readreg(struct device *, int, int);
void ep_mii_writereg(struct device *, int, int, int);
void ep_statchg(struct device *);
void ep_tick __P((void *));
void ep_tick(void *);
static int epbusyeeprom __P((struct ep_softc *));
u_int16_t ep_read_eeprom __P((struct ep_softc *, u_int16_t));
static inline void ep_reset_cmd __P((struct ep_softc *sc,
u_int cmd, u_int arg));
static inline void ep_finish_reset __P((bus_space_tag_t, bus_space_handle_t));
static inline void ep_discard_rxtop __P((bus_space_tag_t, bus_space_handle_t));
static __inline int ep_w1_reg __P((struct ep_softc *, int));
static int epbusyeeprom(struct ep_softc *);
u_int16_t ep_read_eeprom(struct ep_softc *, u_int16_t);
static inline void ep_reset_cmd(struct ep_softc *sc, u_int cmd, u_int arg);
static inline void ep_finish_reset(bus_space_tag_t, bus_space_handle_t);
static inline void ep_discard_rxtop(bus_space_tag_t, bus_space_handle_t);
static __inline int ep_w1_reg(struct ep_softc *, int);
/*
* MII bit-bang glue.
*/
u_int32_t ep_mii_bitbang_read __P((struct device *));
void ep_mii_bitbang_write __P((struct device *, u_int32_t));
u_int32_t ep_mii_bitbang_read(struct device *);
void ep_mii_bitbang_write(struct device *, u_int32_t);
const struct mii_bitbang_ops ep_mii_bitbang_ops = {
ep_mii_bitbang_read,

View File

@ -1,4 +1,4 @@
/* $NetBSD: elink3var.h,v 1.31 2003/07/08 10:06:31 itojun Exp $ */
/* $NetBSD: elink3var.h,v 1.32 2005/02/04 02:10:36 perry Exp $ */
/*
* Copyright (c) 1994 Herb Peyerl <hpeyerl@beer.org>
@ -108,19 +108,19 @@ struct ep_softc {
void *sd_hook;
/* power management hooks */
int (*enable) __P((struct ep_softc *));
void (*disable) __P((struct ep_softc *));
int (*enable)(struct ep_softc *);
void (*disable)(struct ep_softc *);
int enabled;
};
u_int16_t epreadeeprom __P((bus_space_tag_t, bus_space_handle_t, int));
int epconfig __P((struct ep_softc *, u_short, u_int8_t *));
u_int16_t epreadeeprom(bus_space_tag_t, bus_space_handle_t, int);
int epconfig(struct ep_softc *, u_short, u_int8_t *);
int epintr __P((void *));
int epintr(void *);
int epenable __P((struct ep_softc *));
void epdisable __P((struct ep_softc *));
int epenable(struct ep_softc *);
void epdisable(struct ep_softc *);
int ep_activate __P((struct device *, enum devact));
int ep_detach __P((struct device *, int));
int ep_activate(struct device *, enum devact);
int ep_detach(struct device *, int);

View File

@ -1,4 +1,4 @@
/* $NetBSD: elinkxl.c,v 1.75 2004/10/30 18:08:36 thorpej Exp $ */
/* $NetBSD: elinkxl.c,v 1.76 2005/02/04 02:10:36 perry Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: elinkxl.c,v 1.75 2004/10/30 18:08:36 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: elinkxl.c,v 1.76 2005/02/04 02:10:36 perry Exp $");
#include "bpfilter.h"
#include "rnd.h"
@ -88,38 +88,38 @@ int exdebug = 0;
#endif
/* ifmedia callbacks */
int ex_media_chg __P((struct ifnet *ifp));
void ex_media_stat __P((struct ifnet *ifp, struct ifmediareq *req));
int ex_media_chg(struct ifnet *ifp);
void ex_media_stat(struct ifnet *ifp, struct ifmediareq *req);
void ex_probe_media __P((struct ex_softc *));
void ex_set_filter __P((struct ex_softc *));
void ex_set_media __P((struct ex_softc *));
void ex_set_xcvr __P((struct ex_softc *, u_int16_t));
struct mbuf *ex_get __P((struct ex_softc *, int));
u_int16_t ex_read_eeprom __P((struct ex_softc *, int));
int ex_init __P((struct ifnet *));
void ex_read __P((struct ex_softc *));
void ex_reset __P((struct ex_softc *));
void ex_set_mc __P((struct ex_softc *));
void ex_getstats __P((struct ex_softc *));
void ex_printstats __P((struct ex_softc *));
void ex_tick __P((void *));
void ex_probe_media(struct ex_softc *);
void ex_set_filter(struct ex_softc *);
void ex_set_media(struct ex_softc *);
void ex_set_xcvr(struct ex_softc *, u_int16_t);
struct mbuf *ex_get(struct ex_softc *, int);
u_int16_t ex_read_eeprom(struct ex_softc *, int);
int ex_init(struct ifnet *);
void ex_read(struct ex_softc *);
void ex_reset(struct ex_softc *);
void ex_set_mc(struct ex_softc *);
void ex_getstats(struct ex_softc *);
void ex_printstats(struct ex_softc *);
void ex_tick(void *);
void ex_power __P((int, void *));
void ex_power(int, void *);
static int ex_eeprom_busy __P((struct ex_softc *));
static int ex_add_rxbuf __P((struct ex_softc *, struct ex_rxdesc *));
static void ex_init_txdescs __P((struct ex_softc *));
static int ex_eeprom_busy(struct ex_softc *);
static int ex_add_rxbuf(struct ex_softc *, struct ex_rxdesc *);
static void ex_init_txdescs(struct ex_softc *);
static void ex_shutdown __P((void *));
static void ex_start __P((struct ifnet *));
static void ex_txstat __P((struct ex_softc *));
static void ex_shutdown(void *);
static void ex_start(struct ifnet *);
static void ex_txstat(struct ex_softc *);
int ex_mii_readreg __P((struct device *, int, int));
void ex_mii_writereg __P((struct device *, int, int, int));
void ex_mii_statchg __P((struct device *));
int ex_mii_readreg(struct device *, int, int);
void ex_mii_writereg(struct device *, int, int, int);
void ex_mii_statchg(struct device *);
void ex_probemedia __P((struct ex_softc *));
void ex_probemedia(struct ex_softc *);
/*
* Structure to map media-present bits in boards to ifmedia codes and
@ -162,8 +162,8 @@ struct ex_media ex_native_media[] = {
/*
* MII bit-bang glue.
*/
u_int32_t ex_mii_bitbang_read __P((struct device *));
void ex_mii_bitbang_write __P((struct device *, u_int32_t));
u_int32_t ex_mii_bitbang_read(struct device *);
void ex_mii_bitbang_write(struct device *, u_int32_t);
const struct mii_bitbang_ops ex_mii_bitbang_ops = {
ex_mii_bitbang_read,

View File

@ -1,4 +1,4 @@
/* $NetBSD: elinkxlvar.h,v 1.14 2003/06/05 22:11:22 dogcow Exp $ */
/* $NetBSD: elinkxlvar.h,v 1.15 2005/02/04 02:10:36 perry Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -124,13 +124,13 @@ struct ex_softc {
#endif
/* power management hooks */
int (*enable) __P((struct ex_softc *));
void (*disable) __P((struct ex_softc *));
void (*power) __P((struct ex_softc *, int));
int (*enable)(struct ex_softc *);
void (*disable)(struct ex_softc *);
void (*power)(struct ex_softc *, int);
int enabled;
/* interrupt acknowledge hook */
void (*intr_ack) __P((struct ex_softc *));
void (*intr_ack)(struct ex_softc *);
void *sc_sdhook;
void *sc_powerhook;
@ -148,15 +148,15 @@ struct ex_softc {
} while ((stat & COMMAND_IN_PROGRESS) && (stat != 0xffff)); \
} while (0)\
u_int16_t exreadeeprom __P((bus_space_tag_t, bus_space_handle_t, int));
void ex_config __P((struct ex_softc *));
u_int16_t exreadeeprom(bus_space_tag_t, bus_space_handle_t, int);
void ex_config(struct ex_softc *);
int ex_intr __P((void *));
void ex_stop __P((struct ifnet *, int));
void ex_watchdog __P((struct ifnet *));
int ex_ioctl __P((struct ifnet *ifp, u_long, caddr_t));
int ex_activate __P((struct device *, enum devact));
int ex_detach __P((struct ex_softc *));
int ex_intr(void *);
void ex_stop(struct ifnet *, int);
void ex_watchdog(struct ifnet *);
int ex_ioctl(struct ifnet *ifp, u_long, caddr_t);
int ex_activate(struct device *, enum devact);
int ex_detach(struct ex_softc *);
int ex_enable __P((struct ex_softc *));
void ex_disable __P((struct ex_softc *));
int ex_enable(struct ex_softc *);
void ex_disable(struct ex_softc *);

View File

@ -1,4 +1,4 @@
/* $NetBSD: esiop.c,v 1.31 2004/05/20 20:57:50 bouyer Exp $ */
/* $NetBSD: esiop.c,v 1.32 2005/02/04 02:10:36 perry Exp $ */
/*
* Copyright (c) 2002 Manuel Bouyer.
@ -33,7 +33,7 @@
/* SYM53c7/8xx PCI-SCSI I/O Processors driver */
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: esiop.c,v 1.31 2004/05/20 20:57:50 bouyer Exp $");
__KERNEL_RCSID(0, "$NetBSD: esiop.c,v 1.32 2005/02/04 02:10:36 perry Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -79,24 +79,23 @@ __KERNEL_RCSID(0, "$NetBSD: esiop.c,v 1.31 2004/05/20 20:57:50 bouyer Exp $");
/* number of cmd descriptors per block */
#define SIOP_NCMDPB (PAGE_SIZE / sizeof(struct esiop_xfer))
void esiop_reset __P((struct esiop_softc *));
void esiop_checkdone __P((struct esiop_softc *));
void esiop_handle_reset __P((struct esiop_softc *));
void esiop_scsicmd_end __P((struct esiop_cmd *, int));
void esiop_unqueue __P((struct esiop_softc *, int, int));
int esiop_handle_qtag_reject __P((struct esiop_cmd *));
static void esiop_start __P((struct esiop_softc *, struct esiop_cmd *));
void esiop_timeout __P((void *));
void esiop_scsipi_request __P((struct scsipi_channel *,
scsipi_adapter_req_t, void *));
void esiop_dump_script __P((struct esiop_softc *));
void esiop_morecbd __P((struct esiop_softc *));
void esiop_moretagtbl __P((struct esiop_softc *));
void siop_add_reselsw __P((struct esiop_softc *, int));
void esiop_target_register __P((struct esiop_softc *, u_int32_t));
void esiop_reset(struct esiop_softc *);
void esiop_checkdone(struct esiop_softc *);
void esiop_handle_reset(struct esiop_softc *);
void esiop_scsicmd_end(struct esiop_cmd *, int);
void esiop_unqueue(struct esiop_softc *, int, int);
int esiop_handle_qtag_reject(struct esiop_cmd *);
static void esiop_start(struct esiop_softc *, struct esiop_cmd *);
void esiop_timeout(void *);
void esiop_scsipi_request(struct scsipi_channel *,
scsipi_adapter_req_t, void *);
void esiop_dump_script(struct esiop_softc *);
void esiop_morecbd(struct esiop_softc *);
void esiop_moretagtbl(struct esiop_softc *);
void siop_add_reselsw(struct esiop_softc *, int);
void esiop_target_register(struct esiop_softc *, u_int32_t);
void esiop_update_scntl3 __P((struct esiop_softc *,
struct siop_common_target *));
void esiop_update_scntl3(struct esiop_softc *, struct siop_common_target *);
#ifdef SIOP_STATS
static int esiop_stat_intr = 0;
@ -106,13 +105,13 @@ static int esiop_stat_intr_done = 0;
static int esiop_stat_intr_xferdisc = 0;
static int esiop_stat_intr_lunresel = 0;
static int esiop_stat_intr_qfull = 0;
void esiop_printstats __P((void));
void esiop_printstats(void);
#define INCSTAT(x) x++
#else
#define INCSTAT(x)
#endif
static __inline__ void esiop_script_sync __P((struct esiop_softc *, int));
static __inline__ void esiop_script_sync(struct esiop_softc *, int);
static __inline__ void
esiop_script_sync(sc, ops)
struct esiop_softc *sc;
@ -123,7 +122,7 @@ esiop_script_sync(sc, ops)
PAGE_SIZE, ops);
}
static __inline__ u_int32_t esiop_script_read __P((struct esiop_softc *, u_int));
static __inline__ u_int32_t esiop_script_read(struct esiop_softc *, u_int);
static __inline__ u_int32_t
esiop_script_read(sc, offset)
struct esiop_softc *sc;
@ -137,8 +136,8 @@ esiop_script_read(sc, offset)
}
}
static __inline__ void esiop_script_write __P((struct esiop_softc *, u_int,
u_int32_t));
static __inline__ void esiop_script_write(struct esiop_softc *, u_int,
u_int32_t);
static __inline__ void
esiop_script_write(sc, offset, val)
struct esiop_softc *sc;

View File

@ -1,4 +1,4 @@
/* $NetBSD: esiopvar.h,v 1.10 2004/05/17 18:37:02 bouyer Exp $ */
/* $NetBSD: esiopvar.h,v 1.11 2005/02/04 02:10:36 perry Exp $ */
/*
* Copyright (c) 2002 Manuel Bouyer.
@ -119,7 +119,7 @@ struct esiop_target {
u_int32_t lun_table_offset; /* pointer to our DSA table */
};
static __inline__ void esiop_table_sync __P((struct esiop_cmd *, int));
static __inline__ void esiop_table_sync(struct esiop_cmd *, int);
static __inline__ void
esiop_table_sync(esiop_cmd, ops)
struct esiop_cmd *esiop_cmd;
@ -159,7 +159,7 @@ struct esiop_softc {
#define SCF_CHAN_NOSLOT 0x0001 /* channel out of scheduler slot */
#define SCF_CHAN_ADAPTREQ 0x0002 /* esiop_scsipi_request() is running */
void esiop_attach __P((struct esiop_softc *));
int esiop_intr __P((void *));
void esiop_add_dev __P((struct esiop_softc *, int, int));
void esiop_del_dev __P((struct esiop_softc *, int, int));
void esiop_attach(struct esiop_softc *);
int esiop_intr(void *);
void esiop_add_dev(struct esiop_softc *, int, int);
void esiop_del_dev(struct esiop_softc *, int, int);

View File

@ -1,4 +1,4 @@
/* $NetBSD: gem.c,v 1.33 2005/01/31 02:53:19 thorpej Exp $ */
/* $NetBSD: gem.c,v 1.34 2005/02/04 02:10:36 perry Exp $ */
/*
*
@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: gem.c,v 1.33 2005/01/31 02:53:19 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: gem.c,v 1.34 2005/02/04 02:10:36 perry Exp $");
#include "bpfilter.h"
@ -75,41 +75,41 @@ __KERNEL_RCSID(0, "$NetBSD: gem.c,v 1.33 2005/01/31 02:53:19 thorpej Exp $");
#define TRIES 10000
void gem_start __P((struct ifnet *));
void gem_stop __P((struct ifnet *, int));
int gem_ioctl __P((struct ifnet *, u_long, caddr_t));
void gem_tick __P((void *));
void gem_watchdog __P((struct ifnet *));
void gem_shutdown __P((void *));
int gem_init __P((struct ifnet *));
void gem_start(struct ifnet *);
void gem_stop(struct ifnet *, int);
int gem_ioctl(struct ifnet *, u_long, caddr_t);
void gem_tick(void *);
void gem_watchdog(struct ifnet *);
void gem_shutdown(void *);
int gem_init(struct ifnet *);
void gem_init_regs(struct gem_softc *sc);
static int gem_ringsize(int sz);
int gem_meminit __P((struct gem_softc *));
void gem_mifinit __P((struct gem_softc *));
void gem_reset __P((struct gem_softc *));
int gem_meminit(struct gem_softc *);
void gem_mifinit(struct gem_softc *);
void gem_reset(struct gem_softc *);
int gem_reset_rx(struct gem_softc *sc);
int gem_reset_tx(struct gem_softc *sc);
int gem_disable_rx(struct gem_softc *sc);
int gem_disable_tx(struct gem_softc *sc);
void gem_rxdrain(struct gem_softc *sc);
int gem_add_rxbuf(struct gem_softc *sc, int idx);
void gem_setladrf __P((struct gem_softc *));
void gem_setladrf(struct gem_softc *);
/* MII methods & callbacks */
static int gem_mii_readreg __P((struct device *, int, int));
static void gem_mii_writereg __P((struct device *, int, int, int));
static void gem_mii_statchg __P((struct device *));
static int gem_mii_readreg(struct device *, int, int);
static void gem_mii_writereg(struct device *, int, int, int);
static void gem_mii_statchg(struct device *);
int gem_mediachange __P((struct ifnet *));
void gem_mediastatus __P((struct ifnet *, struct ifmediareq *));
int gem_mediachange(struct ifnet *);
void gem_mediastatus(struct ifnet *, struct ifmediareq *);
struct mbuf *gem_get __P((struct gem_softc *, int, int));
int gem_put __P((struct gem_softc *, int, struct mbuf *));
void gem_read __P((struct gem_softc *, int, int));
int gem_eint __P((struct gem_softc *, u_int));
int gem_rint __P((struct gem_softc *));
int gem_tint __P((struct gem_softc *));
void gem_power __P((int, void *));
struct mbuf *gem_get(struct gem_softc *, int, int);
int gem_put(struct gem_softc *, int, struct mbuf *);
void gem_read(struct gem_softc *, int, int);
int gem_eint(struct gem_softc *, u_int);
int gem_rint(struct gem_softc *);
int gem_tint(struct gem_softc *);
void gem_power(int, void *);
#ifdef GEM_DEBUG
#define DPRINTF(sc, x) if ((sc)->sc_ethercom.ec_if.if_flags & IFF_DEBUG) \

View File

@ -1,4 +1,4 @@
/* $NetBSD: gemvar.h,v 1.10 2004/10/17 21:49:08 heas Exp $ */
/* $NetBSD: gemvar.h,v 1.11 2005/02/04 02:10:36 perry Exp $ */
/*
*
@ -179,8 +179,8 @@ struct gem_softc {
void *sc_sh; /* shutdownhook cookie */
/* Special hardware hooks */
void (*sc_hwreset) __P((struct gem_softc *));
void (*sc_hwinit) __P((struct gem_softc *));
void (*sc_hwreset)(struct gem_softc *);
void (*sc_hwinit)(struct gem_softc *);
#if NRND > 0
rndsource_element_t rnd_source;
@ -257,10 +257,10 @@ do { \
} while (0)
#ifdef _KERNEL
void gem_attach __P((struct gem_softc *, const uint8_t *));
int gem_intr __P((void *));
void gem_attach(struct gem_softc *, const uint8_t *);
int gem_intr(void *);
void gem_reset __P((struct gem_softc *));
void gem_reset(struct gem_softc *);
#endif /* _KERNEL */

View File

@ -1,4 +1,4 @@
/* $NetBSD: hd64570.c,v 1.27 2004/04/22 00:17:11 itojun Exp $ */
/* $NetBSD: hd64570.c,v 1.28 2005/02/04 02:10:36 perry Exp $ */
/*
* Copyright (c) 1999 Christian E. Hopps
@ -65,7 +65,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: hd64570.c,v 1.27 2004/04/22 00:17:11 itojun Exp $");
__KERNEL_RCSID(0, "$NetBSD: hd64570.c,v 1.28 2005/02/04 02:10:36 perry Exp $");
#include "bpfilter.h"
#include "opt_inet.h"
@ -169,11 +169,11 @@ static void sca_port_starttx(sca_port_t *);
static void sca_port_up(sca_port_t *);
static void sca_port_down(sca_port_t *);
static int sca_output __P((struct ifnet *, struct mbuf *, struct sockaddr *,
struct rtentry *));
static int sca_ioctl __P((struct ifnet *, u_long, caddr_t));
static void sca_start __P((struct ifnet *));
static void sca_watchdog __P((struct ifnet *));
static int sca_output(struct ifnet *, struct mbuf *, struct sockaddr *,
struct rtentry *);
static int sca_ioctl(struct ifnet *, u_long, caddr_t);
static void sca_start(struct ifnet *);
static void sca_watchdog(struct ifnet *);
static struct mbuf *sca_mbuf_alloc(struct sca_softc *, caddr_t, u_int);

View File

@ -1,4 +1,4 @@
/* $NetBSD: hme.c,v 1.43 2004/10/30 18:08:37 thorpej Exp $ */
/* $NetBSD: hme.c,v 1.44 2005/02/04 02:10:36 perry Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: hme.c,v 1.43 2004/10/30 18:08:37 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: hme.c,v 1.44 2005/02/04 02:10:36 perry Exp $");
/* #define HMEDEBUG */
@ -95,39 +95,39 @@ __KERNEL_RCSID(0, "$NetBSD: hme.c,v 1.43 2004/10/30 18:08:37 thorpej Exp $");
#include <dev/ic/hmereg.h>
#include <dev/ic/hmevar.h>
void hme_start __P((struct ifnet *));
void hme_stop __P((struct hme_softc *));
int hme_ioctl __P((struct ifnet *, u_long, caddr_t));
void hme_tick __P((void *));
void hme_watchdog __P((struct ifnet *));
void hme_shutdown __P((void *));
void hme_init __P((struct hme_softc *));
void hme_meminit __P((struct hme_softc *));
void hme_mifinit __P((struct hme_softc *));
void hme_reset __P((struct hme_softc *));
void hme_setladrf __P((struct hme_softc *));
void hme_start(struct ifnet *);
void hme_stop(struct hme_softc *);
int hme_ioctl(struct ifnet *, u_long, caddr_t);
void hme_tick(void *);
void hme_watchdog(struct ifnet *);
void hme_shutdown(void *);
void hme_init(struct hme_softc *);
void hme_meminit(struct hme_softc *);
void hme_mifinit(struct hme_softc *);
void hme_reset(struct hme_softc *);
void hme_setladrf(struct hme_softc *);
/* MII methods & callbacks */
static int hme_mii_readreg __P((struct device *, int, int));
static void hme_mii_writereg __P((struct device *, int, int, int));
static void hme_mii_statchg __P((struct device *));
static int hme_mii_readreg(struct device *, int, int);
static void hme_mii_writereg(struct device *, int, int, int);
static void hme_mii_statchg(struct device *);
int hme_mediachange __P((struct ifnet *));
void hme_mediastatus __P((struct ifnet *, struct ifmediareq *));
int hme_mediachange(struct ifnet *);
void hme_mediastatus(struct ifnet *, struct ifmediareq *);
struct mbuf *hme_get __P((struct hme_softc *, int, int));
int hme_put __P((struct hme_softc *, int, struct mbuf *));
void hme_read __P((struct hme_softc *, int, int));
int hme_eint __P((struct hme_softc *, u_int));
int hme_rint __P((struct hme_softc *));
int hme_tint __P((struct hme_softc *));
struct mbuf *hme_get(struct hme_softc *, int, int);
int hme_put(struct hme_softc *, int, struct mbuf *);
void hme_read(struct hme_softc *, int, int);
int hme_eint(struct hme_softc *, u_int);
int hme_rint(struct hme_softc *);
int hme_tint(struct hme_softc *);
static int ether_cmp __P((u_char *, u_char *));
static int ether_cmp(u_char *, u_char *);
/* Default buffer copy routines */
void hme_copytobuf_contig __P((struct hme_softc *, void *, int, int));
void hme_copyfrombuf_contig __P((struct hme_softc *, void *, int, int));
void hme_zerobuf_contig __P((struct hme_softc *, int, int));
void hme_copytobuf_contig(struct hme_softc *, void *, int, int);
void hme_copyfrombuf_contig(struct hme_softc *, void *, int, int);
void hme_zerobuf_contig(struct hme_softc *, int, int);
void

View File

@ -1,4 +1,4 @@
/* $NetBSD: hmevar.h,v 1.11 2004/06/28 20:50:52 heas Exp $ */
/* $NetBSD: hmevar.h,v 1.12 2005/02/04 02:10:36 perry Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@ -87,10 +87,10 @@ struct hme_softc {
/* Ring descriptor */
struct hme_ring sc_rb;
#if notused
void (*sc_copytobuf) __P((struct hme_softc *,
void *, void *, size_t));
void (*sc_copyfrombuf) __P((struct hme_softc *,
void *, void *, size_t));
void (*sc_copytobuf)(struct hme_softc *,
void *, void *, size_t);
void (*sc_copyfrombuf)(struct hme_softc *,
void *, void *, size_t);
#endif
int sc_debug;
@ -99,8 +99,8 @@ struct hme_softc {
u_int8_t sc_enaddr[ETHER_ADDR_LEN]; /* MAC address */
/* Special hardware hooks */
void (*sc_hwreset) __P((struct hme_softc *));
void (*sc_hwinit) __P((struct hme_softc *));
void (*sc_hwreset)(struct hme_softc *);
void (*sc_hwinit)(struct hme_softc *);
#if NRND > 0
rndsource_element_t rnd_source;
@ -108,6 +108,6 @@ struct hme_softc {
};
void hme_config __P((struct hme_softc *));
void hme_reset __P((struct hme_softc *));
int hme_intr __P((void *));
void hme_config(struct hme_softc *);
void hme_reset(struct hme_softc *);
int hme_intr(void *);

View File

@ -1,4 +1,4 @@
/* $NetBSD: i82365.c,v 1.87 2004/09/13 12:34:00 drochner Exp $ */
/* $NetBSD: i82365.c,v 1.88 2005/02/04 02:10:36 perry Exp $ */
/*
* Copyright (c) 2004 Charles M. Hannum. All rights reserved.
@ -49,7 +49,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: i82365.c,v 1.87 2004/09/13 12:34:00 drochner Exp $");
__KERNEL_RCSID(0, "$NetBSD: i82365.c,v 1.88 2005/02/04 02:10:36 perry Exp $");
#define PCICDEBUG
@ -86,33 +86,33 @@ int pcic_debug = 0;
#define PCIC_MEM_ALIGN PCIC_MEM_PAGESIZE
void pcic_attach_socket __P((struct pcic_handle *));
void pcic_attach_socket_finish __P((struct pcic_handle *));
void pcic_attach_socket(struct pcic_handle *);
void pcic_attach_socket_finish(struct pcic_handle *);
int pcic_submatch __P((struct device *, struct cfdata *,
const locdesc_t *, void *));
int pcic_print __P((void *arg, const char *pnp));
int pcic_intr_socket __P((struct pcic_handle *));
void pcic_poll_intr __P((void *));
int pcic_submatch(struct device *, struct cfdata *,
const locdesc_t *, void *);
int pcic_print (void *arg, const char *pnp);
int pcic_intr_socket(struct pcic_handle *);
void pcic_poll_intr(void *);
void pcic_attach_card __P((struct pcic_handle *));
void pcic_detach_card __P((struct pcic_handle *, int));
void pcic_deactivate_card __P((struct pcic_handle *));
void pcic_attach_card(struct pcic_handle *);
void pcic_detach_card(struct pcic_handle *, int);
void pcic_deactivate_card(struct pcic_handle *);
void pcic_chip_do_mem_map __P((struct pcic_handle *, int));
void pcic_chip_do_io_map __P((struct pcic_handle *, int));
void pcic_chip_do_mem_map(struct pcic_handle *, int);
void pcic_chip_do_io_map(struct pcic_handle *, int);
void pcic_create_event_thread __P((void *));
void pcic_event_thread __P((void *));
void pcic_create_event_thread(void *);
void pcic_event_thread(void *);
void pcic_queue_event __P((struct pcic_handle *, int));
void pcic_power __P((int, void *));
void pcic_queue_event(struct pcic_handle *, int);
void pcic_power(int, void *);
static int pcic_wait_ready __P((struct pcic_handle *));
static void pcic_delay __P((struct pcic_handle *, int, const char *));
static int pcic_wait_ready(struct pcic_handle *);
static void pcic_delay(struct pcic_handle *, int, const char *);
static u_int8_t st_pcic_read __P((struct pcic_handle *, int));
static void st_pcic_write __P((struct pcic_handle *, int, u_int8_t));
static u_int8_t st_pcic_read(struct pcic_handle *, int);
static void st_pcic_write(struct pcic_handle *, int, u_int8_t);
int
pcic_ident_ok(ident)

View File

@ -1,4 +1,4 @@
/* $NetBSD: i82365var.h,v 1.21 2004/09/13 12:34:00 drochner Exp $ */
/* $NetBSD: i82365var.h,v 1.22 2005/02/04 02:10:36 perry Exp $ */
/*
* Copyright (c) 1997 Marc Horowitz. All rights reserved.
@ -53,8 +53,8 @@ struct pcic_handle {
struct device *ph_parent;
bus_space_tag_t ph_bus_t; /* I/O or MEM? I don't mind */
bus_space_handle_t ph_bus_h;
u_int8_t (*ph_read) __P((struct pcic_handle *, int));
void (*ph_write) __P((struct pcic_handle *, int, u_int8_t));
u_int8_t (*ph_read)(struct pcic_handle *, int);
void (*ph_write)(struct pcic_handle *, int, u_int8_t);
int vendor; /* vendor of chip */
int chip; /* chip index 0 or 1 */
@ -159,43 +159,43 @@ struct pcic_softc {
};
int pcic_ident_ok __P((int));
int pcic_vendor __P((struct pcic_handle *));
char *pcic_vendor_to_string __P((int));
int pcic_ident_ok(int);
int pcic_vendor(struct pcic_handle *);
char *pcic_vendor_to_string(int);
void pcic_attach __P((struct pcic_softc *));
void pcic_attach_sockets __P((struct pcic_softc *));
void pcic_attach_sockets_finish __P((struct pcic_softc *));
int pcic_intr __P((void *arg));
void pcic_attach(struct pcic_softc *);
void pcic_attach_sockets(struct pcic_softc *);
void pcic_attach_sockets_finish(struct pcic_softc *);
int pcic_intr(void *arg);
/*
static inline int pcic_read __P((struct pcic_handle *, int));
static inline void pcic_write __P((struct pcic_handle *, int, u_int8_t));
static inline int pcic_read(struct pcic_handle *, int);
static inline void pcic_write(struct pcic_handle *, int, u_int8_t);
*/
int pcic_chip_mem_alloc __P((pcmcia_chipset_handle_t, bus_size_t,
struct pcmcia_mem_handle *));
void pcic_chip_mem_free __P((pcmcia_chipset_handle_t,
struct pcmcia_mem_handle *));
int pcic_chip_mem_map __P((pcmcia_chipset_handle_t, int, bus_addr_t,
bus_size_t, struct pcmcia_mem_handle *, bus_size_t *, int *));
void pcic_chip_mem_unmap __P((pcmcia_chipset_handle_t, int));
int pcic_chip_mem_alloc(pcmcia_chipset_handle_t, bus_size_t,
struct pcmcia_mem_handle *);
void pcic_chip_mem_free(pcmcia_chipset_handle_t,
struct pcmcia_mem_handle *);
int pcic_chip_mem_map(pcmcia_chipset_handle_t, int, bus_addr_t,
bus_size_t, struct pcmcia_mem_handle *, bus_size_t *, int *);
void pcic_chip_mem_unmap(pcmcia_chipset_handle_t, int);
int pcic_chip_io_alloc __P((pcmcia_chipset_handle_t, bus_addr_t,
bus_size_t, bus_size_t, struct pcmcia_io_handle *));
void pcic_chip_io_free __P((pcmcia_chipset_handle_t,
struct pcmcia_io_handle *));
int pcic_chip_io_map __P((pcmcia_chipset_handle_t, int, bus_addr_t,
bus_size_t, struct pcmcia_io_handle *, int *));
void pcic_chip_io_unmap __P((pcmcia_chipset_handle_t, int));
int pcic_chip_io_alloc(pcmcia_chipset_handle_t, bus_addr_t,
bus_size_t, bus_size_t, struct pcmcia_io_handle *);
void pcic_chip_io_free(pcmcia_chipset_handle_t,
struct pcmcia_io_handle *);
int pcic_chip_io_map(pcmcia_chipset_handle_t, int, bus_addr_t,
bus_size_t, struct pcmcia_io_handle *, int *);
void pcic_chip_io_unmap(pcmcia_chipset_handle_t, int);
void pcic_chip_socket_enable __P((pcmcia_chipset_handle_t));
void pcic_chip_socket_disable __P((pcmcia_chipset_handle_t));
void pcic_chip_socket_settype __P((pcmcia_chipset_handle_t, int));
void pcic_chip_socket_enable(pcmcia_chipset_handle_t);
void pcic_chip_socket_disable(pcmcia_chipset_handle_t);
void pcic_chip_socket_settype(pcmcia_chipset_handle_t, int);
#if 0
static __inline int pcic_read __P((struct pcic_handle *, int));
static __inline int pcic_read(struct pcic_handle *, int);
static __inline int
pcic_read(h, idx)
struct pcic_handle *h;
@ -207,7 +207,7 @@ pcic_read(h, idx)
return (bus_space_read_1(h->sc->iot, h->sc->ioh, PCIC_REG_DATA));
}
static __inline void pcic_write __P((struct pcic_handle *, int, int));
static __inline void pcic_write(struct pcic_handle *, int, int);
static __inline void
pcic_write(h, idx, data)
struct pcic_handle *h;

View File

@ -1,4 +1,4 @@
/* $NetBSD: i82586.c,v 1.49 2004/10/30 18:08:37 thorpej Exp $ */
/* $NetBSD: i82586.c,v 1.50 2005/02/04 02:10:36 perry Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -144,7 +144,7 @@ Mode of operation:
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: i82586.c,v 1.49 2004/10/30 18:08:37 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: i82586.c,v 1.50 2005/02/04 02:10:36 perry Exp $");
#include "bpfilter.h"
@ -173,50 +173,47 @@ __KERNEL_RCSID(0, "$NetBSD: i82586.c,v 1.49 2004/10/30 18:08:37 thorpej Exp $");
#include <dev/ic/i82586reg.h>
#include <dev/ic/i82586var.h>
void i82586_reset __P((struct ie_softc *, int));
void i82586_watchdog __P((struct ifnet *));
int i82586_init __P((struct ifnet *));
int i82586_ioctl __P((struct ifnet *, u_long, caddr_t));
void i82586_start __P((struct ifnet *));
void i82586_stop __P((struct ifnet *, int));
void i82586_reset(struct ie_softc *, int);
void i82586_watchdog(struct ifnet *);
int i82586_init(struct ifnet *);
int i82586_ioctl(struct ifnet *, u_long, caddr_t);
void i82586_start(struct ifnet *);
void i82586_stop(struct ifnet *, int);
int i82586_rint __P((struct ie_softc *, int));
int i82586_tint __P((struct ie_softc *, int));
int i82586_rint(struct ie_softc *, int);
int i82586_tint(struct ie_softc *, int);
int i82586_mediachange __P((struct ifnet *));
void i82586_mediastatus __P((struct ifnet *,
struct ifmediareq *));
int i82586_mediachange(struct ifnet *);
void i82586_mediastatus(struct ifnet *, struct ifmediareq *);
static int ie_readframe __P((struct ie_softc *, int));
static struct mbuf *ieget __P((struct ie_softc *, int, int));
static int i82586_get_rbd_list __P((struct ie_softc *,
u_int16_t *, u_int16_t *, int *));
static void i82586_release_rbd_list __P((struct ie_softc *,
u_int16_t, u_int16_t));
static int i82586_drop_frames __P((struct ie_softc *));
static int i82586_chk_rx_ring __P((struct ie_softc *));
static int ie_readframe(struct ie_softc *, int);
static struct mbuf *ieget(struct ie_softc *, int, int);
static int i82586_get_rbd_list(struct ie_softc *,
u_int16_t *, u_int16_t *, int *);
static void i82586_release_rbd_list(struct ie_softc *,
u_int16_t, u_int16_t);
static int i82586_drop_frames(struct ie_softc *);
static int i82586_chk_rx_ring(struct ie_softc *);
static __inline__ void ie_ack __P((struct ie_softc *, u_int));
static __inline__ void iexmit __P((struct ie_softc *));
static void i82586_start_transceiver
__P((struct ie_softc *));
static __inline__ void ie_ack(struct ie_softc *, u_int);
static __inline__ void iexmit(struct ie_softc *);
static void i82586_start_transceiver(struct ie_softc *);
static void i82586_count_errors __P((struct ie_softc *));
static void i82586_rx_errors __P((struct ie_softc *, int, int));
static void i82586_setup_bufs __P((struct ie_softc *));
static void setup_simple_command __P((struct ie_softc *, int, int));
static int ie_cfg_setup __P((struct ie_softc *, int, int, int));
static int ie_ia_setup __P((struct ie_softc *, int));
static void ie_run_tdr __P((struct ie_softc *, int));
static int ie_mc_setup __P((struct ie_softc *, int));
static void ie_mc_reset __P((struct ie_softc *));
static int i82586_start_cmd __P((struct ie_softc *,
int, int, int, int));
static int i82586_cmd_wait __P((struct ie_softc *));
static void i82586_count_errors(struct ie_softc *);
static void i82586_rx_errors(struct ie_softc *, int, int);
static void i82586_setup_bufs(struct ie_softc *);
static void setup_simple_command(struct ie_softc *, int, int);
static int ie_cfg_setup(struct ie_softc *, int, int, int);
static int ie_ia_setup(struct ie_softc *, int);
static void ie_run_tdr(struct ie_softc *, int);
static int ie_mc_setup(struct ie_softc *, int);
static void ie_mc_reset(struct ie_softc *);
static int i82586_start_cmd(struct ie_softc *, int, int, int, int);
static int i82586_cmd_wait(struct ie_softc *);
#if I82586_DEBUG
void print_rbd __P((struct ie_softc *, int));
void print_rbd(struct ie_softc *, int);
#endif
static char* padbuf = NULL;

View File

@ -1,4 +1,4 @@
/* $NetBSD: i82586var.h,v 1.18 2003/11/02 11:07:45 wiz Exp $ */
/* $NetBSD: i82586var.h,v 1.19 2005/02/04 02:10:36 perry Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -190,23 +190,22 @@ struct ie_softc {
struct ifmedia sc_media; /* supported media information */
/* Bus glue */
void (*hwreset) __P((struct ie_softc *, int));
void (*hwinit) __P((struct ie_softc *));
void (*chan_attn) __P((struct ie_softc *, int));
int (*intrhook) __P((struct ie_softc *, int));
void (*hwreset)(struct ie_softc *, int);
void (*hwinit)(struct ie_softc *);
void (*chan_attn)(struct ie_softc *, int);
int (*intrhook)(struct ie_softc *, int);
void (*memcopyin) __P((struct ie_softc *, void *, int, size_t));
void (*memcopyout) __P((struct ie_softc *, const void *,
int, size_t));
u_int16_t (*ie_bus_read16) __P((struct ie_softc *, int));
void (*ie_bus_write16) __P((struct ie_softc *, int, u_int16_t));
void (*ie_bus_write24) __P((struct ie_softc *, int, int));
void (*ie_bus_barrier) __P((struct ie_softc *, int, int, int));
void (*memcopyin)(struct ie_softc *, void *, int, size_t);
void (*memcopyout)(struct ie_softc *, const void *, int, size_t);
u_int16_t (*ie_bus_read16)(struct ie_softc *, int);
void (*ie_bus_write16)(struct ie_softc *, int, u_int16_t);
void (*ie_bus_write24)(struct ie_softc *, int, int);
void (*ie_bus_barrier)(struct ie_softc *, int, int, int);
/* Media management */
int (*sc_mediachange) __P((struct ie_softc *));
int (*sc_mediachange)(struct ie_softc *);
/* card dependent media change */
void (*sc_mediastatus) __P((struct ie_softc *, struct ifmediareq *));
void (*sc_mediastatus)(struct ie_softc *, struct ifmediareq *);
/* card dependent media status */
@ -263,10 +262,9 @@ struct ie_softc {
};
/* Exported functions */
int i82586_intr __P((void *));
int i82586_proberam __P((struct ie_softc *));
void i82586_attach __P((struct ie_softc *, char *, u_int8_t *,
int*, int, int));
int i82586_intr(void *);
int i82586_proberam(struct ie_softc *);
void i82586_attach(struct ie_softc *, char *, u_int8_t *, int*, int, int);
/* Shortcut macros to optional (driver uses default if unspecified) callbacks */
#define IE_BUS_BARRIER(sc, offset, length, flags) \

View File

@ -1,4 +1,4 @@
/* $NetBSD: ibm561.c,v 1.5 2003/11/13 03:09:29 chs Exp $ */
/* $NetBSD: ibm561.c,v 1.6 2005/02/04 02:10:36 perry Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ibm561.c,v 1.5 2003/11/13 03:09:29 chs Exp $");
__KERNEL_RCSID(0, "$NetBSD: ibm561.c,v 1.6 2005/02/04 02:10:36 perry Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -58,23 +58,15 @@ __KERNEL_RCSID(0, "$NetBSD: ibm561.c,v 1.5 2003/11/13 03:09:29 chs Exp $");
/*
* Functions exported via the RAMDAC configuration table.
*/
void ibm561_init __P((struct ramdac_cookie *));
int ibm561_set_cmap __P((struct ramdac_cookie *,
struct wsdisplay_cmap *));
int ibm561_get_cmap __P((struct ramdac_cookie *,
struct wsdisplay_cmap *));
int ibm561_set_cursor __P((struct ramdac_cookie *,
struct wsdisplay_cursor *));
int ibm561_get_cursor __P((struct ramdac_cookie *,
struct wsdisplay_cursor *));
int ibm561_set_curpos __P((struct ramdac_cookie *,
struct wsdisplay_curpos *));
int ibm561_get_curpos __P((struct ramdac_cookie *,
struct wsdisplay_curpos *));
int ibm561_get_curmax __P((struct ramdac_cookie *,
struct wsdisplay_curpos *));
int ibm561_set_dotclock __P((struct ramdac_cookie *,
unsigned));
void ibm561_init(struct ramdac_cookie *);
int ibm561_set_cmap(struct ramdac_cookie *, struct wsdisplay_cmap *);
int ibm561_get_cmap(struct ramdac_cookie *, struct wsdisplay_cmap *);
int ibm561_set_cursor(struct ramdac_cookie *, struct wsdisplay_cursor *);
int ibm561_get_cursor(struct ramdac_cookie *, struct wsdisplay_cursor *);
int ibm561_set_curpos(struct ramdac_cookie *, struct wsdisplay_curpos *);
int ibm561_get_curpos(struct ramdac_cookie *, struct wsdisplay_curpos *);
int ibm561_get_curmax(struct ramdac_cookie *, struct wsdisplay_curpos *);
int ibm561_set_dotclock(struct ramdac_cookie *, unsigned);
/* XXX const */
struct ramdac_funcs ibm561_funcsstruct = {
@ -100,9 +92,9 @@ struct ramdac_funcs ibm561_funcsstruct = {
struct ibm561data {
void *cookie;
int (*ramdac_sched_update) __P((void *, void (*)(void *)));
void (*ramdac_wr) __P((void *, u_int, u_int8_t));
u_int8_t (*ramdac_rd) __P((void *, u_int));
int (*ramdac_sched_update)(void *, void (*)(void *));
void (*ramdac_wr)(void *, u_int, u_int8_t);
u_int8_t (*ramdac_rd)(void *, u_int);
#define CHANGED_CURCMAP 0x0001 /* cursor cmap */
#define CHANGED_CMAP 0x0002 /* color map */
@ -135,7 +127,7 @@ struct ibm561data {
/*
* private functions
*/
void ibm561_update __P((void *));
void ibm561_update(void *);
static void ibm561_load_cmap(struct ibm561data *);
static void ibm561_load_dotclock(struct ibm561data *);
static void ibm561_regbegin(struct ibm561data *, u_int16_t);

View File

@ -1,4 +1,4 @@
/* $NetBSD: ibm561var.h,v 1.2 2001/12/22 01:38:21 elric Exp $ */
/* $NetBSD: ibm561var.h,v 1.3 2005/02/04 02:10:36 perry Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -37,11 +37,11 @@
*/
struct ramdac_funcs *ibm561_funcs(void);
struct ramdac_cookie *ibm561_register __P((void *,
struct ramdac_cookie *ibm561_register(void *,
int (*)(void *, void (*)(void *)),
void (*)(void *, u_int, u_int8_t),
u_int8_t (*)(void *, u_int)));
void ibm561_cninit __P((void *,
u_int8_t (*)(void *, u_int));
void ibm561_cninit(void *,
int (*)(void *, void (*)(void *)),
void (*)(void *, u_int, u_int8_t),
u_int8_t (*)(void *, u_int), u_int));
u_int8_t (*)(void *, u_int), u_int);

View File

@ -1,4 +1,4 @@
/* $NetBSD: isic_l1.h,v 1.16 2003/10/03 16:38:44 pooka Exp $ */
/* $NetBSD: isic_l1.h,v 1.17 2005/02/04 02:10:36 perry Exp $ */
/*
* Copyright (c) 1997, 2000 Hellmuth Michaelis. All rights reserved.
@ -264,15 +264,14 @@ struct isic_softc
#define ISIC_WHAT_HSCXB 2
#define ISIC_WHAT_IPAC 3
u_int8_t (*readreg) __P((struct isic_softc *, int, bus_size_t));
void (*writereg) __P((struct isic_softc *, int, bus_size_t, u_int8_t));
void (*readfifo) __P((struct isic_softc *, int, void *,
size_t));
void (*writefifo) __P((struct isic_softc *, int what,
const void *, size_t));
void (*clearirq) __P((struct isic_softc *));
u_int8_t (*readreg)(struct isic_softc *, int, bus_size_t);
void (*writereg)(struct isic_softc *, int, bus_size_t, u_int8_t);
void (*readfifo)(struct isic_softc *, int, void *, size_t);
void (*writefifo)(struct isic_softc *, int what,
const void *, size_t);
void (*clearirq)(struct isic_softc *);
void (*drv_command) __P((struct isic_softc *, int, void *));
void (*drv_command)(struct isic_softc *, int, void *);
#define ISAC_READ(r) (*sc->readreg)(sc, ISIC_WHAT_ISAC, (r))
#define ISAC_WRITE(r,v) (*sc->writereg)(sc, ISIC_WHAT_ISAC, (r), (v))
@ -333,40 +332,40 @@ enum I430commands {
#define N_COMMANDS CMD_ILL
extern void isic_recover __P((struct isic_softc *));
extern int isicintr __P((void *));
extern int isicprobe __P((struct isic_attach_args *));
extern int isic_attach_avma1 __P((struct isic_softc *));
extern int isic_attach_s016 __P((struct isic_softc *));
extern int isic_attach_s0163 __P((struct isic_softc *));
extern int isic_attach_s08 __P((struct isic_softc *));
extern int isic_attach_usrtai __P((struct isic_softc *));
extern int isic_attach_itkix1 __P((struct isic_softc *));
extern void isic_bchannel_setup __P((void *, int, int, int));
extern void isic_hscx_init __P((struct isic_softc *, int, int));
extern void isic_hscx_irq __P((struct isic_softc *, u_char ista, int, u_char));
extern void isic_hscx_cmd __P(( struct isic_softc *, int, unsigned char));
extern void isic_hscx_waitxfw __P(( struct isic_softc *, int));
extern void isic_init_linktab __P((struct isic_softc *));
extern int isic_isac_init __P((struct isic_softc *));
extern void isic_isac_irq __P((struct isic_softc *, int));
extern void isic_isac_l1_cmd __P((struct isic_softc *, int));
extern void isic_next_state __P((struct isic_softc *, int));
extern char * isic_printstate __P((struct isic_softc *));
extern int isic_probe_avma1 __P((struct isic_attach_args *));
extern int isic_probe_s016 __P((struct isic_attach_args *));
extern int isic_probe_s0163 __P((struct isic_attach_args *));
extern int isic_probe_s08 __P((struct isic_attach_args *ia));
extern int isic_probe_usrtai __P((struct isic_attach_args *ia));
extern int isic_probe_itkix1 __P((struct isic_attach_args *ia));
extern void isic_recover(struct isic_softc *);
extern int isicintr(void *);
extern int isicprobe(struct isic_attach_args *);
extern int isic_attach_avma1(struct isic_softc *);
extern int isic_attach_s016(struct isic_softc *);
extern int isic_attach_s0163(struct isic_softc *);
extern int isic_attach_s08(struct isic_softc *);
extern int isic_attach_usrtai(struct isic_softc *);
extern int isic_attach_itkix1(struct isic_softc *);
extern void isic_bchannel_setup(void *, int, int, int);
extern void isic_hscx_init(struct isic_softc *, int, int);
extern void isic_hscx_irq(struct isic_softc *, u_char ista, int, u_char);
extern void isic_hscx_cmd( struct isic_softc *, int, unsigned char);
extern void isic_hscx_waitxfw( struct isic_softc *, int);
extern void isic_init_linktab(struct isic_softc *);
extern int isic_isac_init(struct isic_softc *);
extern void isic_isac_irq(struct isic_softc *, int);
extern void isic_isac_l1_cmd(struct isic_softc *, int);
extern void isic_next_state(struct isic_softc *, int);
extern char * isic_printstate(struct isic_softc *);
extern int isic_probe_avma1(struct isic_attach_args *);
extern int isic_probe_s016(struct isic_attach_args *);
extern int isic_probe_s0163(struct isic_attach_args *);
extern int isic_probe_s08(struct isic_attach_args *ia);
extern int isic_probe_usrtai(struct isic_attach_args *ia);
extern int isic_probe_itkix1(struct isic_attach_args *ia);
extern int isic_attach_bri(struct isic_softc *sc, const char *cardname, const struct isdn_layer1_isdnif_driver *dchan_driver);
extern int isic_detach_bri(struct isic_softc *sc);
extern void isic_isacsx_disable_intr __P((struct isic_softc *sc));
extern void isic_isacsx_recover __P((struct isic_softc *sc));
extern void isic_isacsx_irq __P((struct isic_softc *sc, int r));
extern void isic_isacsx_l1_cmd __P((struct isic_softc *sc, int command));
extern int isic_isacsx_init __P((struct isic_softc *sc));
extern void isic_isacsx_disable_intr(struct isic_softc *sc);
extern void isic_isacsx_recover(struct isic_softc *sc);
extern void isic_isacsx_irq(struct isic_softc *sc, int r);
extern void isic_isacsx_l1_cmd(struct isic_softc *sc, int command);
extern int isic_isacsx_init(struct isic_softc *sc);
#endif /* !_ISIC_L1_H */

View File

@ -1,4 +1,4 @@
/* $NetBSD: joyvar.h,v 1.3 2004/08/03 18:35:21 drochner Exp $ */
/* $NetBSD: joyvar.h,v 1.4 2005/02/04 02:10:36 perry Exp $ */
/*-
* Copyright (c) 1995 Jean-Marc Zucconi
@ -46,7 +46,7 @@ struct joy_softc {
int timeout[2];
};
void joyattach __P((struct joy_softc *));
int joydetach __P((struct joy_softc *, int));
void joyattach(struct joy_softc *);
int joydetach(struct joy_softc *, int);
#endif /* ! _JOYVAR_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: lance.c,v 1.30 2004/10/30 18:08:37 thorpej Exp $ */
/* $NetBSD: lance.c,v 1.31 2005/02/04 02:10:36 perry Exp $ */
/*-
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@ -72,7 +72,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: lance.c,v 1.30 2004/10/30 18:08:37 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: lance.c,v 1.31 2005/02/04 02:10:36 perry Exp $");
#include "opt_ccitt.h"
#include "opt_llc.h"
@ -125,18 +125,18 @@ __KERNEL_RCSID(0, "$NetBSD: lance.c,v 1.30 2004/10/30 18:08:37 thorpej Exp $");
#define hide static
#endif
integrate struct mbuf *lance_get __P((struct lance_softc *, int, int));
integrate struct mbuf *lance_get(struct lance_softc *, int, int);
hide void lance_shutdown __P((void *));
hide void lance_shutdown(void *);
int lance_mediachange __P((struct ifnet *));
void lance_mediastatus __P((struct ifnet *, struct ifmediareq *));
int lance_mediachange(struct ifnet *);
void lance_mediastatus(struct ifnet *, struct ifmediareq *);
static inline u_int16_t ether_cmp __P((void *, void *));
static inline u_int16_t ether_cmp(void *, void *);
void lance_stop __P((struct ifnet *, int));
int lance_ioctl __P((struct ifnet *, u_long, caddr_t));
void lance_watchdog __P((struct ifnet *));
void lance_stop(struct ifnet *, int);
int lance_ioctl(struct ifnet *, u_long, caddr_t);
void lance_watchdog(struct ifnet *);
/*
* Compare two Ether/802 addresses for equality, inlined and

View File

@ -1,4 +1,4 @@
/* $NetBSD: lancevar.h,v 1.7 2004/02/13 11:36:22 wiz Exp $ */
/* $NetBSD: lancevar.h,v 1.8 2005/02/04 02:10:36 perry Exp $ */
/*-
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@ -56,15 +56,15 @@ struct lance_softc {
* zero bytes in buffer
*/
void (*sc_copytodesc)
__P((struct lance_softc *, void *, int, int));
(struct lance_softc *, void *, int, int);
void (*sc_copyfromdesc)
__P((struct lance_softc *, void *, int, int));
(struct lance_softc *, void *, int, int);
void (*sc_copytobuf)
__P((struct lance_softc *, void *, int, int));
(struct lance_softc *, void *, int, int);
void (*sc_copyfrombuf)
__P((struct lance_softc *, void *, int, int));
(struct lance_softc *, void *, int, int);
void (*sc_zerobuf)
__P((struct lance_softc *, int, int));
(struct lance_softc *, int, int);
/*
* Machine-dependent functions:
@ -76,15 +76,14 @@ struct lance_softc {
* media change hook - may be NULL
*/
u_int16_t (*sc_rdcsr)
__P((struct lance_softc *, u_int16_t));
(struct lance_softc *, u_int16_t);
void (*sc_wrcsr)
__P((struct lance_softc *, u_int16_t, u_int16_t));
void (*sc_hwreset) __P((struct lance_softc *));
void (*sc_hwinit) __P((struct lance_softc *));
void (*sc_nocarrier) __P((struct lance_softc *));
int (*sc_mediachange) __P((struct lance_softc *));
void (*sc_mediastatus) __P((struct lance_softc *,
struct ifmediareq *));
(struct lance_softc *, u_int16_t, u_int16_t);
void (*sc_hwreset)(struct lance_softc *);
void (*sc_hwinit)(struct lance_softc *);
void (*sc_nocarrier)(struct lance_softc *);
int (*sc_mediachange)(struct lance_softc *);
void (*sc_mediastatus)(struct lance_softc *, struct ifmediareq *);
/*
* Media-supported by this interface. If this is NULL,
@ -129,16 +128,16 @@ struct lance_softc {
rndsource_element_t rnd_source;
#endif
void (*sc_meminit) __P((struct lance_softc *));
void (*sc_start) __P((struct ifnet *));
void (*sc_meminit)(struct lance_softc *);
void (*sc_start)(struct ifnet *);
};
void lance_config __P((struct lance_softc *));
void lance_reset __P((struct lance_softc *));
int lance_init __P((struct ifnet *));
int lance_put __P((struct lance_softc *, int, struct mbuf *));
void lance_read __P((struct lance_softc *, int, int));
void lance_setladrf __P((struct ethercom *, u_int16_t *));
void lance_config(struct lance_softc *);
void lance_reset(struct lance_softc *);
int lance_init(struct ifnet *);
int lance_put(struct lance_softc *, int, struct mbuf *);
void lance_read(struct lance_softc *, int, int);
void lance_setladrf(struct ethercom *, u_int16_t *);
/*
* The following functions are only useful on certain CPU/bus
@ -146,16 +145,16 @@ void lance_setladrf __P((struct ethercom *, u_int16_t *));
* maximum efficiency, but machine-independent versions are provided
* for drivers that have not yet been optimized.
*/
void lance_copytobuf_contig __P((struct lance_softc *, void *, int, int));
void lance_copyfrombuf_contig __P((struct lance_softc *, void *, int, int));
void lance_zerobuf_contig __P((struct lance_softc *, int, int));
void lance_copytobuf_contig(struct lance_softc *, void *, int, int);
void lance_copyfrombuf_contig(struct lance_softc *, void *, int, int);
void lance_zerobuf_contig(struct lance_softc *, int, int);
#if 0 /* Example only - see lance.c */
void lance_copytobuf_gap2 __P((struct lance_softc *, void *, int, int));
void lance_copyfrombuf_gap2 __P((struct lance_softc *, void *, int, int));
void lance_zerobuf_gap2 __P((struct lance_softc *, int, int));
void lance_copytobuf_gap2(struct lance_softc *, void *, int, int);
void lance_copyfrombuf_gap2(struct lance_softc *, void *, int, int);
void lance_zerobuf_gap2(struct lance_softc *, int, int);
void lance_copytobuf_gap16 __P((struct lance_softc *, void *, int, int));
void lance_copyfrombuf_gap16 __P((struct lance_softc *, void *, int, int));
void lance_zerobuf_gap16 __P((struct lance_softc *, int, int));
void lance_copytobuf_gap16(struct lance_softc *, void *, int, int);
void lance_copyfrombuf_gap16(struct lance_softc *, void *, int, int);
void lance_zerobuf_gap16(struct lance_softc *, int, int);
#endif /* Example only */

View File

@ -1,4 +1,4 @@
/* $NetBSD: lptvar.h,v 1.50 2000/03/23 07:01:31 thorpej Exp $ */
/* $NetBSD: lptvar.h,v 1.51 2005/02/04 02:10:36 perry Exp $ */
/*
* Copyright (c) 1993, 1994 Charles M. Hannum.
@ -86,11 +86,11 @@ struct lpt_softc {
#define NOT_READY() ((bus_space_read_1(iot, ioh, lpt_status) ^ LPS_INVERT) & LPS_MASK)
#define NOT_READY_ERR() lptnotready(bus_space_read_1(iot, ioh, lpt_status), sc)
int lptnotready __P((u_char, struct lpt_softc *));
void lptwakeup __P((void *arg));
int lptpushbytes __P((struct lpt_softc *));
int lptnotready(u_char, struct lpt_softc *);
void lptwakeup(void *arg);
int lptpushbytes(struct lpt_softc *);
void lpt_attach_subr __P((struct lpt_softc *));
int lptintr __P((void *));
void lpt_attach_subr(struct lpt_softc *);
int lptintr(void *);
#endif /* _LPT_VAR_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: lsi64854.c,v 1.23 2003/05/03 18:11:21 wiz Exp $ */
/* $NetBSD: lsi64854.c,v 1.24 2005/02/04 02:10:36 perry Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: lsi64854.c,v 1.23 2003/05/03 18:11:21 wiz Exp $");
__KERNEL_RCSID(0, "$NetBSD: lsi64854.c,v 1.24 2005/02/04 02:10:36 perry Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -62,11 +62,11 @@ __KERNEL_RCSID(0, "$NetBSD: lsi64854.c,v 1.23 2003/05/03 18:11:21 wiz Exp $");
#include <dev/ic/ncr53c9xreg.h>
#include <dev/ic/ncr53c9xvar.h>
void lsi64854_reset __P((struct lsi64854_softc *));
int lsi64854_setup __P((struct lsi64854_softc *, caddr_t *, size_t *,
int, size_t *));
int lsi64854_setup_pp __P((struct lsi64854_softc *, caddr_t *, size_t *,
int, size_t *));
void lsi64854_reset(struct lsi64854_softc *);
int lsi64854_setup(struct lsi64854_softc *, caddr_t *, size_t *,
int, size_t *);
int lsi64854_setup_pp(struct lsi64854_softc *, caddr_t *, size_t *,
int, size_t *);
#ifdef DEBUG
#define LDB_SCSI 1

View File

@ -1,4 +1,4 @@
/* $NetBSD: lsi64854var.h,v 1.5 2003/05/03 18:11:21 wiz Exp $ */
/* $NetBSD: lsi64854var.h,v 1.6 2005/02/04 02:10:36 perry Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -58,12 +58,12 @@ struct lsi64854_softc {
caddr_t *sc_dmaaddr;
size_t *sc_dmalen;
void (*reset) __P((struct lsi64854_softc *));/* reset routine */
int (*setup) __P((struct lsi64854_softc *, caddr_t *, size_t *,
int, size_t *)); /* DMA setup */
int (*intr) __P((void *)); /* interrupt handler */
void (*reset)(struct lsi64854_softc *);/* reset routine */
int (*setup)(struct lsi64854_softc *, caddr_t *, size_t *,
int, size_t *); /* DMA setup */
int (*intr)(void *); /* interrupt handler */
int (*sc_intrchain) __P((void *)); /* next handler in intr chain */
int (*sc_intrchain)(void *); /* next handler in intr chain */
void *sc_intrchainarg; /* arg for next intr handler */
u_int sc_dmactl;
@ -101,7 +101,7 @@ struct lsi64854_softc {
} while (0)
void lsi64854_attach __P((struct lsi64854_softc *));
int lsi64854_scsi_intr __P((void *));
int lsi64854_enet_intr __P((void *));
int lsi64854_pp_intr __P((void *));
void lsi64854_attach(struct lsi64854_softc *);
int lsi64854_scsi_intr(void *);
int lsi64854_enet_intr(void *);
int lsi64854_pp_intr(void *);

View File

@ -1,4 +1,4 @@
/* $NetBSD: mc146818reg.h,v 1.5 2003/11/02 11:07:45 wiz Exp $ */
/* $NetBSD: mc146818reg.h,v 1.6 2005/02/04 02:10:36 perry Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
@ -152,8 +152,8 @@
* RTC register/NVRAM read and write functions -- machine-dependent.
* Appropriately manipulate RTC registers to get/put data values.
*/
u_int mc146818_read __P((void *, u_int));
void mc146818_write __P((void *, u_int, u_int));
u_int mc146818_read(void *, u_int);
void mc146818_write(void *, u_int, u_int);
/*
* A collection of TOD/Alarm registers.

View File

@ -1,4 +1,4 @@
/* $NetBSD: midway.c,v 1.64 2004/04/22 00:17:11 itojun Exp $ */
/* $NetBSD: midway.c,v 1.65 2005/02/04 02:10:36 perry Exp $ */
/* (sync'd to midway.c 1.68) */
/*
@ -68,7 +68,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: midway.c,v 1.64 2004/04/22 00:17:11 itojun Exp $");
__KERNEL_RCSID(0, "$NetBSD: midway.c,v 1.65 2005/02/04 02:10:36 perry Exp $");
#include "opt_natm.h"
@ -334,46 +334,44 @@ static struct en_dmatab *en_dmaplan = en_dma_planA;
* prototypes
*/
STATIC INLINE int en_b2sz __P((int)) __attribute__ ((unused));
STATIC INLINE int en_b2sz(int) __attribute__ ((unused));
#ifdef EN_DDBHOOK
int en_dump __P((int,int));
int en_dumpmem __P((int,int,int));
int en_dump(int,int);
int en_dumpmem(int,int,int);
#endif
STATIC void en_dmaprobe __P((struct en_softc *));
STATIC int en_dmaprobe_doit __P((struct en_softc *, u_int8_t *,
u_int8_t *, int));
STATIC INLINE int en_dqneed __P((struct en_softc *, caddr_t, u_int,
u_int)) __attribute__ ((unused));
STATIC void en_init __P((struct en_softc *));
STATIC int en_ioctl __P((struct ifnet *, EN_IOCTL_CMDT, caddr_t));
STATIC INLINE int en_k2sz __P((int)) __attribute__ ((unused));
STATIC void en_loadvc __P((struct en_softc *, int));
STATIC int en_mfix __P((struct en_softc *, struct mbuf **,
struct mbuf *));
STATIC INLINE struct mbuf *en_mget __P((struct en_softc *, u_int,
u_int *)) __attribute__ ((unused));
STATIC INLINE u_int32_t en_read __P((struct en_softc *,
u_int32_t)) __attribute__ ((unused));
STATIC int en_rxctl __P((struct en_softc *, struct atm_pseudoioctl *,
int));
STATIC void en_txdma __P((struct en_softc *, int));
STATIC void en_txlaunch __P((struct en_softc *, int,
struct en_launch *));
STATIC void en_service __P((struct en_softc *));
STATIC void en_start __P((struct ifnet *));
STATIC INLINE int en_sz2b __P((int)) __attribute__ ((unused));
STATIC INLINE void en_write __P((struct en_softc *, u_int32_t,
u_int32_t)) __attribute__ ((unused));
STATIC void en_dmaprobe(struct en_softc *);
STATIC int en_dmaprobe_doit(struct en_softc *, u_int8_t *,
u_int8_t *, int);
STATIC INLINE int en_dqneed(struct en_softc *, caddr_t, u_int,
u_int) __attribute__ ((unused));
STATIC void en_init(struct en_softc *);
STATIC int en_ioctl(struct ifnet *, EN_IOCTL_CMDT, caddr_t);
STATIC INLINE int en_k2sz(int) __attribute__ ((unused));
STATIC void en_loadvc(struct en_softc *, int);
STATIC int en_mfix(struct en_softc *, struct mbuf **,
struct mbuf *);
STATIC INLINE struct mbuf *en_mget(struct en_softc *, u_int,
u_int *) __attribute__ ((unused));
STATIC INLINE u_int32_t en_read(struct en_softc *,
u_int32_t) __attribute__ ((unused));
STATIC int en_rxctl(struct en_softc *, struct atm_pseudoioctl *, int);
STATIC void en_txdma(struct en_softc *, int);
STATIC void en_txlaunch(struct en_softc *, int, struct en_launch *);
STATIC void en_service(struct en_softc *);
STATIC void en_start(struct ifnet *);
STATIC INLINE int en_sz2b(int) __attribute__ ((unused));
STATIC INLINE void en_write(struct en_softc *, u_int32_t,
u_int32_t) __attribute__ ((unused));
#ifdef ATM_PVCEXT
static void rrp_add __P((struct en_softc *, struct ifnet *));
static struct ifnet *en_pvcattach __P((struct ifnet *));
static int en_txctl __P((struct en_softc *, int, int, int));
static int en_pvctx __P((struct en_softc *, struct pvctxreq *));
static int en_pvctxget __P((struct en_softc *, struct pvctxreq *));
static int en_pcr2txspeed __P((int));
static int en_txspeed2pcr __P((int));
static struct ifnet *en_vci2ifp __P((struct en_softc *, int));
static void rrp_add(struct en_softc *, struct ifnet *);
static struct ifnet *en_pvcattach(struct ifnet *);
static int en_txctl(struct en_softc *, int, int, int);
static int en_pvctx(struct en_softc *, struct pvctxreq *);
static int en_pvctxget(struct en_softc *, struct pvctxreq *);
static int en_pcr2txspeed(int);
static int en_txspeed2pcr(int);
static struct ifnet *en_vci2ifp(struct en_softc *, int);
#endif
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: midwayvar.h,v 1.13 2003/11/02 11:07:45 wiz Exp $ */
/* $NetBSD: midwayvar.h,v 1.14 2005/02/04 02:10:36 perry Exp $ */
/*
*
@ -114,7 +114,7 @@ struct en_softc {
bus_space_tag_t en_memt; /* for EN_READ/EN_WRITE */
bus_space_handle_t en_base; /* base of en card */
bus_size_t en_obmemsz; /* size of en card (bytes) */
void (*en_busreset) __P((void *));
void (*en_busreset)(void *);
/* bus specific reset function */
/* serv list */
@ -220,6 +220,6 @@ struct en_softc {
* exported functions
*/
void en_attach __P((struct en_softc *));
EN_INTR_TYPE en_intr __P((void *));
void en_reset __P((struct en_softc *));
void en_attach(struct en_softc *);
EN_INTR_TYPE en_intr(void *);
void en_reset(struct en_softc *);

View File

@ -1,4 +1,4 @@
/* $NetBSD: mm58167.c,v 1.3 2001/11/13 13:14:41 lukem Exp $ */
/* $NetBSD: mm58167.c,v 1.4 2005/02/04 02:10:36 perry Exp $ */
/*
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: mm58167.c,v 1.3 2001/11/13 13:14:41 lukem Exp $");
__KERNEL_RCSID(0, "$NetBSD: mm58167.c,v 1.4 2005/02/04 02:10:36 perry Exp $");
#include <sys/param.h>
#include <sys/malloc.h>
@ -53,10 +53,10 @@ __KERNEL_RCSID(0, "$NetBSD: mm58167.c,v 1.3 2001/11/13 13:14:41 lukem Exp $");
#include <dev/clock_subr.h>
#include <dev/ic/mm58167var.h>
int mm58167_gettime __P((todr_chip_handle_t, struct timeval *));
int mm58167_settime __P((todr_chip_handle_t, struct timeval *));
int mm58167_getcal __P((todr_chip_handle_t, int *));
int mm58167_setcal __P((todr_chip_handle_t, int));
int mm58167_gettime(todr_chip_handle_t, struct timeval *);
int mm58167_settime(todr_chip_handle_t, struct timeval *);
int mm58167_getcal(todr_chip_handle_t, int *);
int mm58167_setcal(todr_chip_handle_t, int);
/*
* To quote SunOS's todreg.h:

View File

@ -1,4 +1,4 @@
/* $NetBSD: mm58167var.h,v 1.1 2001/04/10 12:50:18 fredette Exp $ */
/* $NetBSD: mm58167var.h,v 1.2 2005/02/04 02:10:36 perry Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -87,6 +87,6 @@ struct mm58167_softc {
struct todr_chip_handle _mm58167_todr_handle;
};
todr_chip_handle_t mm58167_attach __P((struct mm58167_softc *));
todr_chip_handle_t mm58167_attach(struct mm58167_softc *);
#endif /* _MM58167VAR_H */

View File

@ -1,4 +1,4 @@
/* $NetBSD: mpu.c,v 1.8 2004/12/02 09:50:41 xtraeme Exp $ */
/* $NetBSD: mpu.c,v 1.9 2005/02/04 02:10:36 perry Exp $ */
/*
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: mpu.c,v 1.8 2004/12/02 09:50:41 xtraeme Exp $");
__KERNEL_RCSID(0, "$NetBSD: mpu.c,v 1.9 2005/02/04 02:10:36 perry Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -82,12 +82,12 @@ int mpu_reset(struct mpu_softc *);
static __inline int mpu_waitready(struct mpu_softc *);
void mpu_readinput(struct mpu_softc *);
int mpu_open __P((void *, int,
void (*iintr)__P((void *, int)),
void (*ointr)__P((void *)), void *arg));
void mpu_close __P((void *));
int mpu_output __P((void *, int));
void mpu_getinfo __P((void *, struct midi_info *));
int mpu_open(void *, int,
void (*iintr)(void *, int),
void (*ointr)(void *), void *arg);
void mpu_close(void *);
int mpu_output(void *, int);
void mpu_getinfo(void *, struct midi_info *);
const struct midi_hw_if mpu_midi_hw_if = {
mpu_open,
@ -165,8 +165,8 @@ int
mpu_open(addr, flags, iintr, ointr, arg)
void *addr;
int flags;
void (*iintr)__P((void *, int));
void (*ointr)__P((void *));
void (*iintr)(void *, int);
void (*ointr)(void *);
void *arg;
{
struct mpu_softc *sc = addr;

View File

@ -1,4 +1,4 @@
/* $NetBSD: mpuvar.h,v 1.5 2004/10/29 12:57:17 yamt Exp $ */
/* $NetBSD: mpuvar.h,v 1.6 2005/02/04 02:10:36 perry Exp $ */
/*
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -42,11 +42,11 @@ struct mpu_softc {
bus_space_handle_t ioh; /* handle */
char *model;
int open;
void (*intr)__P((void *, int)); /* midi input intr handler */
void (*intr)(void *, int); /* midi input intr handler */
void *arg; /* arg for intr() */
#ifndef AUDIO_NO_POWER_CTL
int (*powerctl)__P((void *, int));
int (*powerctl)(void *, int);
void *powerarg;
#endif
};
@ -54,9 +54,9 @@ struct mpu_softc {
#ifdef _KERNEL
extern const struct midi_hw_if mpu_midi_hw_if;
int mpu_find __P((struct mpu_softc *));
void mpu_attach __P((struct mpu_softc *));
int mpu_intr __P((void *));
int mpu_find(struct mpu_softc *);
void mpu_attach(struct mpu_softc *);
int mpu_intr(void *);
#endif
#define MPU401_NPORT 2

View File

@ -1,4 +1,4 @@
/* $NetBSD: mtd803.c,v 1.6 2004/10/30 18:08:37 thorpej Exp $ */
/* $NetBSD: mtd803.c,v 1.7 2005/02/04 02:10:36 perry Exp $ */
/*-
*
@ -51,7 +51,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: mtd803.c,v 1.6 2004/10/30 18:08:37 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: mtd803.c,v 1.7 2005/02/04 02:10:36 perry Exp $");
#include "bpfilter.h"
@ -116,28 +116,28 @@ __KERNEL_RCSID(0, "$NetBSD: mtd803.c,v 1.6 2004/10/30 18:08:37 thorpej Exp $");
#define ETHER_CRC32(buf, len) (ether_crc32_be((buf), (len)))
int mtd_mii_readreg __P((struct device *, int, int));
void mtd_mii_writereg __P((struct device *, int, int, int));
void mtd_mii_statchg __P((struct device *));
int mtd_mii_readreg(struct device *, int, int);
void mtd_mii_writereg(struct device *, int, int, int);
void mtd_mii_statchg(struct device *);
void mtd_start __P((struct ifnet *));
void mtd_stop __P((struct ifnet *, int));
int mtd_ioctl __P((struct ifnet *, u_long, caddr_t));
void mtd_setmulti __P((struct mtd_softc *));
void mtd_watchdog __P((struct ifnet *));
int mtd_mediachange __P((struct ifnet *));
void mtd_mediastatus __P((struct ifnet *, struct ifmediareq *));
void mtd_start(struct ifnet *);
void mtd_stop(struct ifnet *, int);
int mtd_ioctl(struct ifnet *, u_long, caddr_t);
void mtd_setmulti(struct mtd_softc *);
void mtd_watchdog(struct ifnet *);
int mtd_mediachange(struct ifnet *);
void mtd_mediastatus(struct ifnet *, struct ifmediareq *);
int mtd_init __P((struct ifnet *));
void mtd_reset __P((struct mtd_softc *));
void mtd_shutdown __P((void *));
int mtd_init_desc __P((struct mtd_softc *));
int mtd_put __P((struct mtd_softc *, int, struct mbuf *));
struct mbuf *mtd_get __P((struct mtd_softc *, int, int));
int mtd_init(struct ifnet *);
void mtd_reset(struct mtd_softc *);
void mtd_shutdown(void *);
int mtd_init_desc(struct mtd_softc *);
int mtd_put(struct mtd_softc *, int, struct mbuf *);
struct mbuf *mtd_get(struct mtd_softc *, int, int);
int mtd_rxirq __P((struct mtd_softc *));
int mtd_txirq __P((struct mtd_softc *));
int mtd_bufirq __P((struct mtd_softc *));
int mtd_rxirq(struct mtd_softc *);
int mtd_txirq(struct mtd_softc *);
int mtd_bufirq(struct mtd_softc *);
int

View File

@ -1,4 +1,4 @@
/* $NetBSD: mtd803var.h,v 1.2 2003/09/23 19:37:39 martin Exp $ */
/* $NetBSD: mtd803var.h,v 1.3 2005/02/04 02:10:36 perry Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@ -137,5 +137,5 @@ struct mtd_softc {
#define MTD_RXD_FLEN_SHIFT 16
extern int mtd_config __P((struct mtd_softc *));
extern int mtd_irq_h __P((void *));
extern int mtd_config(struct mtd_softc *);
extern int mtd_irq_h(void *);

View File

@ -1,4 +1,4 @@
/* $NetBSD: ncr5380sbc.c,v 1.53 2004/09/12 18:05:46 he Exp $ */
/* $NetBSD: ncr5380sbc.c,v 1.54 2005/02/04 02:10:36 perry Exp $ */
/*
* Copyright (c) 1995 David Jones, Gordon W. Ross
@ -71,7 +71,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ncr5380sbc.c,v 1.53 2004/09/12 18:05:46 he Exp $");
__KERNEL_RCSID(0, "$NetBSD: ncr5380sbc.c,v 1.54 2005/02/04 02:10:36 perry Exp $");
#include "opt_ddb.h"
@ -98,23 +98,23 @@ __KERNEL_RCSID(0, "$NetBSD: ncr5380sbc.c,v 1.53 2004/09/12 18:05:46 he Exp $");
#include <dev/ic/ncr5380var.h>
#include <dev/ic/ncr53c400reg.h>
static void ncr5380_reset_scsibus __P((struct ncr5380_softc *));
static void ncr5380_sched __P((struct ncr5380_softc *));
static void ncr5380_done __P((struct ncr5380_softc *));
static void ncr5380_reset_scsibus(struct ncr5380_softc *);
static void ncr5380_sched(struct ncr5380_softc *);
static void ncr5380_done(struct ncr5380_softc *);
static int ncr5380_select
__P((struct ncr5380_softc *, struct sci_req *));
static void ncr5380_reselect __P((struct ncr5380_softc *));
(struct ncr5380_softc *, struct sci_req *);
static void ncr5380_reselect(struct ncr5380_softc *);
static int ncr5380_msg_in __P((struct ncr5380_softc *));
static int ncr5380_msg_out __P((struct ncr5380_softc *));
static int ncr5380_data_xfer __P((struct ncr5380_softc *, int));
static int ncr5380_command __P((struct ncr5380_softc *));
static int ncr5380_status __P((struct ncr5380_softc *));
static void ncr5380_machine __P((struct ncr5380_softc *));
static int ncr5380_msg_in(struct ncr5380_softc *);
static int ncr5380_msg_out(struct ncr5380_softc *);
static int ncr5380_data_xfer(struct ncr5380_softc *, int);
static int ncr5380_command(struct ncr5380_softc *);
static int ncr5380_status(struct ncr5380_softc *);
static void ncr5380_machine(struct ncr5380_softc *);
void ncr5380_abort __P((struct ncr5380_softc *));
void ncr5380_cmd_timeout __P((void *));
void ncr5380_abort(struct ncr5380_softc *);
void ncr5380_cmd_timeout(void *);
/*
* Action flags returned by the info_transfer functions:
* (These determine what happens next.)
@ -143,12 +143,12 @@ void ncr5380_cmd_timeout __P((void *));
int ncr5380_debug = 0;
#define NCR_BREAK() \
do { if (ncr5380_debug & NCR_DBG_BREAK) Debugger(); } while (0)
static void ncr5380_show_scsi_cmd __P((struct scsipi_xfer *));
static void ncr5380_show_scsi_cmd(struct scsipi_xfer *);
#ifdef DDB
void ncr5380_clear_trace __P((void));
void ncr5380_show_trace __P((void));
void ncr5380_show_req __P((struct sci_req *));
void ncr5380_show_state __P((void));
void ncr5380_clear_trace(void);
void ncr5380_show_trace(void);
void ncr5380_show_req(struct sci_req *);
void ncr5380_show_state(void);
#endif /* DDB */
#else /* NCR5380_DEBUG */
@ -184,9 +184,9 @@ int ncr5380_wait_phase_timo = 1000 * 10 * 300; /* 5 min. */
int ncr5380_wait_req_timo = 1000 * 50; /* X2 = 100 mS. */
int ncr5380_wait_nrq_timo = 1000 * 25; /* X2 = 50 mS. */
static __inline int ncr5380_wait_req __P((struct ncr5380_softc *));
static __inline int ncr5380_wait_not_req __P((struct ncr5380_softc *));
static __inline void ncr_sched_msgout __P((struct ncr5380_softc *, int));
static __inline int ncr5380_wait_req(struct ncr5380_softc *);
static __inline int ncr5380_wait_not_req(struct ncr5380_softc *);
static __inline void ncr_sched_msgout(struct ncr5380_softc *, int);
/* Return zero on success. */
static __inline int ncr5380_wait_req(sc)

View File

@ -1,4 +1,4 @@
/* $NetBSD: ncr5380var.h,v 1.27 2004/08/13 12:59:20 tsutsui Exp $ */
/* $NetBSD: ncr5380var.h,v 1.28 2005/02/04 02:10:36 perry Exp $ */
/*
* Copyright (c) 1995 David Jones, Gordon W. Ross
@ -143,21 +143,21 @@ struct ncr5380_softc {
#endif
/* Functions set from MD code */
int (*sc_pio_out) __P((struct ncr5380_softc *,
int, int, u_char *));
int (*sc_pio_in) __P((struct ncr5380_softc *,
int, int, u_char *));
void (*sc_dma_alloc) __P((struct ncr5380_softc *));
void (*sc_dma_free) __P((struct ncr5380_softc *));
int (*sc_pio_out)(struct ncr5380_softc *,
int, int, u_char *);
int (*sc_pio_in)(struct ncr5380_softc *,
int, int, u_char *);
void (*sc_dma_alloc)(struct ncr5380_softc *);
void (*sc_dma_free)(struct ncr5380_softc *);
void (*sc_dma_setup) __P((struct ncr5380_softc *));
void (*sc_dma_start) __P((struct ncr5380_softc *));
void (*sc_dma_poll) __P((struct ncr5380_softc *));
void (*sc_dma_eop) __P((struct ncr5380_softc *));
void (*sc_dma_stop) __P((struct ncr5380_softc *));
void (*sc_dma_setup)(struct ncr5380_softc *);
void (*sc_dma_start)(struct ncr5380_softc *);
void (*sc_dma_poll)(struct ncr5380_softc *);
void (*sc_dma_eop)(struct ncr5380_softc *);
void (*sc_dma_stop)(struct ncr5380_softc *);
void (*sc_intr_on) __P((struct ncr5380_softc *));
void (*sc_intr_off) __P((struct ncr5380_softc *));
void (*sc_intr_on)(struct ncr5380_softc *);
void (*sc_intr_off)(struct ncr5380_softc *);
int sc_flags; /* Misc. flags and capabilities */
#define NCR5380_FORCE_POLLING 1 /* Do not use interrupts. */
@ -226,18 +226,18 @@ struct ncr5380_softc {
};
void ncr5380_attach __P((struct ncr5380_softc *));
int ncr5380_detach __P((struct ncr5380_softc *, int));
int ncr5380_intr __P((void *));
void ncr5380_scsipi_request __P((struct scsipi_channel *,
scsipi_adapter_req_t, void *));
int ncr5380_pio_in __P((struct ncr5380_softc *, int, int, u_char *));
int ncr5380_pio_out __P((struct ncr5380_softc *, int, int, u_char *));
void ncr5380_init __P((struct ncr5380_softc *));
void ncr5380_attach(struct ncr5380_softc *);
int ncr5380_detach(struct ncr5380_softc *, int);
int ncr5380_intr(void *);
void ncr5380_scsipi_request(struct scsipi_channel *,
scsipi_adapter_req_t, void *);
int ncr5380_pio_in(struct ncr5380_softc *, int, int, u_char *);
int ncr5380_pio_out(struct ncr5380_softc *, int, int, u_char *);
void ncr5380_init(struct ncr5380_softc *);
#ifdef NCR5380_DEBUG
struct ncr5380_softc *ncr5380_debug_sc;
void ncr5380_trace __P((char *msg, long val));
void ncr5380_trace(char *msg, long val);
#define NCR_TRACE(msg, val) ncr5380_trace(msg, val)
#else /* NCR5380_DEBUG */
#define NCR_TRACE(msg, val) /* nada */

View File

@ -1,4 +1,4 @@
/* $NetBSD: ncr53c9xvar.h,v 1.45 2004/12/07 22:23:45 thorpej Exp $ */
/* $NetBSD: ncr53c9xvar.h,v 1.46 2005/02/04 02:10:36 perry Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@ -443,12 +443,12 @@ struct ncr53c9x_softc {
#define ncr53c9x_cpb2stp(sc, cpb) \
((250 * (cpb)) / (sc)->sc_freq)
void ncr53c9x_attach __P((struct ncr53c9x_softc *));
int ncr53c9x_detach __P((struct ncr53c9x_softc *, int));
void ncr53c9x_scsipi_request __P((struct scsipi_channel *chan,
scsipi_adapter_req_t req, void *));
void ncr53c9x_reset __P((struct ncr53c9x_softc *));
int ncr53c9x_intr __P((void *));
void ncr53c9x_init __P((struct ncr53c9x_softc *, int));
void ncr53c9x_attach(struct ncr53c9x_softc *);
int ncr53c9x_detach(struct ncr53c9x_softc *, int);
void ncr53c9x_scsipi_request(struct scsipi_channel *chan,
scsipi_adapter_req_t req, void *);
void ncr53c9x_reset(struct ncr53c9x_softc *);
int ncr53c9x_intr(void *);
void ncr53c9x_init(struct ncr53c9x_softc *, int);
#endif /* _DEV_IC_NCR53C9XVAR_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: ne2000.c,v 1.44 2004/08/09 00:26:15 mycroft Exp $ */
/* $NetBSD: ne2000.c,v 1.45 2005/02/04 02:10:36 perry Exp $ */
/*-
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@ -55,7 +55,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ne2000.c,v 1.44 2004/08/09 00:26:15 mycroft Exp $");
__KERNEL_RCSID(0, "$NetBSD: ne2000.c,v 1.45 2005/02/04 02:10:36 perry Exp $");
#include "opt_ipkdb.h"
@ -98,16 +98,16 @@ __KERNEL_RCSID(0, "$NetBSD: ne2000.c,v 1.44 2004/08/09 00:26:15 mycroft Exp $");
#include <machine/bswap.h>
#endif
int ne2000_write_mbuf __P((struct dp8390_softc *, struct mbuf *, int));
int ne2000_ring_copy __P((struct dp8390_softc *, int, caddr_t, u_short));
void ne2000_read_hdr __P((struct dp8390_softc *, int, struct dp8390_ring *));
int ne2000_test_mem __P((struct dp8390_softc *));
int ne2000_write_mbuf(struct dp8390_softc *, struct mbuf *, int);
int ne2000_ring_copy(struct dp8390_softc *, int, caddr_t, u_short);
void ne2000_read_hdr(struct dp8390_softc *, int, struct dp8390_ring *);
int ne2000_test_mem(struct dp8390_softc *);
void ne2000_writemem __P((bus_space_tag_t, bus_space_handle_t,
void ne2000_writemem(bus_space_tag_t, bus_space_handle_t,
bus_space_tag_t, bus_space_handle_t, u_int8_t *, int, size_t,
int, int));
void ne2000_readmem __P((bus_space_tag_t, bus_space_handle_t,
bus_space_tag_t, bus_space_handle_t, int, u_int8_t *, size_t, int));
int, int);
void ne2000_readmem(bus_space_tag_t, bus_space_handle_t,
bus_space_tag_t, bus_space_handle_t, int, u_int8_t *, size_t, int);
#define ASIC_BARRIER(asict, asich) \
bus_space_barrier((asict), (asich), 0, 0x10, \

View File

@ -1,4 +1,4 @@
/* $NetBSD: ne2000var.h,v 1.15 2004/03/17 23:47:16 mycroft Exp $ */
/* $NetBSD: ne2000var.h,v 1.16 2005/02/04 02:10:36 perry Exp $ */
/*-
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@ -58,13 +58,13 @@ struct ne2000_softc {
int sc_useword;
};
int ne2000_attach __P((struct ne2000_softc *, u_int8_t *));
int ne2000_detect __P((bus_space_tag_t, bus_space_handle_t,
bus_space_tag_t, bus_space_handle_t));
int ne2000_detach __P((struct ne2000_softc *, int));
int ne2000_attach(struct ne2000_softc *, u_int8_t *);
int ne2000_detect(bus_space_tag_t, bus_space_handle_t,
bus_space_tag_t, bus_space_handle_t);
int ne2000_detach(struct ne2000_softc *, int);
#ifdef IPKDB_NE
int ne2000_ipkdb_attach __P((struct ipkdb_if *));
int ne2000_ipkdb_attach(struct ipkdb_if *);
#endif
#endif /* _DEV_IC_NE2000VAR_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: nslm7x.c,v 1.19 2004/07/24 18:59:16 christos Exp $ */
/* $NetBSD: nslm7x.c,v 1.20 2005/02/04 02:10:36 perry Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: nslm7x.c,v 1.19 2004/07/24 18:59:16 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: nslm7x.c,v 1.20 2005/02/04 02:10:36 perry Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -82,50 +82,50 @@ const struct envsys_range lm_ranges[] = { /* sc->sensors sub-intervals */
};
static void setup_fan __P((struct lm_softc *, int, int));
static void setup_temp __P((struct lm_softc *, int, int));
static void wb_setup_volt __P((struct lm_softc *));
static void setup_fan(struct lm_softc *, int, int);
static void setup_temp(struct lm_softc *, int, int);
static void wb_setup_volt(struct lm_softc *);
int lm_match __P((struct lm_softc *));
int wb_match __P((struct lm_softc *));
int itec_match __P((struct lm_softc *));
int def_match __P((struct lm_softc *));
void lm_common_match __P((struct lm_softc *));
static int lm_generic_banksel __P((struct lm_softc *, int));
int lm_match(struct lm_softc *);
int wb_match(struct lm_softc *);
int itec_match(struct lm_softc *);
int def_match(struct lm_softc *);
void lm_common_match(struct lm_softc *);
static int lm_generic_banksel(struct lm_softc *, int);
static void generic_stemp __P((struct lm_softc *, struct envsys_tre_data *));
static void generic_svolt __P((struct lm_softc *, struct envsys_tre_data *,
struct envsys_basic_info *));
static void generic_fanrpm __P((struct lm_softc *, struct envsys_tre_data *));
static void generic_stemp(struct lm_softc *, struct envsys_tre_data *);
static void generic_svolt(struct lm_softc *, struct envsys_tre_data *,
struct envsys_basic_info *);
static void generic_fanrpm(struct lm_softc *, struct envsys_tre_data *);
void lm_refresh_sensor_data __P((struct lm_softc *));
void lm_refresh_sensor_data(struct lm_softc *);
static void wb_svolt __P((struct lm_softc *));
static void wb_stemp __P((struct lm_softc *, struct envsys_tre_data *, int));
static void wb781_fanrpm __P((struct lm_softc *, struct envsys_tre_data *));
static void wb_fanrpm __P((struct lm_softc *, struct envsys_tre_data *));
static void wb_svolt(struct lm_softc *);
static void wb_stemp(struct lm_softc *, struct envsys_tre_data *, int);
static void wb781_fanrpm(struct lm_softc *, struct envsys_tre_data *);
static void wb_fanrpm(struct lm_softc *, struct envsys_tre_data *);
void wb781_refresh_sensor_data __P((struct lm_softc *));
void wb782_refresh_sensor_data __P((struct lm_softc *));
void wb697_refresh_sensor_data __P((struct lm_softc *));
void wb781_refresh_sensor_data(struct lm_softc *);
void wb782_refresh_sensor_data(struct lm_softc *);
void wb697_refresh_sensor_data(struct lm_softc *);
static void itec_svolt __P((struct lm_softc *, struct envsys_tre_data *,
struct envsys_basic_info *));
static void itec_stemp __P((struct lm_softc *, struct envsys_tre_data *));
static void itec_fanrpm __P((struct lm_softc *, struct envsys_tre_data *));
void itec_refresh_sensor_data __P((struct lm_softc *));
static void itec_svolt(struct lm_softc *, struct envsys_tre_data *,
struct envsys_basic_info *);
static void itec_stemp(struct lm_softc *, struct envsys_tre_data *);
static void itec_fanrpm(struct lm_softc *, struct envsys_tre_data *);
void itec_refresh_sensor_data(struct lm_softc *);
int lm_gtredata __P((struct sysmon_envsys *, struct envsys_tre_data *));
int lm_gtredata(struct sysmon_envsys *, struct envsys_tre_data *);
int generic_streinfo_fan __P((struct lm_softc *, struct envsys_basic_info *,
int, struct envsys_basic_info *));
int lm_streinfo __P((struct sysmon_envsys *, struct envsys_basic_info *));
int wb781_streinfo __P((struct sysmon_envsys *, struct envsys_basic_info *));
int wb782_streinfo __P((struct sysmon_envsys *, struct envsys_basic_info *));
int itec_streinfo __P((struct sysmon_envsys *, struct envsys_basic_info *));
int generic_streinfo_fan(struct lm_softc *, struct envsys_basic_info *,
int, struct envsys_basic_info *);
int lm_streinfo(struct sysmon_envsys *, struct envsys_basic_info *);
int wb781_streinfo(struct sysmon_envsys *, struct envsys_basic_info *);
int wb782_streinfo(struct sysmon_envsys *, struct envsys_basic_info *);
int itec_streinfo(struct sysmon_envsys *, struct envsys_basic_info *);
struct lm_chip {
int (*chip_match) __P((struct lm_softc *));
int (*chip_match)(struct lm_softc *);
};
struct lm_chip lm_chips[] = {

View File

@ -1,4 +1,4 @@
/* $NetBSD: nslm7xvar.h,v 1.12 2004/07/24 18:59:16 christos Exp $ */
/* $NetBSD: nslm7xvar.h,v 1.13 2005/02/04 02:10:37 perry Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@ -162,7 +162,7 @@ struct lm_softc {
struct envsys_tre_data sensors[WB_NUM_SENSORS];
struct envsys_basic_info info[WB_NUM_SENSORS];
u_int numsensors;
void (*refresh_sensor_data) __P((struct lm_softc *));
void (*refresh_sensor_data)(struct lm_softc *);
int (*lm_banksel)(struct lm_softc *, int);
u_int8_t (*lm_readreg)(struct lm_softc *, int);
@ -171,7 +171,7 @@ struct lm_softc {
struct sysmon_envsys sc_sysmon;
};
void lm_attach __P((struct lm_softc *));
int lm_probe __P((bus_space_tag_t, bus_space_handle_t));
void lm_attach(struct lm_softc *);
int lm_probe(bus_space_tag_t, bus_space_handle_t);
#endif /* _DEV_ISA_NSLM7XVAR_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: opl.c,v 1.21 2004/04/22 00:17:11 itojun Exp $ */
/* $NetBSD: opl.c,v 1.22 2005/02/04 02:10:37 perry Exp $ */
/*
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: opl.c,v 1.21 2004/04/22 00:17:11 itojun Exp $");
__KERNEL_RCSID(0, "$NetBSD: opl.c,v 1.22 2005/02/04 02:10:37 perry Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -113,23 +113,23 @@ static void opl_command(struct opl_softc *, int, int, int);
void opl_reset(struct opl_softc *);
void opl_freq_to_fnum (int freq, int *block, int *fnum);
int oplsyn_open __P((midisyn *ms, int));
void oplsyn_close __P((midisyn *));
void oplsyn_reset __P((void *));
void oplsyn_noteon __P((midisyn *, u_int32_t, u_int32_t, u_int32_t));
void oplsyn_noteoff __P((midisyn *, u_int32_t, u_int32_t, u_int32_t));
void oplsyn_keypressure __P((midisyn *, u_int32_t, u_int32_t, u_int32_t));
void oplsyn_ctlchange __P((midisyn *, u_int32_t, u_int32_t, u_int32_t));
void oplsyn_programchange __P((midisyn *, u_int32_t, u_int32_t));
void oplsyn_pitchbend __P((midisyn *, u_int32_t, u_int32_t, u_int32_t));
void oplsyn_loadpatch __P((midisyn *, struct sysex_info *, struct uio *));
int oplsyn_open(midisyn *ms, int);
void oplsyn_close(midisyn *);
void oplsyn_reset(void *);
void oplsyn_noteon(midisyn *, u_int32_t, u_int32_t, u_int32_t);
void oplsyn_noteoff(midisyn *, u_int32_t, u_int32_t, u_int32_t);
void oplsyn_keypressure(midisyn *, u_int32_t, u_int32_t, u_int32_t);
void oplsyn_ctlchange(midisyn *, u_int32_t, u_int32_t, u_int32_t);
void oplsyn_programchange(midisyn *, u_int32_t, u_int32_t);
void oplsyn_pitchbend(midisyn *, u_int32_t, u_int32_t, u_int32_t);
void oplsyn_loadpatch(midisyn *, struct sysex_info *, struct uio *);
void opl_set_op_reg __P((struct opl_softc *, int, int, int, u_char));
void opl_set_ch_reg __P((struct opl_softc *, int, int, u_char));
void opl_load_patch __P((struct opl_softc *, int));
u_int32_t opl_get_block_fnum __P((int freq));
int opl_calc_vol __P((int regbyte, int volume, int main_vol));
void opl_set_op_reg(struct opl_softc *, int, int, int, u_char);
void opl_set_ch_reg(struct opl_softc *, int, int, u_char);
void opl_load_patch(struct opl_softc *, int);
u_int32_t opl_get_block_fnum(int freq);
int opl_calc_vol(int regbyte, int volume, int main_vol);
struct midisyn_methods opl3_midi = {
oplsyn_open,

View File

@ -1,4 +1,4 @@
/* $NetBSD: oplvar.h,v 1.9 2003/12/04 13:57:30 keihan Exp $ */
/* $NetBSD: oplvar.h,v 1.10 2005/02/04 02:10:37 perry Exp $ */
/*
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -63,11 +63,11 @@ struct opl_softc {
u_int8_t pan[MIDI_MAX_CHANS];
u_int8_t panl, panr;
int (*spkrctl)__P((void *, int));
int (*spkrctl)(void *, int);
void *spkrarg;
#ifndef AUDIO_NO_POWER_CTL
int (*powerctl)__P((void *, int));
int (*powerctl)(void *, int);
void *powerarg;
#endif
};
@ -104,7 +104,7 @@ struct opl_operators {
extern const struct opl_operators opl2_instrs[];
extern const struct opl_operators opl3_instrs[];
int opl_find __P((struct opl_softc *));
void opl_attach __P((struct opl_softc *));
int opl_detach __P((struct opl_softc *, int));
int opl_find(struct opl_softc *);
void opl_attach(struct opl_softc *);
int opl_detach(struct opl_softc *, int);
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: pckbc.c,v 1.32 2004/03/24 17:26:53 drochner Exp $ */
/* $NetBSD: pckbc.c,v 1.33 2005/02/04 02:10:37 perry Exp $ */
/*
* Copyright (c) 2004 Ben Harris.
@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: pckbc.c,v 1.32 2004/03/24 17:26:53 drochner Exp $");
__KERNEL_RCSID(0, "$NetBSD: pckbc.c,v 1.33 2005/02/04 02:10:37 perry Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -64,8 +64,8 @@ struct pckbc_slotdata {
#endif
};
static void pckbc_init_slotdata __P((struct pckbc_slotdata *));
static int pckbc_attach_slot __P((struct pckbc_softc *, pckbc_slot_t));
static void pckbc_init_slotdata(struct pckbc_slotdata *);
static int pckbc_attach_slot(struct pckbc_softc *, pckbc_slot_t);
struct pckbc_internal pckbc_consdata;
int pckbc_console_attached;
@ -73,21 +73,21 @@ int pckbc_console_attached;
static int pckbc_console;
static struct pckbc_slotdata pckbc_cons_slotdata;
static int pckbc_xt_translation __P((void *, pckbport_slot_t, int));
static int pckbc_send_devcmd __P((void *, pckbport_slot_t, u_char));
static void pckbc_slot_enable __P((void *, pckbport_slot_t, int));
static void pckbc_intr_establish __P((void *, pckbport_slot_t));
static void pckbc_set_poll __P((void *, pckbc_slot_t, int on));
static int pckbc_xt_translation(void *, pckbport_slot_t, int);
static int pckbc_send_devcmd(void *, pckbport_slot_t, u_char);
static void pckbc_slot_enable(void *, pckbport_slot_t, int);
static void pckbc_intr_establish(void *, pckbport_slot_t);
static void pckbc_set_poll(void *, pckbc_slot_t, int on);
static int pckbc_wait_output __P((bus_space_tag_t, bus_space_handle_t));
static int pckbc_wait_output(bus_space_tag_t, bus_space_handle_t);
static int pckbc_get8042cmd __P((struct pckbc_internal *));
static int pckbc_put8042cmd __P((struct pckbc_internal *));
static int pckbc_get8042cmd(struct pckbc_internal *);
static int pckbc_put8042cmd(struct pckbc_internal *);
void pckbc_cleanqueue __P((struct pckbc_slotdata *));
void pckbc_cleanup __P((void *));
int pckbc_cmdresponse __P((struct pckbc_internal *, pckbc_slot_t, u_char));
void pckbc_start __P((struct pckbc_internal *, pckbc_slot_t));
void pckbc_cleanqueue(struct pckbc_slotdata *);
void pckbc_cleanup(void *);
int pckbc_cmdresponse(struct pckbc_internal *, pckbc_slot_t, u_char);
void pckbc_start(struct pckbc_internal *, pckbc_slot_t);
const char * const pckbc_slot_names[] = { "kbd", "aux" };

View File

@ -1,4 +1,4 @@
/* $NetBSD: pckbcvar.h,v 1.9 2004/03/24 17:26:53 drochner Exp $ */
/* $NetBSD: pckbcvar.h,v 1.10 2005/02/04 02:10:37 perry Exp $ */
/*
* Copyright (c) 1998
@ -75,7 +75,7 @@ struct pckbc_internal {
int rbuf_write;
};
typedef void (*pckbc_inputfcn) __P((void *, int));
typedef void (*pckbc_inputfcn)(void *, int);
/*
* State per device.
@ -84,7 +84,7 @@ struct pckbc_softc {
struct device sc_dv;
struct pckbc_internal *id;
void (*intr_establish) __P((struct pckbc_softc *, pckbc_slot_t));
void (*intr_establish)(struct pckbc_softc *, pckbc_slot_t);
};
struct pckbc_attach_args {
@ -97,19 +97,18 @@ extern struct pckbc_internal pckbc_consdata;
extern int pckbc_console_attached;
/* These functions are sometimes called by match routines */
int pckbc_send_cmd __P((bus_space_tag_t, bus_space_handle_t, u_char));
int pckbc_poll_data1 __P((void *, pckbc_slot_t));
int pckbc_send_cmd(bus_space_tag_t, bus_space_handle_t, u_char);
int pckbc_poll_data1(void *, pckbc_slot_t);
/* More normal calls from attach routines */
void pckbc_attach __P((struct pckbc_softc *));
int pckbc_cnattach __P((bus_space_tag_t, bus_addr_t, bus_size_t,
pckbc_slot_t));
int pckbc_is_console __P((bus_space_tag_t, bus_addr_t));
int pckbcintr __P((void *));
int pckbcintr_hard __P((void *));
void pckbcintr_soft __P((void *));
void pckbc_attach(struct pckbc_softc *);
int pckbc_cnattach(bus_space_tag_t, bus_addr_t, bus_size_t, pckbc_slot_t);
int pckbc_is_console(bus_space_tag_t, bus_addr_t);
int pckbcintr(void *);
int pckbcintr_hard(void *);
void pckbcintr_soft(void *);
/* md hook for use without mi wscons */
int pckbc_machdep_cnattach __P((pckbc_tag_t, pckbc_slot_t));
int pckbc_machdep_cnattach(pckbc_tag_t, pckbc_slot_t);
#endif /* _DEV_IC_PCKBCVAR_H_ */

Some files were not shown because too many files have changed in this diff Show More