ansify function definitions
This commit is contained in:
parent
312e117cb9
commit
f7d20361b0
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: bios32.c,v 1.23 2009/03/14 15:36:07 dsl Exp $ */
|
||||
/* $NetBSD: bios32.c,v 1.24 2009/03/15 15:40:33 cegger Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
||||
|
@ -86,7 +86,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: bios32.c,v 1.23 2009/03/14 15:36:07 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: bios32.c,v 1.24 2009/03/15 15:40:33 cegger Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -116,7 +116,7 @@ struct smbios_entry smbios_entry;
|
|||
* Initialize the BIOS32 interface.
|
||||
*/
|
||||
void
|
||||
bios32_init()
|
||||
bios32_init(void)
|
||||
{
|
||||
paddr_t entry = 0;
|
||||
char *p;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: db_interface.c,v 1.63 2009/03/14 21:04:10 dsl Exp $ */
|
||||
/* $NetBSD: db_interface.c,v 1.64 2009/03/15 15:40:34 cegger Exp $ */
|
||||
|
||||
/*
|
||||
* Mach Operating System
|
||||
|
@ -33,7 +33,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.63 2009/03/14 21:04:10 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.64 2009/03/15 15:40:34 cegger Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_multiprocessor.h"
|
||||
|
@ -99,7 +99,7 @@ typedef void (vector)(void);
|
|||
extern vector Xintrddbipi;
|
||||
|
||||
void
|
||||
db_machine_init()
|
||||
db_machine_init(void)
|
||||
{
|
||||
|
||||
#ifdef MULTIPROCESSOR
|
||||
|
@ -261,7 +261,7 @@ kdb_trap(int type, int code, db_regs_t *regs)
|
|||
}
|
||||
|
||||
void
|
||||
cpu_Debugger()
|
||||
cpu_Debugger(void)
|
||||
{
|
||||
breakpoint();
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* $NetBSD: acpi_timer.c,v 1.12 2009/03/14 13:56:41 jmcneill Exp $ */
|
||||
/* $NetBSD: acpi_timer.c,v 1.13 2009/03/15 15:42:55 cegger Exp $ */
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: acpi_timer.c,v 1.12 2009/03/14 13:56:41 jmcneill Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: acpi_timer.c,v 1.13 2009/03/15 15:42:55 cegger Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -28,7 +28,7 @@ static struct timecounter acpi_timecounter = {
|
|||
};
|
||||
|
||||
int
|
||||
acpitimer_init()
|
||||
acpitimer_init(void)
|
||||
{
|
||||
uint32_t bits;
|
||||
int i, j;
|
||||
|
@ -101,7 +101,7 @@ acpitimer_delta(uint32_t end, uint32_t start)
|
|||
|
||||
#define N 2000
|
||||
static int
|
||||
acpitimer_test()
|
||||
acpitimer_test(void)
|
||||
{
|
||||
uint32_t last, this, delta;
|
||||
int minl, maxl, n;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: bcsp.c,v 1.14 2009/01/11 02:45:51 christos Exp $ */
|
||||
/* $NetBSD: bcsp.c,v 1.15 2009/03/15 15:43:40 cegger Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2007 KIYOHARA Takashi
|
||||
* All rights reserved.
|
||||
|
@ -26,7 +26,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: bcsp.c,v 1.14 2009/01/11 02:45:51 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: bcsp.c,v 1.15 2009/03/15 15:43:40 cegger Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
|
@ -998,7 +998,7 @@ bcsp_send_ack_command(struct bcsp_softc *sc)
|
|||
}
|
||||
|
||||
static __inline struct mbuf *
|
||||
bcsp_create_ackpkt()
|
||||
bcsp_create_ackpkt(void)
|
||||
{
|
||||
struct mbuf *m;
|
||||
bcsp_hdr_t *hdrp;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: cardbus_map.c,v 1.29 2009/03/14 21:04:19 dsl Exp $ */
|
||||
/* $NetBSD: cardbus_map.c,v 1.30 2009/03/15 15:45:01 cegger Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1999 and 2000
|
||||
|
@ -33,7 +33,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: cardbus_map.c,v 1.29 2009/03/14 21:04:19 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: cardbus_map.c,v 1.30 2009/03/15 15:45:01 cegger Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -378,8 +378,7 @@ cardbus_mapreg_unmap(struct cardbus_softc *sc, int func, int reg, bus_space_tag_
|
|||
* This function saves the Base Address Registers at the CardBus
|
||||
* function denoted by the argument.
|
||||
*/
|
||||
int cardbus_save_bar(ct)
|
||||
cardbus_devfunc_t ct;
|
||||
int cardbus_save_bar(cardbus_devfunc_t ct)
|
||||
{
|
||||
cardbustag_t tag = Cardbus_make_tag(ct);
|
||||
cardbus_chipset_tag_t cc = ct->ct_cc;
|
||||
|
@ -407,8 +406,7 @@ int cardbus_save_bar(ct)
|
|||
* This function saves the Base Address Registers at the CardBus
|
||||
* function denoted by the argument.
|
||||
*/
|
||||
int cardbus_restore_bar(ct)
|
||||
cardbus_devfunc_t ct;
|
||||
int cardbus_restore_bar(cardbus_devfunc_t ct)
|
||||
{
|
||||
cardbustag_t tag = Cardbus_make_tag(ct);
|
||||
cardbus_chipset_tag_t cc = ct->ct_cc;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: isapnpvar.h,v 1.27 2008/04/28 20:23:53 martin Exp $ */
|
||||
/* $NetBSD: isapnpvar.h,v 1.28 2009/03/15 15:45:48 cegger Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996 The NetBSD Foundation, Inc.
|
||||
|
@ -148,19 +148,14 @@ static __inline void isapnp_write_reg(struct isapnp_softc *, int, u_char);
|
|||
static __inline u_char isapnp_read_reg(struct isapnp_softc *, int);
|
||||
|
||||
static __inline void
|
||||
isapnp_write_reg(sc, r, v)
|
||||
struct isapnp_softc *sc;
|
||||
int r;
|
||||
u_char v;
|
||||
isapnp_write_reg(struct isapnp_softc *sc, int r, u_char v)
|
||||
{
|
||||
ISAPNP_WRITE_ADDR(sc, r);
|
||||
ISAPNP_WRITE_DATA(sc, v);
|
||||
}
|
||||
|
||||
static __inline u_char
|
||||
isapnp_read_reg(sc, r)
|
||||
struct isapnp_softc *sc;
|
||||
int r;
|
||||
isapnp_read_reg(struct isapnp_softc *sc, int r)
|
||||
{
|
||||
ISAPNP_WRITE_ADDR(sc, r);
|
||||
return ISAPNP_READ_DATA(sc);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* $SourceForge: bktr_os.c,v 1.5 2003/03/11 23:11:25 thomasklausner Exp $ */
|
||||
|
||||
/* $NetBSD: bktr_os.c,v 1.54 2009/03/14 15:36:19 dsl Exp $ */
|
||||
/* $NetBSD: bktr_os.c,v 1.55 2009/03/15 15:48:14 cegger Exp $ */
|
||||
/* $FreeBSD: src/sys/dev/bktr/bktr_os.c,v 1.20 2000/10/20 08:16:53 roger Exp$ */
|
||||
|
||||
/*
|
||||
|
@ -51,7 +51,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: bktr_os.c,v 1.54 2009/03/14 15:36:19 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: bktr_os.c,v 1.55 2009/03/15 15:48:14 cegger Exp $");
|
||||
|
||||
#ifdef __FreeBSD__
|
||||
#include "bktr.h"
|
||||
|
@ -1608,14 +1608,7 @@ get_bktr_mem(bktr_ptr_t bktr, bus_dmamap_t *dmapp, unsigned int size)
|
|||
}
|
||||
|
||||
void
|
||||
free_bktr_mem(bktr, dmap, kva)
|
||||
bktr_ptr_t bktr;
|
||||
bus_dmamap_t dmap;
|
||||
#if defined(__NetBSD__)
|
||||
vaddr_t kva;
|
||||
#else
|
||||
vm_offset_t kva;
|
||||
#endif
|
||||
free_bktr_mem(bktr_ptr_t bktr, bus_dmamap_t dmap, vaddr_t kva)
|
||||
{
|
||||
bus_dma_tag_t dmat = bktr->dmat;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: if_en_pci.c,v 1.28 2009/03/14 15:36:19 dsl Exp $ */
|
||||
/* $NetBSD: if_en_pci.c,v 1.29 2009/03/15 15:48:14 cegger Exp $ */
|
||||
|
||||
/*
|
||||
*
|
||||
|
@ -43,7 +43,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_en_pci.c,v 1.28 2009/03/14 15:36:19 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_en_pci.c,v 1.29 2009/03/15 15:48:14 cegger Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -137,10 +137,7 @@ static void adp_busreset(void *);
|
|||
* bus specific reset function [ADP only!]
|
||||
*/
|
||||
|
||||
static void adp_busreset(v)
|
||||
|
||||
void *v;
|
||||
|
||||
static void adp_busreset(void *v)
|
||||
{
|
||||
struct en_softc *sc = (struct en_softc *) v;
|
||||
u_int32_t dummy;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pciidevar.h,v 1.36 2008/01/04 00:27:27 joerg Exp $ */
|
||||
/* $NetBSD: pciidevar.h,v 1.37 2009/03/15 15:48:14 cegger Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998 Christopher G. Demetriou. All rights reserved.
|
||||
|
@ -177,10 +177,7 @@ static inline void pciide_pci_write(pci_chipset_tag_t, pcitag_t,
|
|||
int, u_int8_t);
|
||||
|
||||
static inline u_int8_t
|
||||
pciide_pci_read(pc, pa, reg)
|
||||
pci_chipset_tag_t pc;
|
||||
pcitag_t pa;
|
||||
int reg;
|
||||
pciide_pci_read(pci_chipset_tag_t pc, pcitag_t pa, int reg)
|
||||
{
|
||||
|
||||
return (pci_conf_read(pc, pa, (reg & ~0x03)) >>
|
||||
|
@ -188,11 +185,7 @@ pciide_pci_read(pc, pa, reg)
|
|||
}
|
||||
|
||||
static inline void
|
||||
pciide_pci_write(pc, pa, reg, val)
|
||||
pci_chipset_tag_t pc;
|
||||
pcitag_t pa;
|
||||
int reg;
|
||||
u_int8_t val;
|
||||
pciide_pci_write(pci_chipset_tag_t pc, pcitag_t pa, int reg, uint8_t val)
|
||||
{
|
||||
pcireg_t pcival;
|
||||
|
||||
|
|
Loading…
Reference in New Issue