de-__P, partially ANSIfy

This commit is contained in:
perry 2005-02-03 21:35:44 +00:00
parent 32a519cece
commit 35adf4031a
10 changed files with 63 additions and 97 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ali1543.c,v 1.5 2003/02/26 22:23:06 fvdl Exp $ */
/* $NetBSD: ali1543.c,v 1.6 2005/02/03 21:35:44 perry Exp $ */
/*
* Copyright (c) 2001
@ -94,7 +94,7 @@
/* HAYAKAWA Koichi wrote ALi 1543 PCI ICU code basing on VIA82C586 driver */
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ali1543.c,v 1.5 2003/02/26 22:23:06 fvdl Exp $");
__KERNEL_RCSID(0, "$NetBSD: ali1543.c,v 1.6 2005/02/03 21:35:44 perry Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -114,9 +114,9 @@ __KERNEL_RCSID(0, "$NetBSD: ali1543.c,v 1.5 2003/02/26 22:23:06 fvdl Exp $");
#include <i386/pci/piixvar.h>
int ali1543_getclink (pciintr_icu_handle_t, int, int *);
int ali1543_get_intr (pciintr_icu_handle_t, int, int *);
int ali1543_set_intr (pciintr_icu_handle_t, int, int);
int ali1543_getclink(pciintr_icu_handle_t, int, int *);
int ali1543_get_intr(pciintr_icu_handle_t, int, int *);
int ali1543_set_intr(pciintr_icu_handle_t, int, int);
const struct pciintr_icu ali1543_icu = {

View File

@ -1,4 +1,4 @@
/* $NetBSD: ichlpcib.c,v 1.7 2005/01/12 17:45:58 drochner Exp $ */
/* $NetBSD: ichlpcib.c,v 1.8 2005/02/03 21:35:44 perry Exp $ */
/*-
* Copyright (c) 2004 The NetBSD Foundation, Inc.
@ -46,7 +46,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ichlpcib.c,v 1.7 2005/01/12 17:45:58 drochner Exp $");
__KERNEL_RCSID(0, "$NetBSD: ichlpcib.c,v 1.8 2005/02/03 21:35:44 perry Exp $");
#include <sys/types.h>
#include <sys/param.h>
@ -76,8 +76,7 @@ struct lpcib_softc {
static int lpcibmatch(struct device *, struct cfdata *, void *);
static void lpcibattach(struct device *, struct device *, void *);
static void tcotimer_configure(struct lpcib_softc *,
struct pci_attach_args *);
static void tcotimer_configure(struct lpcib_softc *, struct pci_attach_args *);
static int tcotimer_setmode(struct sysmon_wdog *);
static int tcotimer_tickle(struct sysmon_wdog *);

View File

@ -1,4 +1,4 @@
/* $NetBSD: p64h2apic.c,v 1.6 2004/04/23 21:13:05 itojun Exp $ */
/* $NetBSD: p64h2apic.c,v 1.7 2005/02/03 21:35:44 perry Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@ -45,7 +45,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: p64h2apic.c,v 1.6 2004/04/23 21:13:05 itojun Exp $");
__KERNEL_RCSID(0, "$NetBSD: p64h2apic.c,v 1.7 2005/02/03 21:35:44 perry Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -56,8 +56,8 @@ __KERNEL_RCSID(0, "$NetBSD: p64h2apic.c,v 1.6 2004/04/23 21:13:05 itojun Exp $")
#include <dev/pci/pcivar.h>
#include <dev/pci/pcidevs.h>
static int p64h2match __P((struct device *, struct cfdata *, void *));
static void p64h2attach __P((struct device *, struct device *, void *));
static int p64h2match(struct device *, struct cfdata *, void *);
static void p64h2attach(struct device *, struct device *, void *);
struct p64h2apic_softc {
struct device sc_dev;
@ -67,14 +67,11 @@ struct p64h2apic_softc {
CFATTACH_DECL(p64h2apic, sizeof(struct p64h2apic_softc),
p64h2match, p64h2attach, NULL, NULL);
int p64h2print __P((void *, const char *pnp));
int p64h2print(void *, const char *pnp);
static int
p64h2match(parent, match, aux)
struct device *parent;
struct cfdata *match;
void *aux;
p64h2match(struct device *parent, struct cfdata *match, void *aux)
{
struct pci_attach_args *pa = aux;
@ -86,9 +83,7 @@ p64h2match(parent, match, aux)
}
static void
p64h2attach(parent, self, aux)
struct device *parent, *self;
void *aux;
p64h2attach(struct device *parent, struct device *self, void *aux)
{
struct p64h2apic_softc *sc = (void *) self;
struct pci_attach_args *pa = aux;

View File

@ -1,4 +1,4 @@
/* $NetBSD: pceb.c,v 1.14 2004/08/30 15:05:17 drochner Exp $ */
/* $NetBSD: pceb.c,v 1.15 2005/02/03 21:35:44 perry Exp $ */
/*-
* Copyright (c) 1996, 1998 The NetBSD Foundation, Inc.
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: pceb.c,v 1.14 2004/08/30 15:05:17 drochner Exp $");
__KERNEL_RCSID(0, "$NetBSD: pceb.c,v 1.15 2005/02/03 21:35:44 perry Exp $");
#include <sys/types.h>
#include <sys/param.h>
@ -57,13 +57,13 @@ __KERNEL_RCSID(0, "$NetBSD: pceb.c,v 1.14 2004/08/30 15:05:17 drochner Exp $");
#include "eisa.h"
#include "isa.h"
int pcebmatch __P((struct device *, struct cfdata *, void *));
void pcebattach __P((struct device *, struct device *, void *));
int pcebmatch(struct device *, struct cfdata *, void *);
void pcebattach(struct device *, struct device *, void *);
CFATTACH_DECL(pceb, sizeof(struct device),
pcebmatch, pcebattach, NULL, NULL);
void pceb_callback __P((struct device *));
void pceb_callback(struct device *);
union pceb_attach_args {
const char *ea_name; /* XXX should be common */
@ -72,10 +72,7 @@ union pceb_attach_args {
};
int
pcebmatch(parent, match, aux)
struct device *parent;
struct cfdata *match;
void *aux;
pcebmatch(struct device *parent, struct cfdata *match, void *aux)
{
struct pci_attach_args *pa = aux;
@ -104,9 +101,7 @@ pcebmatch(parent, match, aux)
}
void
pcebattach(parent, self, aux)
struct device *parent, *self;
void *aux;
pcebattach(struct device *parent, struct device *self, void *aux)
{
struct pci_attach_args *pa = aux;
char devinfo[256];
@ -125,8 +120,7 @@ pcebattach(parent, self, aux)
}
void
pceb_callback(self)
struct device *self;
pceb_callback(struct device *self)
{
union pceb_attach_args ea;

View File

@ -1,4 +1,4 @@
/* $NetBSD: pchb.c,v 1.54 2004/08/30 15:05:17 drochner Exp $ */
/* $NetBSD: pchb.c,v 1.55 2005/02/03 21:35:44 perry Exp $ */
/*-
* Copyright (c) 1996, 1998, 2000 The NetBSD Foundation, Inc.
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: pchb.c,v 1.54 2004/08/30 15:05:17 drochner Exp $");
__KERNEL_RCSID(0, "$NetBSD: pchb.c,v 1.55 2005/02/03 21:35:44 perry Exp $");
#include <sys/types.h>
#include <sys/param.h>
@ -78,8 +78,8 @@ __KERNEL_RCSID(0, "$NetBSD: pchb.c,v 1.54 2004/08/30 15:05:17 drochner Exp $");
#define I82424_BCTL_PCIMEM_BURSTEN 0x01
#define I82424_BCTL_PCI_BURSTEN 0x02
int pchbmatch __P((struct device *, struct cfdata *, void *));
void pchbattach __P((struct device *, struct device *, void *));
int pchbmatch(struct device *, struct cfdata *, void *);
void pchbattach(struct device *, struct device *, void *);
CFATTACH_DECL(pchb, sizeof(struct pchb_softc),
pchbmatch, pchbattach, NULL, NULL);

View File

@ -1,4 +1,4 @@
/* $NetBSD: pci_intr_fixup.c,v 1.30 2004/04/30 02:44:03 christos Exp $ */
/* $NetBSD: pci_intr_fixup.c,v 1.31 2005/02/03 21:35:44 perry Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@ -67,7 +67,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: pci_intr_fixup.c,v 1.30 2004/04/30 02:44:03 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: pci_intr_fixup.c,v 1.31 2005/02/03 21:35:44 perry Exp $");
#include "opt_pcibios.h"
@ -336,7 +336,7 @@ pciintr_bitmap_find_lowest_irq(int irq_bitmap, int *irqp)
}
int
pciintr_link_init()
pciintr_link_init(void)
{
int entry, pin, link;
struct pcibios_intr_routing *pir;
@ -395,7 +395,7 @@ pciintr_link_init()
* Hopes the BIOS already setup the ICU.
*/
int
pciintr_guess_irq()
pciintr_guess_irq(void)
{
struct pciintr_link_map *l;
int irq, guessed = 0;
@ -423,7 +423,7 @@ pciintr_guess_irq()
#endif /* PCIBIOS_INTR_GUESS */
int
pciintr_link_fixup()
pciintr_link_fixup(void)
{
struct pciintr_link_map *l;
int irq;

View File

@ -1,4 +1,4 @@
/* $NetBSD: pcib.c,v 1.34 2004/08/30 15:05:17 drochner Exp $ */
/* $NetBSD: pcib.c,v 1.35 2005/02/03 21:35:44 perry Exp $ */
/*-
* Copyright (c) 1996, 1998 The NetBSD Foundation, Inc.
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: pcib.c,v 1.34 2004/08/30 15:05:17 drochner Exp $");
__KERNEL_RCSID(0, "$NetBSD: pcib.c,v 1.35 2005/02/03 21:35:44 perry Exp $");
#include <sys/types.h>
#include <sys/param.h>
@ -55,19 +55,16 @@ __KERNEL_RCSID(0, "$NetBSD: pcib.c,v 1.34 2004/08/30 15:05:17 drochner Exp $");
#include "isa.h"
int pcibmatch __P((struct device *, struct cfdata *, void *));
void pcibattach __P((struct device *, struct device *, void *));
int pcibmatch(struct device *, struct cfdata *, void *);
void pcibattach(struct device *, struct device *, void *);
CFATTACH_DECL(pcib, sizeof(struct device),
pcibmatch, pcibattach, NULL, NULL);
void pcib_callback __P((struct device *));
void pcib_callback(struct device *);
int
pcibmatch(parent, match, aux)
struct device *parent;
struct cfdata *match;
void *aux;
pcibmatch(struct device *parent, struct cfdata *match, void *aux)
{
struct pci_attach_args *pa = aux;
@ -170,9 +167,7 @@ pcibmatch(parent, match, aux)
}
void
pcibattach(parent, self, aux)
struct device *parent, *self;
void *aux;
pcibattach(struct device *parent, struct device *self, void *aux)
{
struct pci_attach_args *pa = aux;
char devinfo[256];
@ -191,8 +186,7 @@ pcibattach(parent, self, aux)
}
void
pcib_callback(self)
struct device *self;
pcib_callback(struct device *self)
{
struct isabus_attach_args iba;

View File

@ -1,4 +1,4 @@
/* $NetBSD: pcibios.c,v 1.21 2004/11/21 22:00:00 augustss Exp $ */
/* $NetBSD: pcibios.c,v 1.22 2005/02/03 21:35:44 perry Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@ -67,7 +67,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: pcibios.c,v 1.21 2004/11/21 22:00:00 augustss Exp $");
__KERNEL_RCSID(0, "$NetBSD: pcibios.c,v 1.22 2005/02/03 21:35:44 perry Exp $");
#include "opt_pcibios.h"
@ -151,7 +151,7 @@ struct pci_bridge_hook_arg {
};
void
pcibios_init()
pcibios_init(void)
{
struct bios32_entry_info ei;
u_int32_t rev_maj, rev_min, mech1, mech2, scmech1, scmech2;
@ -246,7 +246,7 @@ pcibios_init()
}
void
pcibios_pir_init()
pcibios_pir_init(void)
{
char *devinfo;
paddr_t pa;
@ -498,7 +498,7 @@ pcibios_return_code(u_int16_t ax, const char *func)
}
void
pcibios_print_exclirq()
pcibios_print_exclirq(void)
{
int i;
@ -515,7 +515,7 @@ pcibios_print_exclirq()
#ifdef PCIBIOS_LIBRETTO_FIXUP
/* for Libretto L2/L3 hack */
static void
pcibios_fixup_pir_table()
pcibios_fixup_pir_table(void)
{
struct pcibios_linkmap *m;
@ -524,8 +524,7 @@ pcibios_fixup_pir_table()
}
void
pcibios_fixup_pir_table_mask(mask)
struct pcibios_linkmap *mask;
pcibios_fixup_pir_table_mask(struct pcibios_linkmap *mask)
{
int i, j;
@ -542,7 +541,7 @@ pcibios_fixup_pir_table_mask(mask)
#ifdef PCIINTR_DEBUG
void
pcibios_print_pir_table()
pcibios_print_pir_table(void)
{
int i, j;

View File

@ -1,4 +1,4 @@
/* $NetBSD: pcic_pci_machdep.c,v 1.2 2001/11/15 07:03:35 lukem Exp $ */
/* $NetBSD: pcic_pci_machdep.c,v 1.3 2005/02/03 21:35:44 perry Exp $ */
/*
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: pcic_pci_machdep.c,v 1.2 2001/11/15 07:03:35 lukem Exp $");
__KERNEL_RCSID(0, "$NetBSD: pcic_pci_machdep.c,v 1.3 2005/02/03 21:35:44 perry Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -53,16 +53,13 @@ __KERNEL_RCSID(0, "$NetBSD: pcic_pci_machdep.c,v 1.2 2001/11/15 07:03:35 lukem E
extern int pcic_isa_intr_alloc_mask;
void *
pcic_pci_machdep_intr_est(pc)
pci_chipset_tag_t pc;
pcic_pci_machdep_intr_est(pci_chipset_tag_t pc)
{
return NULL;
}
void *
pcic_pci_machdep_pcic_intr_establish(sc, fct)
struct pcic_softc *sc;
int (*fct) __P((void *));
pcic_pci_machdep_pcic_intr_establish(struct pcic_softc *sc, int (*fct)(void *))
{
if (isa_intr_alloc(NULL, PCIC_CSC_INTR_IRQ_VALIDMASK &
pcic_isa_intr_alloc_mask, IST_EDGE, &(sc->irq)))
@ -73,20 +70,14 @@ pcic_pci_machdep_pcic_intr_establish(sc, fct)
}
void *
pcic_pci_machdep_chip_intr_establish(pch, pf, ipl, fct, arg)
pcmcia_chipset_handle_t pch;
struct pcmcia_function *pf;
int ipl;
int (*fct) __P((void *));
void *arg;
pcic_pci_machdep_chip_intr_establish(pcmcia_chipset_handle_t pch,
struct pcmcia_function *pf, int ipl, int (*fct)(void *), void *arg)
{
return (pcic_isa_chip_intr_establish(pch, pf, ipl, fct, arg));
}
void
pcic_pci_machdep_chip_intr_disestablish(pch, ih)
pcmcia_chipset_handle_t pch;
void *ih;
pcic_pci_machdep_chip_intr_disestablish(pcmcia_chipset_handle_t pch, void *ih)
{
pcic_isa_chip_intr_disestablish(pch, ih);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: pcmb.c,v 1.10 2004/08/30 15:05:17 drochner Exp $ */
/* $NetBSD: pcmb.c,v 1.11 2005/02/03 21:35:44 perry Exp $ */
/*-
* Copyright (c) 1996, 1998 The NetBSD Foundation, Inc.
@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: pcmb.c,v 1.10 2004/08/30 15:05:17 drochner Exp $");
__KERNEL_RCSID(0, "$NetBSD: pcmb.c,v 1.11 2005/02/03 21:35:44 perry Exp $");
#include <sys/types.h>
#include <sys/param.h>
@ -59,19 +59,16 @@ __KERNEL_RCSID(0, "$NetBSD: pcmb.c,v 1.10 2004/08/30 15:05:17 drochner Exp $");
#include "mca.h"
int pcmbmatch __P((struct device *, struct cfdata *, void *));
void pcmbattach __P((struct device *, struct device *, void *));
int pcmbmatch(struct device *, struct cfdata *, void *);
void pcmbattach(struct device *, struct device *, void *);
CFATTACH_DECL(pcmb, sizeof(struct device),
pcmbmatch, pcmbattach, NULL, NULL);
void pcmb_callback __P((struct device *));
void pcmb_callback(struct device *);
int
pcmbmatch(parent, match, aux)
struct device *parent;
struct cfdata *match;
void *aux;
pcmbmatch(struct device *parent, struct cfdata *match, void *aux)
{
struct pci_attach_args *pa = aux;
@ -86,9 +83,7 @@ pcmbmatch(parent, match, aux)
}
void
pcmbattach(parent, self, aux)
struct device *parent, *self;
void *aux;
pcmbattach(struct device *parent, struct device *self, void *aux)
{
struct pci_attach_args *pa = aux;
char devinfo[256];
@ -107,8 +102,7 @@ pcmbattach(parent, self, aux)
}
void
pcmb_callback(self)
struct device *self;
pcmb_callback(struct device *self)
{
struct mcabus_attach_args ma;