This commit is contained in:
uwe 2006-03-04 03:39:02 +00:00
parent 5ed1df536e
commit 8ea3cb44c6
11 changed files with 493 additions and 493 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: autoconf.h,v 1.43 2006/03/04 02:56:21 uwe Exp $ */
/* $NetBSD: autoconf.h,v 1.44 2006/03/04 03:39:02 uwe Exp $ */
/*-
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@ -148,7 +148,7 @@ union obio_attach_args {
#define OBIO_BUS_MAP_USE_ROM BUS_SPACE_MAP_BUS1
/* obio bus helper that finds ROM mappings; exported for autoconf.c */
int obio_find_rom_map __P((bus_addr_t, int, bus_space_handle_t *));
int obio_find_rom_map(bus_addr_t, int, bus_space_handle_t *);
/*
@ -159,13 +159,13 @@ int obio_find_rom_map __P((bus_addr_t, int, bus_space_handle_t *));
*/
struct device;
struct cfdata;
int matchbyname __P((struct device *, struct cfdata *cf, void *aux));
int matchbyname(struct device *, struct cfdata *cf, void *aux);
/*
* `clockfreq' produces a printable representation of a clock frequency
* (this is just a frill).
*/
char *clockfreq __P((int freq));
char *clockfreq(int freq);
/* Openprom V2 style boot path */
struct bootpath {
@ -175,12 +175,12 @@ struct bootpath {
};
/* Parse a disk string into a dev_t, return device struct pointer */
struct device *parsedisk __P((char *, int, int, dev_t *));
struct device *parsedisk(char *, int, int, dev_t *);
/* Establish a mountroot_hook, for benefit of floppy drive, mostly. */
void mountroot_hook_establish __P((void (*) __P((struct device *)),
struct device *));
void mountroot_hook_establish(void (*)(struct device *),
struct device *);
void bootstrap __P((void));
struct device *getdevunit __P((const char *, int));
int romgetcursoraddr __P((int **, int **));
void bootstrap(void);
struct device *getdevunit(const char *, int);
int romgetcursoraddr(int **, int **);

View File

@ -1,4 +1,4 @@
/* $NetBSD: bootinfo.h,v 1.4 2005/12/11 12:19:05 christos Exp $ */
/* $NetBSD: bootinfo.h,v 1.5 2006/03/04 03:39:02 uwe Exp $ */
/*
* Copyright (c) 1997
@ -61,5 +61,5 @@ struct btinfo_kernelfile {
};
#ifdef _KERNEL
void *lookup_bootinfo __P((int));
void *lookup_bootinfo(int);
#endif

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_machdep.h,v 1.20 2003/04/29 17:06:06 scw Exp $ */
/* $NetBSD: db_machdep.h,v 1.21 2006/03/04 03:39:02 uwe Exp $ */
/*
* Mach Operating System
@ -79,14 +79,14 @@ extern db_regs_t *ddb_regp;
*/
#define SOFTWARE_SSTEP
boolean_t db_inst_trap_return __P((int inst));
boolean_t db_inst_return __P((int inst));
boolean_t db_inst_call __P((int inst));
boolean_t db_inst_branch __P((int inst));
int db_inst_load __P((int inst));
int db_inst_store __P((int inst));
boolean_t db_inst_unconditional_flow_transfer __P((int inst));
db_addr_t db_branch_taken __P((int inst, db_addr_t pc, db_regs_t *regs));
boolean_t db_inst_trap_return(int inst);
boolean_t db_inst_return(int inst);
boolean_t db_inst_call(int inst);
boolean_t db_inst_branch(int inst);
int db_inst_load(int inst);
int db_inst_store(int inst);
boolean_t db_inst_unconditional_flow_transfer(int inst);
db_addr_t db_branch_taken(int inst, db_addr_t pc, db_regs_t *regs);
#define inst_trap_return(ins) db_inst_trap_return(ins)
#define inst_return(ins) db_inst_return(ins)
@ -107,7 +107,7 @@ db_addr_t db_branch_taken __P((int inst, db_addr_t pc, db_regs_t *regs));
#define DB_MACHINE_COMMANDS
int kdb_trap __P((int, struct trapframe *));
int kdb_trap(int, struct trapframe *);
/*
* We use both a.out and elf symbols in DDB.

View File

@ -1,4 +1,4 @@
/* $NetBSD: eeprom.h,v 1.7 2005/12/11 12:19:05 christos Exp $ */
/* $NetBSD: eeprom.h,v 1.8 2006/03/04 03:39:02 uwe Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@ -52,7 +52,7 @@
#ifdef _KERNEL
extern char *eeprom_va;
int eeprom_uio __P((struct uio *));
int eeprom_uio(struct uio *);
#define DEV_EEPROM 11 /* minor device 11 is eeprom */
#endif /* _KERNEL */

View File

@ -1,4 +1,4 @@
/* $NetBSD: intr.h,v 1.7 2003/06/16 20:01:05 thorpej Exp $ */
/* $NetBSD: intr.h,v 1.8 2006/03/04 03:39:02 uwe Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -72,7 +72,7 @@ softintr_disestablish(void *cookie);
* structure, which is otherwise internal to intr.c.
*/
#if defined(SUN4M) || defined(SUN4D)
extern void raise __P((int, int));
extern void raise(int, int);
#if !(defined(SUN4) || defined(SUN4C))
#define softintr_schedule(cookie) raise(0, *((int *) (cookie)))
#else /* both defined */

View File

@ -1,4 +1,4 @@
/* $NetBSD: lock.h,v 1.22 2005/12/28 19:09:30 perry Exp $ */
/* $NetBSD: lock.h,v 1.23 2006/03/04 03:39:02 uwe Exp $ */
/*-
* Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@ -65,17 +65,17 @@ static __inline int __ldstub(__cpu_simple_lock_t *addr)
}
#endif /* __lint__ */
static __inline void __cpu_simple_lock_init __P((__cpu_simple_lock_t *))
static __inline void __cpu_simple_lock_init(__cpu_simple_lock_t *)
__attribute__((__unused__));
static __inline int __cpu_simple_lock_try __P((__cpu_simple_lock_t *))
static __inline int __cpu_simple_lock_try(__cpu_simple_lock_t *)
__attribute__((__unused__));
static __inline void __cpu_simple_unlock __P((__cpu_simple_lock_t *))
static __inline void __cpu_simple_unlock(__cpu_simple_lock_t *)
__attribute__((__unused__));
#ifndef __CPU_SIMPLE_LOCK_NOINLINE
static __inline void __cpu_simple_lock __P((__cpu_simple_lock_t *))
static __inline void __cpu_simple_lock(__cpu_simple_lock_t *)
__attribute__((__unused__));
#else
extern void __cpu_simple_lock __P((__cpu_simple_lock_t *));
extern void __cpu_simple_lock(__cpu_simple_lock_t *);
#endif
static __inline void

View File

@ -1,4 +1,4 @@
/* $NetBSD: oldmon.h,v 1.15 2005/12/11 12:19:05 christos Exp $ */
/* $NetBSD: oldmon.h,v 1.16 2006/03/04 03:39:02 uwe Exp $ */
/*
* Copyright (C) 1985 Regents of the University of California
@ -119,15 +119,15 @@ struct saioreq {
*/
struct om_boottable {
char b_devname[2]; /* The name of the device */
int (*b_probe) __P((void)); /* probe() --> -1 or found controller
int (*b_probe)(void); /* probe() --> -1 or found controller
number */
int (*b_boot) __P((void)); /* boot(bp) --> -1 or start address */
int (*b_open)
__P((struct saioreq *));/* open(iobp) --> -1 or 0 */
int (*b_close)
__P((struct saioreq *));/* close(iobp) --> -1 or 0 */
int (*b_strategy)
__P((struct saioreq *, int));/* strategy(iobp,rw) --> -1 or 0 */
int (*b_boot)(void); /* boot(bp) --> -1 or start address */
int (*b_open)(struct saioreq *);
/* open(iobp) --> -1 or 0 */
int (*b_close)(struct saioreq *);
/* close(iobp) --> -1 or 0 */
int (*b_strategy)(struct saioreq *, int);
/* strategy(iobp,rw) --> -1 or 0 */
char *b_desc; /* Printable string describing dev */
struct devinfo *b_devinfo; /* info to configure device. */
};
@ -157,7 +157,7 @@ struct om_bootparam {
*/
struct om_vector {
char *initSp; /* Initial system stack ptr for hardware */
int (*startMon) __P((void));/* Initial PC for hardware */
int (*startMon)(void); /* Initial PC for hardware */
int *diagberr; /* Bus err handler for diags */
/* Monitor and hardware revision and identification */
@ -165,10 +165,10 @@ struct om_vector {
u_long *memorySize; /* Usable memory in bytes */
/* Single-character input and output */
int (*getChar) __P((void)); /* Get char from input source */
void (*putChar) __P((int)); /* Put char to output sink */
int (*mayGet) __P((void)); /* Maybe get char, or -1 */
int (*mayPut) __P((int)); /* Maybe put char, or -1 */
int (*getChar)(void); /* Get char from input source */
void (*putChar)(int); /* Put char to output sink */
int (*mayGet)(void); /* Maybe get char, or -1 */
int (*mayPut)(int); /* Maybe put char, or -1 */
u_char *echo; /* Should getchar echo? */
u_char *inSource; /* Input source selector */
u_char *outSink; /* Output sink selector */
@ -178,8 +178,8 @@ struct om_vector {
#define PROMDEV_TTYB 2 /* in/out to ttyb */
/* Keyboard input (scanned by monitor nmi routine) */
int (*getKey) __P((void)); /* Get next key if one exists */
int (*initGetKey) __P((void));/* Initialize get key */
int (*getKey)(void); /* Get next key if one exists */
int (*initGetKey)(void); /* Initialize get key */
u_int *translation; /* Kbd translation selector */
u_char *keyBid; /* Keyboard ID byte */
int *screen_x; /* V2: Screen x pos (R/O) */
@ -190,37 +190,37 @@ struct om_vector {
char *monId;
/* Frame buffer output and terminal emulation */
int (*fbWriteChar) __P((void));/* Write a character to FB */
int (*fbWriteChar)(void); /* Write a character to FB */
int *fbAddr; /* Address of frame buffer */
char **font; /* Font table for FB */
void (*fbWriteStr) __P((const char *, int));
void (*fbWriteStr)(const char *, int);
/* Quickly write string to FB */
/* Reboot interface routine -- resets and reboots system. */
void (*reBoot) __P((const char *)) /* e.g. reBoot("xy()vmunix") */
__attribute__((__noreturn__));
void (*reBoot)(const char *) /* e.g. reBoot("xy()vmunix") */
__attribute__((__noreturn__));
/* Line input and parsing */
u_char *lineBuf; /* The line input buffer */
u_char **linePtr; /* Cur pointer into linebuf */
int *lineSize; /* length of line in linebuf */
int (*getLine) __P((void)); /* Get line from user */
u_char (*getNextChar) __P((void));/* Get next char from linebuf */
u_char (*peekNextChar) __P((void));/* Peek at next char */
int (*getLine)(void); /* Get line from user */
u_char (*getNextChar)(void); /* Get next char from linebuf */
u_char (*peekNextChar)(void); /* Peek at next char */
int *fbThere; /* =1 if frame buffer there */
int (*getNum) __P((void)); /* Grab hex num from line */
int (*getNum)(void); /* Grab hex num from line */
/* Print formatted output to current output sink */
int (*printf) __P((void)); /* Similar to "Kernel printf" */
int (*printHex) __P((void));/* Format N digits in hex */
int (*printf)(void); /* Similar to "Kernel printf" */
int (*printHex)(void); /* Format N digits in hex */
/* Led stuff */
u_char *leds; /* RAM copy of LED register */
int (*setLeds) __P((void)); /* Sets LED's and RAM copy */
int (*setLeds)(void); /* Sets LED's and RAM copy */
/* Non-maskable interrupt (nmi) information */
int (*nmiAddr) __P((void)); /* Addr for level 7 vector */
void (*abortEntry) __P((void));/* Entry for keyboard abort */
int (*nmiAddr)(void); /* Addr for level 7 vector */
void (*abortEntry)(void); /* Entry for keyboard abort */
int *nmiClock; /* Counts up in msec */
/* Frame buffer type: see <machine/fbio.h> */
@ -238,12 +238,13 @@ struct om_vector {
long *resetMap; /* pgmap entry for resetaddr */
/* Really struct pgmapent * */
__dead void (*exitToMon) __P((void)) /* Exit from user program */
__dead void (*exitToMon)(void) /* Exit from user program */
__attribute__((noreturn));
u_char **memorybitmap; /* V1: &{0 or &bits} */
void (*setcxsegmap) /* Set seg in any context */
__P((int, caddr_t, int));
void (**vector_cmd) __P((u_long, char *));/* V2: Handler for 'v' cmd */
(int, caddr_t, int);
void (**vector_cmd)(u_long, char *);
/* V2: Handler for 'v' cmd */
u_long *ExpectedTrapSig;
u_long *TrapVectorTable;
int dummy1z;
@ -310,8 +311,8 @@ struct saif {
#if defined(SUN4)
void oldmon_w_trace __P((u_long));
void oldmon_w_cmd __P((u_long, char *));
void oldmon_w_trace(u_long);
void oldmon_w_cmd(u_long, char *);
#endif
#endif /* _MACHINE_OLDMON_H */

View File

@ -1,4 +1,4 @@
/* $NetBSD: param.h,v 1.64 2006/01/13 15:45:56 chs Exp $ */
/* $NetBSD: param.h,v 1.65 2006/03/04 03:39:02 uwe Exp $ */
/*
* Copyright (c) 1992, 1993
@ -166,7 +166,7 @@ extern int nbpg, pgofset, pgshift;
#if defined(_KERNEL) || defined(_STANDALONE)
#ifndef _LOCORE
extern void delay __P((unsigned int));
extern void delay(unsigned int);
#define DELAY(n) delay(n)
#endif /* _LOCORE */

View File

@ -1,4 +1,4 @@
/* $NetBSD: svr4_machdep.h,v 1.11 2005/12/11 12:19:06 christos Exp $ */
/* $NetBSD: svr4_machdep.h,v 1.12 2006/03/04 03:39:02 uwe Exp $ */
/*-
* Copyright (c) 1994 The NetBSD Foundation, Inc.
@ -119,6 +119,6 @@ struct svr4_ucontext;
#define svr4_syscall_intern syscall_intern
int svr4_trap __P((int, struct lwp *));
int svr4_trap(int, struct lwp *);
#endif /* !_SPARC_SVR4_MACHDEP_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: z8530var.h,v 1.7 2005/12/11 12:19:06 christos Exp $ */
/* $NetBSD: z8530var.h,v 1.8 2006/03/04 03:39:02 uwe Exp $ */
/*
* Copyright (c) 1992, 1993
@ -70,13 +70,13 @@ struct zsc_softc {
* about the function call overhead where ZS_DELAY does nothing.
*/
u_char zs_read_reg __P((struct zs_chanstate *cs, u_char reg));
u_char zs_read_csr __P((struct zs_chanstate *cs));
u_char zs_read_data __P((struct zs_chanstate *cs));
u_char zs_read_reg(struct zs_chanstate *cs, u_char reg);
u_char zs_read_csr(struct zs_chanstate *cs);
u_char zs_read_data(struct zs_chanstate *cs);
void zs_write_reg __P((struct zs_chanstate *cs, u_char reg, u_char val));
void zs_write_csr __P((struct zs_chanstate *cs, u_char val));
void zs_write_data __P((struct zs_chanstate *cs, u_char val));
void zs_write_reg(struct zs_chanstate *cs, u_char reg, u_char val);
void zs_write_csr(struct zs_chanstate *cs, u_char val);
void zs_write_data(struct zs_chanstate *cs, u_char val);
/* The sparc has splzs() in psl.h */