Use CFATTACH_DECL().

This commit is contained in:
thorpej 2002-09-30 21:04:24 +00:00
parent da8db7611e
commit 9d4a640785
25 changed files with 102 additions and 129 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ahb.c,v 1.36 2002/09/27 20:37:49 thorpej Exp $ */
/* $NetBSD: ahb.c,v 1.37 2002/09/30 21:04:24 thorpej Exp $ */
/*-
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@ -53,7 +53,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ahb.c,v 1.36 2002/09/27 20:37:49 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: ahb.c,v 1.37 2002/09/30 21:04:24 thorpej Exp $");
#include "opt_ddb.h"
@ -152,9 +152,8 @@ integrate int ahb_init_ecb __P((struct ahb_softc *, struct ahb_ecb *));
int ahbmatch __P((struct device *, struct cfdata *, void *));
void ahbattach __P((struct device *, struct device *, void *));
const struct cfattach ahb_ca = {
sizeof(struct ahb_softc), ahbmatch, ahbattach
};
CFATTACH_DECL(ahb, sizeof(struct ahb_softc),
ahbmatch, ahbattach, NULL, NULL)
#define AHB_ABORT_TIMEOUT 2000 /* time to wait for abort (mSec) */

View File

@ -1,4 +1,4 @@
/* $NetBSD: ahc_eisa.c,v 1.22 2002/09/27 20:37:50 thorpej Exp $ */
/* $NetBSD: ahc_eisa.c,v 1.23 2002/09/30 21:04:24 thorpej Exp $ */
/*
* Product specific probe and attach routines for:
@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ahc_eisa.c,v 1.22 2002/09/27 20:37:50 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: ahc_eisa.c,v 1.23 2002/09/30 21:04:24 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -60,9 +60,8 @@ int ahc_eisa_match __P((struct device *, struct cfdata *, void *));
void ahc_eisa_attach __P((struct device *, struct device *, void *));
const struct cfattach ahc_eisa_ca = {
sizeof(struct ahc_softc), ahc_eisa_match, ahc_eisa_attach
};
CFATTACH_DECL(ahc_eisa, sizeof(struct ahc_softc),
ahc_eisa_match, ahc_eisa_attach, NULL, NULL)
/*
* Check the slots looking for a board we recognise

View File

@ -1,4 +1,4 @@
/* $NetBSD: bha_eisa.c,v 1.21 2002/09/27 20:37:51 thorpej Exp $ */
/* $NetBSD: bha_eisa.c,v 1.22 2002/09/30 21:04:24 thorpej Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: bha_eisa.c,v 1.21 2002/09/27 20:37:51 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: bha_eisa.c,v 1.22 2002/09/30 21:04:24 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -65,9 +65,8 @@ int bha_eisa_address __P((bus_space_tag_t, bus_space_handle_t, int *));
int bha_eisa_match __P((struct device *, struct cfdata *, void *));
void bha_eisa_attach __P((struct device *, struct device *, void *));
const struct cfattach bha_eisa_ca = {
sizeof(struct bha_softc), bha_eisa_match, bha_eisa_attach
};
CFATTACH_DECL(bha_eisa, sizeof(struct bha_softc),
bha_eisa_match, bha_eisa_attach, NULL, NULL)
int
bha_eisa_address(iot, ioh, portp)

View File

@ -1,4 +1,4 @@
/* $NetBSD: cac_eisa.c,v 1.6 2002/09/27 20:37:51 thorpej Exp $ */
/* $NetBSD: cac_eisa.c,v 1.7 2002/09/30 21:04:24 thorpej Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@ -68,7 +68,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: cac_eisa.c,v 1.6 2002/09/27 20:37:51 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: cac_eisa.c,v 1.7 2002/09/30 21:04:24 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -96,9 +96,8 @@ void cac_eisa_l0_intr_enable(struct cac_softc *, int);
int cac_eisa_l0_intr_pending(struct cac_softc *);
void cac_eisa_l0_submit(struct cac_softc *, struct cac_ccb *);
const struct cfattach cac_eisa_ca = {
sizeof(struct cac_softc), cac_eisa_match, cac_eisa_attach
};
CFATTACH_DECL(cac_eisa, sizeof(struct cac_softc),
cac_eisa_match, cac_eisa_attach, NULL, NULL)
static const struct cac_linkage cac_eisa_l0 = {
cac_eisa_l0_completed,

View File

@ -1,4 +1,4 @@
/* $NetBSD: depca_eisa.c,v 1.3 2002/09/27 20:37:51 thorpej Exp $ */
/* $NetBSD: depca_eisa.c,v 1.4 2002/09/30 21:04:25 thorpej Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: depca_eisa.c,v 1.3 2002/09/27 20:37:51 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: depca_eisa.c,v 1.4 2002/09/30 21:04:25 thorpej Exp $");
#include "opt_inet.h"
#include "bpfilter.h"
@ -87,9 +87,8 @@ struct depca_eisa_softc {
int sc_ist;
};
const struct cfattach depca_eisa_ca = {
sizeof(struct depca_eisa_softc), depca_eisa_match, depca_eisa_attach,
};
CFATTACH_DECL(depca_eisa, sizeof(struct depca_eisa_softc),
depca_eisa_match, depca_eisa_attach, NULL, NULL)
void *depca_eisa_intr_establish(struct depca_softc *, struct lance_softc *);

View File

@ -1,4 +1,4 @@
/* $NetBSD: dpt_eisa.c,v 1.7 2002/09/27 20:37:52 thorpej Exp $ */
/* $NetBSD: dpt_eisa.c,v 1.8 2002/09/30 21:04:25 thorpej Exp $ */
/*
* Copyright (c) 1999, 2000, 2001 Andrew Doran <ad@netbsd.org>
@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: dpt_eisa.c,v 1.7 2002/09/27 20:37:52 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: dpt_eisa.c,v 1.8 2002/09/30 21:04:25 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -59,9 +59,8 @@ static void dpt_eisa_attach(struct device *, struct device *, void *);
static int dpt_eisa_irq(bus_space_tag_t, bus_space_handle_t, int *);
static int dpt_eisa_match(struct device *, struct cfdata *, void *);
const struct cfattach dpt_eisa_ca = {
sizeof(struct dpt_softc), dpt_eisa_match, dpt_eisa_attach
};
CFATTACH_DECL(dpt_eisa, sizeof(struct dpt_softc),
dpt_eisa_match, dpt_eisa_attach, NULL, NULL)
static const char * const dpt_eisa_boards[] = {
"DPT2402",

View File

@ -1,4 +1,4 @@
/* $NetBSD: eisa.c,v 1.28 2002/09/27 20:37:52 thorpej Exp $ */
/* $NetBSD: eisa.c,v 1.29 2002/09/30 21:04:25 thorpej Exp $ */
/*
* Copyright (c) 1995, 1996 Christopher G. Demetriou
@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: eisa.c,v 1.28 2002/09/27 20:37:52 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: eisa.c,v 1.29 2002/09/30 21:04:25 thorpej Exp $");
#include "opt_eisaverbose.h"
@ -56,9 +56,8 @@ __KERNEL_RCSID(0, "$NetBSD: eisa.c,v 1.28 2002/09/27 20:37:52 thorpej Exp $");
int eisamatch(struct device *, struct cfdata *, void *);
void eisaattach(struct device *, struct device *, void *);
const struct cfattach eisa_ca = {
sizeof(struct device), eisamatch, eisaattach
};
CFATTACH_DECL(eisa, sizeof(struct device),
eisamatch, eisaattach, NULL, NULL)
int eisasubmatch(struct device *, struct cfdata *, void *);
int eisaprint(void *, const char *);

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_ep_eisa.c,v 1.25 2002/09/27 20:37:53 thorpej Exp $ */
/* $NetBSD: if_ep_eisa.c,v 1.26 2002/09/30 21:04:25 thorpej Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -71,7 +71,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_ep_eisa.c,v 1.25 2002/09/27 20:37:53 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_ep_eisa.c,v 1.26 2002/09/30 21:04:25 thorpej Exp $");
#include "opt_inet.h"
#include "opt_ns.h"
@ -126,9 +126,8 @@ __KERNEL_RCSID(0, "$NetBSD: if_ep_eisa.c,v 1.25 2002/09/27 20:37:53 thorpej Exp
int ep_eisa_match __P((struct device *, struct cfdata *, void *));
void ep_eisa_attach __P((struct device *, struct device *, void *));
const struct cfattach ep_eisa_ca = {
sizeof(struct ep_softc), ep_eisa_match, ep_eisa_attach
};
CFATTACH_DECL(ep_eisa, sizeof(struct ep_softc),
ep_eisa_match, ep_eisa_attach, NULL, NULL)
/* XXX move these somewhere else */
/* While attaching we need a few special EISA registers of the card,

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_fea.c,v 1.26 2002/09/27 20:37:53 thorpej Exp $ */
/* $NetBSD: if_fea.c,v 1.27 2002/09/30 21:04:25 thorpej Exp $ */
/*-
* Copyright (c) 1995, 1996 Matt Thomas <matt@3am-software.com>
@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_fea.c,v 1.26 2002/09/27 20:37:53 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_fea.c,v 1.27 2002/09/30 21:04:25 thorpej Exp $");
#include "opt_inet.h"
@ -528,7 +528,6 @@ pdq_eisa_attach(
printf("%s: interrupting at %s\n", sc->sc_dev.dv_xname, intrstr);
}
const struct cfattach fea_ca = {
sizeof(pdq_softc_t), pdq_eisa_match, pdq_eisa_attach
};
CFATTACH_DECL(fea, sizeof(pdq_softc_t),
pdq_eisa_match, pdq_eisa_attach, NULL, NULL)
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_tlp_eisa.c,v 1.9 2002/09/27 20:37:54 thorpej Exp $ */
/* $NetBSD: if_tlp_eisa.c,v 1.10 2002/09/30 21:04:26 thorpej Exp $ */
/*-
* Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
@ -43,7 +43,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_tlp_eisa.c,v 1.9 2002/09/27 20:37:54 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_tlp_eisa.c,v 1.10 2002/09/30 21:04:26 thorpej Exp $");
#include "opt_inet.h"
#include "opt_ns.h"
@ -121,9 +121,8 @@ struct tulip_eisa_softc {
int tlp_eisa_match __P((struct device *, struct cfdata *, void *));
void tlp_eisa_attach __P((struct device *, struct device *, void *));
const struct cfattach tlp_eisa_ca = {
sizeof(struct tulip_eisa_softc), tlp_eisa_match, tlp_eisa_attach,
};
CFATTACH_DECL(tlp_eisa, sizeof(struct tulip_eisa_softc),
tlp_eisa_match, tlp_eisa_attach, NULL, NULL)
const int tlp_eisa_irqs[] = { 5, 9, 10, 11 };

View File

@ -1,4 +1,4 @@
/* $NetBSD: mlx_eisa.c,v 1.9 2002/09/27 20:37:54 thorpej Exp $ */
/* $NetBSD: mlx_eisa.c,v 1.10 2002/09/30 21:04:26 thorpej Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: mlx_eisa.c,v 1.9 2002/09/27 20:37:54 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: mlx_eisa.c,v 1.10 2002/09/30 21:04:26 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -73,9 +73,8 @@ static int mlx_v1_fw_handshake(struct mlx_softc *, int *, int *, int *);
static int mlx_v1_reset(struct mlx_softc *);
#endif
const struct cfattach mlx_eisa_ca = {
sizeof(struct mlx_softc), mlx_eisa_match, mlx_eisa_attach
};
CFATTACH_DECL(mlx_eisa, sizeof(struct mlx_softc),
mlx_eisa_match, mlx_eisa_attach, NULL, NULL)
struct mlx_eisa_prod {
const char *mp_idstr;

View File

@ -1,4 +1,4 @@
/* $NetBSD: uha_eisa.c,v 1.19 2002/09/27 20:37:54 thorpej Exp $ */
/* $NetBSD: uha_eisa.c,v 1.20 2002/09/30 21:04:26 thorpej Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: uha_eisa.c,v 1.19 2002/09/27 20:37:54 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: uha_eisa.c,v 1.20 2002/09/30 21:04:26 thorpej Exp $");
#include "opt_ddb.h"
@ -67,9 +67,8 @@ __KERNEL_RCSID(0, "$NetBSD: uha_eisa.c,v 1.19 2002/09/27 20:37:54 thorpej Exp $"
int uha_eisa_match __P((struct device *, struct cfdata *, void *));
void uha_eisa_attach __P((struct device *, struct device *, void *));
const struct cfattach uha_eisa_ca = {
sizeof(struct uha_softc), uha_eisa_match, uha_eisa_attach
};
CFATTACH_DECL(uha_eisa, sizeof(struct uha_softc),
uha_eisa_match, uha_eisa_attach, NULL, NULL)
#ifndef DDB
#define Debugger() panic("should call debugger here (uha_eisa.c)")

View File

@ -1,4 +1,4 @@
/* $NetBSD: bivideo.c,v 1.15 2002/09/27 20:37:55 thorpej Exp $ */
/* $NetBSD: bivideo.c,v 1.16 2002/09/30 21:09:34 thorpej Exp $ */
/*-
* Copyright (c) 1999-2001
@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: bivideo.c,v 1.15 2002/09/27 20:37:55 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: bivideo.c,v 1.16 2002/09/30 21:09:34 thorpej Exp $");
#define FBDEBUG
static const char _copyright[] __attribute__ ((unused)) =
@ -122,9 +122,9 @@ void bivideo_set_contrast(struct bivideo_softc *, int);
/*
* static variables
*/
const struct cfattach bivideo_ca = {
sizeof(struct bivideo_softc), bivideomatch, bivideoattach,
};
CFATTACH_DECL(bivideo, sizeof(struct bivideo_softc),
bivideomatch, bivideoattach, NULL, NULL)
struct hpcfb_accessops bivideo_ha = {
bivideo_ioctl, bivideo_mmap
};

View File

@ -1,4 +1,4 @@
/* $NetBSD: btnmgr.c,v 1.8 2002/09/27 20:37:56 thorpej Exp $ */
/* $NetBSD: btnmgr.c,v 1.9 2002/09/30 21:09:35 thorpej Exp $ */
/*-
* Copyright (c) 1999
@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: btnmgr.c,v 1.8 2002/09/27 20:37:56 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: btnmgr.c,v 1.9 2002/09/30 21:09:35 thorpej Exp $");
#define BTNMGRDEBUG
@ -89,9 +89,8 @@ static int btnmgr_hook(void *, int, long, void *);
/*
* global/static data
*/
const struct cfattach btnmgr_ca = {
sizeof(struct btnmgr_softc), btnmgrmatch, btnmgrattach
};
CFATTACH_DECL(btnmgr, sizeof(struct btnmgr_softc),
btnmgrmatch, btnmgrattach, NULL, NULL)
#ifdef notyet
dev_type_open(btnmgropen);

View File

@ -1,4 +1,4 @@
/* $NetBSD: button.c,v 1.7 2002/09/27 20:37:56 thorpej Exp $ */
/* $NetBSD: button.c,v 1.8 2002/09/30 21:09:35 thorpej Exp $ */
/*-
* Copyright (c) 1999-2001
@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: button.c,v 1.7 2002/09/27 20:37:56 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: button.c,v 1.8 2002/09/30 21:09:35 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -67,9 +67,8 @@ static void button_attach(struct device *, struct device *, void *);
static int button_intr(void *);
static int button_state(void *, int, long, void *);
const struct cfattach button_ca = {
sizeof(struct button_softc), button_match, button_attach
};
CFATTACH_DECL(button, sizeof(struct button_softc),
button_match, button_attach, NULL, NULL)
int
button_match(struct device *parent, struct cfdata *match, void *aux)

View File

@ -1,4 +1,4 @@
/* $NetBSD: hpcfb.c,v 1.24 2002/09/27 20:37:57 thorpej Exp $ */
/* $NetBSD: hpcfb.c,v 1.25 2002/09/30 21:09:35 thorpej Exp $ */
/*-
* Copyright (c) 1999
@ -43,13 +43,13 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: hpcfb.c,v 1.24 2002/09/27 20:37:57 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: hpcfb.c,v 1.25 2002/09/30 21:09:35 thorpej Exp $");
#define FBDEBUG
static const char _copyright[] __attribute__ ((unused)) =
"Copyright (c) 1999 Shin Takemura. All rights reserved.";
static const char _rcsid[] __attribute__ ((unused)) =
"$NetBSD: hpcfb.c,v 1.24 2002/09/27 20:37:57 thorpej Exp $";
"$NetBSD: hpcfb.c,v 1.25 2002/09/30 21:09:35 thorpej Exp $";
#include <sys/param.h>
#include <sys/systm.h>
@ -237,9 +237,8 @@ struct wsdisplay_emulops hpcfb_emulops = {
/*
* static variables
*/
const struct cfattach hpcfb_ca = {
sizeof(struct hpcfb_softc), hpcfbmatch, hpcfbattach,
};
CFATTACH_DECL(hpcfb, sizeof(struct hpcfb_softc),
hpcfbmatch, hpcfbattach, NULL, NULL)
struct wsscreen_descr hpcfb_stdscreen = {
"std",

View File

@ -1,4 +1,4 @@
/* $NetBSD: hpcin.c,v 1.6 2002/09/27 20:37:57 thorpej Exp $ */
/* $NetBSD: hpcin.c,v 1.7 2002/09/30 21:09:35 thorpej Exp $ */
/*-
* Copyright (c) 2000, 2001 The NetBSD Foundation, Inc.
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: hpcin.c,v 1.6 2002/09/27 20:37:57 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: hpcin.c,v 1.7 2002/09/30 21:09:35 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -72,9 +72,8 @@ struct hpcin_softc {
#define sc_off sc_hma.hma_off
#define sc_connect sc_hma.hma_connect
const struct cfattach hpcin_ca = {
sizeof(struct hpcin_softc), hpcin_match, hpcin_attach
};
CFATTACH_DECL(hpcin, sizeof(struct hpcin_softc),
hpcin_match, hpcin_attach, NULL, NULL)
int
hpcin_match(struct device *parent, struct cfdata *cf, void *aux)

View File

@ -1,4 +1,4 @@
/* $NetBSD: hpcioman.c,v 1.7 2002/09/27 20:37:58 thorpej Exp $ */
/* $NetBSD: hpcioman.c,v 1.8 2002/09/30 21:09:35 thorpej Exp $ */
/*-
* Copyright (c) 1999-2001 The NetBSD Foundation, Inc.
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: hpcioman.c,v 1.7 2002/09/27 20:37:58 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: hpcioman.c,v 1.8 2002/09/30 21:09:35 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -62,9 +62,8 @@ struct hpcioman_softc {
struct device sc_dev;
};
const struct cfattach hpcioman_ca = {
sizeof(struct hpcioman_softc), hpcioman_match, hpcioman_attach
};
CFATTACH_DECL(hpcioman, sizeof(struct hpcioman_softc),
hpcioman_match, hpcioman_attach, NULL, NULL)
int
hpcioman_match(struct device *parent, struct cfdata *cf, void *aux)

View File

@ -1,4 +1,4 @@
/* $NetBSD: hpckbd.c,v 1.8 2002/09/27 20:37:58 thorpej Exp $ */
/* $NetBSD: hpckbd.c,v 1.9 2002/09/30 21:09:35 thorpej Exp $ */
/*-
* Copyright (c) 1999-2001 The NetBSD Foundation, Inc.
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: hpckbd.c,v 1.8 2002/09/27 20:37:58 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: hpckbd.c,v 1.9 2002/09/30 21:09:35 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -112,9 +112,8 @@ void hpckbd_keymap_setup(struct hpckbd_core *, const keysym_t *, int);
int __hpckbd_input(void *, int, int);
void __hpckbd_input_hook(void*);
const struct cfattach hpckbd_ca = {
sizeof(struct hpckbd_softc), hpckbd_match, hpckbd_attach
};
CFATTACH_DECL(hpckbd, sizeof(struct hpckbd_softc),
hpckbd_match, hpckbd_attach, NULL, NULL)
/* wskbd accessopts */
int hpckbd_enable(void *, int);

View File

@ -1,4 +1,4 @@
/* $NetBSD: hpcout.c,v 1.5 2002/09/27 20:37:59 thorpej Exp $ */
/* $NetBSD: hpcout.c,v 1.6 2002/09/30 21:09:35 thorpej Exp $ */
/*-
* Copyright (c) 2000, 2001 The NetBSD Foundation, Inc.
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: hpcout.c,v 1.5 2002/09/27 20:37:59 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: hpcout.c,v 1.6 2002/09/30 21:09:35 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -69,9 +69,8 @@ struct hpcout_softc {
#define sc_on sc_hma.hma_on
#define sc_off sc_hma.hma_off
const struct cfattach hpcout_ca = {
sizeof(struct hpcout_softc), hpcout_match, hpcout_attach
};
CFATTACH_DECL(hpcout, sizeof(struct hpcout_softc),
hpcout_match, hpcout_attach, NULL, NULL)
int
hpcout_match(struct device *parent, struct cfdata *cf, void *aux)

View File

@ -1,4 +1,4 @@
/* $NetBSD: pwctl.c,v 1.9 2002/09/27 20:38:00 thorpej Exp $ */
/* $NetBSD: pwctl.c,v 1.10 2002/09/30 21:09:36 thorpej Exp $ */
/*-
* Copyright (c) 1999-2001
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: pwctl.c,v 1.9 2002/09/27 20:38:00 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: pwctl.c,v 1.10 2002/09/30 21:09:36 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -85,9 +85,8 @@ static int pwctl_hook(void *, int, long, void *);
static int pwctl_ghook(void *, int, long, void *);
int pwctl_hardpower(void *, int, long, void *);
const struct cfattach pwctl_ca = {
sizeof(struct pwctl_softc), pwctl_match, pwctl_attach
};
CFATTACH_DECL(pwctl, sizeof(struct pwctl_softc),
pwctl_match, pwctl_attach, NULL, NULL)
int
pwctl_match(struct device *parent, struct cfdata *match, void *aux)

View File

@ -1,4 +1,4 @@
/* $NetBSD: dpti.c,v 1.6 2002/09/27 20:38:00 thorpej Exp $ */
/* $NetBSD: dpti.c,v 1.7 2002/09/30 21:11:45 thorpej Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -64,7 +64,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: dpti.c,v 1.6 2002/09/27 20:38:00 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: dpti.c,v 1.7 2002/09/30 21:11:45 thorpej Exp $");
#include "opt_i2o.h"
@ -152,9 +152,8 @@ const struct cdevsw dpti_cdevsw = {
extern struct cfdriver dpti_cd;
const struct cfattach dpti_ca = {
sizeof(struct dpti_softc), dpti_match, dpti_attach
};
CFATTACH_DECL(dpti, sizeof(struct dpti_softc),
dpti_match, dpti_attach, NULL, NULL)
int
dpti_match(struct device *parent, struct cfdata *match, void *aux)

View File

@ -1,4 +1,4 @@
/* $NetBSD: iopl.c,v 1.9 2002/09/27 20:38:01 thorpej Exp $ */
/* $NetBSD: iopl.c,v 1.10 2002/09/30 21:11:45 thorpej Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -46,7 +46,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: iopl.c,v 1.9 2002/09/27 20:38:01 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: iopl.c,v 1.10 2002/09/30 21:11:45 thorpej Exp $");
#include "opt_i2o.h"
#include "opt_inet.h"
@ -130,9 +130,8 @@ static int iopl_ioctl(struct ifnet *, u_long, caddr_t);
static void iopl_start(struct ifnet *);
static void iopl_stop(struct ifnet *, int);
const struct cfattach iopl_ca = {
sizeof(struct iopl_softc), iopl_match, iopl_attach,
};
CFATTACH_DECL(iopl, sizeof(struct iopl_softc),
iopl_match, iopl_attach, NULL, NULL)
#ifdef I2OVERBOSE
static const char * const iopl_errors[] = {

View File

@ -1,4 +1,4 @@
/* $NetBSD: iopsp.c,v 1.14 2002/09/27 20:38:02 thorpej Exp $ */
/* $NetBSD: iopsp.c,v 1.15 2002/09/30 21:11:46 thorpej Exp $ */
/*-
* Copyright (c) 2000, 2001 The NetBSD Foundation, Inc.
@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: iopsp.c,v 1.14 2002/09/27 20:38:02 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: iopsp.c,v 1.15 2002/09/30 21:11:46 thorpej Exp $");
#include "opt_i2o.h"
@ -83,9 +83,8 @@ static int iopsp_reconfig(struct device *);
static void iopsp_scsipi_request(struct scsipi_channel *,
scsipi_adapter_req_t, void *);
const struct cfattach iopsp_ca = {
sizeof(struct iopsp_softc), iopsp_match, iopsp_attach
};
CFATTACH_DECL(iopsp, sizeof(struct iopsp_softc),
iopsp_match, iopsp_attach, NULL, NULL)
/*
* Match a supported device.

View File

@ -1,4 +1,4 @@
/* $NetBSD: ld_iop.c,v 1.11 2002/09/27 20:38:02 thorpej Exp $ */
/* $NetBSD: ld_iop.c,v 1.12 2002/09/30 21:11:46 thorpej Exp $ */
/*-
* Copyright (c) 2000, 2001 The NetBSD Foundation, Inc.
@ -43,7 +43,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ld_iop.c,v 1.11 2002/09/27 20:38:02 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: ld_iop.c,v 1.12 2002/09/30 21:11:46 thorpej Exp $");
#include "opt_i2o.h"
#include "rnd.h"
@ -92,12 +92,8 @@ static int ld_iop_match(struct device *, struct cfdata *, void *);
static int ld_iop_start(struct ld_softc *, struct buf *);
static void ld_iop_unconfig(struct ld_iop_softc *, int);
const struct cfattach ld_iop_ca = {
sizeof(struct ld_iop_softc),
ld_iop_match,
ld_iop_attach,
ld_iop_detach
};
CFATTACH_DECL(ld_iop, sizeof(struct ld_iop_softc),
ld_iop_match, ld_iop_attach, ld_iop_detach, NULL)
#ifdef I2OVERBOSE
static const char * const ld_iop_errors[] = {