Add prototypes.

This commit is contained in:
oki 1997-10-10 21:45:18 +00:00
parent a9685de195
commit 051b06a759
5 changed files with 33 additions and 13 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: sram.c,v 1.4 1996/10/13 03:35:08 christos Exp $ */
/* $NetBSD: sram.c,v 1.5 1997/10/10 21:45:18 oki Exp $ */
/*
* Copyright (c) 1994 Kazuhisa Shimizu.
@ -40,7 +40,6 @@
#include <machine/sram.h>
#include <x68k/dev/sramvar.h>
#include <x68k/x68k/iodevice.h>
#include "sram.h"
struct sram_softc sram_softc;
@ -51,6 +50,11 @@ struct sram_softc sram_softc;
int sramdebug = SRAM_DEBUG_IOCTL;
#endif
void sramattach __P((int));
int sramopen __P((dev_t, int));
void sramclose __P((dev_t, int));
int sramioctl __P((dev_t, u_long, caddr_t, int, struct proc *));
/*
* functions for probeing.
*/

View File

@ -1,4 +1,4 @@
/* $NetBSD: cpu.h,v 1.5 1997/02/03 22:20:32 oki Exp $ */
/* $NetBSD: cpu.h,v 1.6 1997/10/10 21:45:20 oki Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -154,17 +154,18 @@ extern unsigned char ssir;
extern int machineid;
extern char *intiolimit;
/* autoconf.c */
/* autoconf.c functions */
void configure __P((void));
void config_console __P((void));
/* fpu.c */
/* fpu.c functions */
int fpu_probe __P((void));
/* machdep.c */
/* machdep.c functions */
void dumpconf __P((void));
void dumpsys __P((void));
/* locore.s */
/* locore.s functions */
struct pcb;
struct fpframe;
void savectx __P((struct pcb *));
@ -194,11 +195,13 @@ void ICPL __P((vm_offset_t));
void ICPP __P((vm_offset_t));
#endif
/* sys_machdep.c */
/* sys_machdep.c functions */
int cachectl __P((int, caddr_t, int));
int dma_cachectl __P((caddr_t, int));
/* vm_machdep.c */
/* vm_machdep.c functions */
void physaccess __P((caddr_t, caddr_t, int, int));
void physunaccess __P((caddr_t, int));
int kvtop __P((caddr_t));
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: autoconf.c,v 1.10 1997/03/26 22:39:25 gwr Exp $ */
/* $NetBSD: autoconf.c,v 1.11 1997/10/10 21:45:22 oki Exp $ */
/*
* Copyright (c) 1995 Leo Weppelman
@ -38,6 +38,7 @@
#include <sys/disklabel.h>
#include <sys/malloc.h>
#include <machine/cpu.h>
#include <x68k/x68k/iodevice.h>
void configure __P((void));
static void findroot __P((struct device **, int *));
@ -45,6 +46,8 @@ void mbattach __P((struct device *, struct device *, void *));
int mbprint __P((void *, const char *));
int mbmatch __P((struct device *, void *, void *));
static int simple_devprint __P((void *, const char *));
extern int cold; /* 1 if still booting (locore.s) */
int x68k_realconfig;
#include <sys/kernel.h>
@ -87,7 +90,7 @@ cpu_rootconf()
}
/*ARGSUSED*/
int
static int
simple_devprint(auxp, pnp)
void *auxp;
const char *pnp;

View File

@ -1,4 +1,4 @@
/* $NetBSD: iodevice.h,v 1.2 1997/01/18 21:04:34 oki Exp $ */
/* $NetBSD: iodevice.h,v 1.3 1997/10/10 21:45:23 oki Exp $ */
/*
* Copyright (c) 1993, 1994, 1995 Masaru Oki
@ -367,3 +367,11 @@ volatile struct IODEVICE *IODEVbase;
#define PPI (IODEVbase->io_joyport)
#define ioctlr (IODEVbase->io_ctlr)
#endif
/*
* devices that need to configure before console use this
* *and know it* (i.e. everything is really tight certain params won't be
* passed in some cases and the devices will deal with it)
*/
int x68k_config_found __P((struct cfdata *, struct device *,
void *, cfprint_t));

View File

@ -1,4 +1,4 @@
/* $NetBSD: x68k_init.c,v 1.2 1997/02/04 11:45:03 oki Exp $ */
/* $NetBSD: x68k_init.c,v 1.3 1997/10/10 21:45:24 oki Exp $ */
/*
* Copyright (c) 1996 Masaru Oki.
@ -35,6 +35,8 @@
volatile struct IODEVICE *IODEVbase = (volatile struct IODEVICE *) PHYS_IODEV;
void intr_reset __P((void));
/*
* disable all interrupt.
*/