Nuke __P().

This commit is contained in:
junyoung 2003-10-27 13:43:48 +00:00
parent 03e0a01658
commit 8f1ba94956
28 changed files with 310 additions and 314 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: apmvar.h,v 1.17 2003/04/02 07:35:59 thorpej Exp $ */
/* $NetBSD: apmvar.h,v 1.18 2003/10/27 13:44:20 junyoung Exp $ */
/*-
* Copyright (c) 1995 The NetBSD Foundation, Inc.
* All rights reserved.
@ -68,12 +68,12 @@ struct apm_attach_args {
#ifdef _KERNEL
extern struct apm_connect_info apminfo; /* in locore */
extern int apmpresent;
int apmcall __P((int function, struct bioscallregs *regs));
void bioscall __P((int function, struct bioscallregs *regs));
void apm_cpu_busy __P((void));
void apm_cpu_idle __P((void));
void apminit __P((void));
int apm_set_powstate __P((u_int devid, u_int powstate));
int apm_busprobe __P((void));
int apmcall(int function, struct bioscallregs *regs);
void bioscall(int function, struct bioscallregs *regs);
void apm_cpu_busy(void);
void apm_cpu_idle(void);
void apminit(void);
int apm_set_powstate(u_int devid, u_int powstate);
int apm_busprobe(void);
#endif /* _KERNEL */
#endif /* __i386_apm_h__ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: bioscall.h,v 1.8 2003/04/02 07:35:59 thorpej Exp $ */
/* $NetBSD: bioscall.h,v 1.9 2003/10/27 13:44:20 junyoung Exp $ */
/*-
* Copyright (c) 1997, 2000 The NetBSD Foundation, Inc.
@ -104,6 +104,6 @@ struct bioscallregs {
#define ES r_es.biosreg_half[BIOSREG_LO]
void bioscall __P((int /* function*/ , struct bioscallregs * /* regs */));
void bioscall(int /* function*/ , struct bioscallregs * /* regs */);
#endif
#endif /* __I386_BIOSCALL_H__ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: cpu.h,v 1.108 2003/10/10 13:02:34 simonb Exp $ */
/* $NetBSD: cpu.h,v 1.109 2003/10/27 13:44:20 junyoung Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@ -118,9 +118,9 @@ struct cpu_info {
u_int64_t ci_tsc_freq; /* cpu cycles/second */
struct cpu_functions *ci_func; /* start/stop functions */
void (*cpu_setup) __P((struct cpu_info *));
void (*cpu_setup)(struct cpu_info *);
/* proc-dependant init */
void (*ci_info) __P((struct cpu_info *));
void (*ci_info)(struct cpu_info *);
int ci_want_resched;
int ci_astpending;
@ -216,14 +216,14 @@ curcpu()
extern struct cpu_info *cpu_info[X86_MAXPROCS];
void cpu_boot_secondary_processors __P((void));
void cpu_init_idle_pcbs __P((void));
void cpu_boot_secondary_processors(void);
void cpu_init_idle_pcbs(void);
/*
* Preempt the current process if in interrupt from user mode,
* or after the current trap/syscall if in system mode.
*/
extern void need_resched __P((struct cpu_info *));
extern void need_resched(struct cpu_info *);
#else /* !MULTIPROCESSOR */
@ -296,9 +296,9 @@ extern u_int32_t cpus_attached;
/*
* We need a machine-independent name for this.
*/
extern void (*delay_func) __P((int));
extern void (*delay_func)(int);
struct timeval;
extern void (*microtime_func) __P((struct timeval *));
extern void (*microtime_func)(struct timeval *);
#define DELAY(x) (*delay_func)(x)
#define delay(x) (*delay_func)(x)
@ -314,9 +314,9 @@ struct cpu_nocpuid_nameclass {
const char *cpu_vendorname;
const char *cpu_name;
int cpu_class;
void (*cpu_setup) __P((struct cpu_info *));
void (*cpu_cacheinfo) __P((struct cpu_info *));
void (*cpu_info) __P((struct cpu_info *));
void (*cpu_setup)(struct cpu_info *);
void (*cpu_cacheinfo)(struct cpu_info *);
void (*cpu_info)(struct cpu_info *);
};
@ -327,9 +327,9 @@ struct cpu_cpuid_nameclass {
struct cpu_cpuid_family {
int cpu_class;
const char *cpu_models[CPU_MAXMODEL+2];
void (*cpu_setup) __P((struct cpu_info *));
void (*cpu_probe) __P((struct cpu_info *));
void (*cpu_info) __P((struct cpu_info *));
void (*cpu_setup)(struct cpu_info *);
void (*cpu_probe)(struct cpu_info *);
void (*cpu_info)(struct cpu_info *);
} cpu_family[CPU_MAXFAMILY - CPU_MINFAMILY + 1];
};
@ -346,12 +346,12 @@ extern int i386_has_sse;
extern int i386_has_sse2;
/* machdep.c */
void dumpconf __P((void));
int cpu_maxproc __P((void));
void cpu_reset __P((void));
void i386_init_pcb_tss_ldt __P((struct cpu_info *));
void i386_proc0_tss_ldt_init __P((void));
void i386_bufinit __P((void));
void dumpconf(void);
int cpu_maxproc(void);
void cpu_reset(void);
void i386_init_pcb_tss_ldt(struct cpu_info *);
void i386_proc0_tss_ldt_init(void);
void i386_bufinit(void);
/* identcpu.c */
extern int tmx86_has_longrun;
@ -362,71 +362,71 @@ extern u_int crusoe_percentage;
extern u_int tmx86_set_longrun_mode(u_int);
void tmx86_get_longrun_status_all(void);
u_int tmx86_get_longrun_mode(void);
void identifycpu __P((struct cpu_info *));
void identifycpu(struct cpu_info *);
/* vm_machdep.c */
void cpu_proc_fork __P((struct proc *, struct proc *));
void cpu_proc_fork(struct proc *, struct proc *);
/* locore.s */
struct region_descriptor;
void lgdt __P((struct region_descriptor *));
void fillw __P((short, void *, size_t));
void lgdt(struct region_descriptor *);
void fillw(short, void *, size_t);
struct pcb;
void savectx __P((struct pcb *));
void switch_exit __P((struct lwp *, void (*)(struct lwp *)));
void proc_trampoline __P((void));
void savectx(struct pcb *);
void switch_exit(struct lwp *, void (*)(struct lwp *));
void proc_trampoline(void);
/* clock.c */
void initrtclock __P((void));
void startrtclock __P((void));
void i8254_delay __P((int));
void i8254_microtime __P((struct timeval *));
void i8254_initclocks __P((void));
void initrtclock(void);
void startrtclock(void);
void i8254_delay(int);
void i8254_microtime(struct timeval *);
void i8254_initclocks(void);
/* kern_microtime.c */
extern struct timeval cc_microset_time;
void cc_microtime __P((struct timeval *));
void cc_microset __P((struct cpu_info *));
void cc_microtime(struct timeval *);
void cc_microset(struct cpu_info *);
/* cpu.c */
void cpu_probe_features __P((struct cpu_info *));
void cpu_probe_features(struct cpu_info *);
/* npx.c */
void npxsave_lwp __P((struct lwp *, int));
void npxsave_cpu __P((struct cpu_info *, int));
void npxsave_lwp(struct lwp *, int);
void npxsave_cpu(struct cpu_info *, int);
/* vm_machdep.c */
int kvtop __P((caddr_t));
int kvtop(caddr_t);
#ifdef MATH_EMULATE
/* math_emulate.c */
int math_emulate __P((struct trapframe *, ksiginfo_t *));
int math_emulate(struct trapframe *, ksiginfo_t *);
#endif
#ifdef USER_LDT
/* sys_machdep.h */
int i386_get_ldt __P((struct lwp *, void *, register_t *));
int i386_set_ldt __P((struct lwp *, void *, register_t *));
int i386_get_ldt(struct lwp *, void *, register_t *);
int i386_set_ldt(struct lwp *, void *, register_t *);
#endif
/* isa_machdep.c */
void isa_defaultirq __P((void));
int isa_nmi __P((void));
void isa_defaultirq(void);
int isa_nmi(void);
#ifdef VM86
/* vm86.c */
void vm86_gpfault __P((struct lwp *, int));
void vm86_gpfault(struct lwp *, int);
#endif /* VM86 */
/* consinit.c */
void kgdb_port_init __P((void));
void kgdb_port_init(void);
/* bus_machdep.c */
void x86_bus_space_init __P((void));
void x86_bus_space_mallocok __P((void));
void x86_bus_space_init(void);
void x86_bus_space_mallocok(void);
#include <machine/psl.h> /* Must be after struct cpu_info declaration */

View File

@ -1,4 +1,4 @@
/* $NetBSD: cpufunc.h,v 1.26 2003/06/26 16:45:19 drochner Exp $ */
/* $NetBSD: cpufunc.h,v 1.27 2003/10/27 13:44:20 junyoung Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -175,7 +175,7 @@ tlbflushg(void)
#ifdef notyet
void setidt __P((int idx, /*XXX*/caddr_t func, int typ, int dpl));
void setidt(int idx, /*XXX*/caddr_t func, int typ, int dpl);
#endif
/* debug register */

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_machdep.h,v 1.23 2003/08/11 13:20:39 atatat Exp $ */
/* $NetBSD: db_machdep.h,v 1.24 2003/10/27 13:44:20 junyoung Exp $ */
/*
* Mach Operating System
@ -96,8 +96,8 @@ extern db_regs_t *ddb_regp;
((user) && (addr) < VM_MAX_ADDRESS))
#if 0
boolean_t db_check_access __P((vaddr_t, int, task_t));
boolean_t db_phys_eq __P((task_t, vaddr_t, task_t, vaddr_t));
boolean_t db_check_access(vaddr_t, int, task_t);
boolean_t db_phys_eq(task_t, vaddr_t, task_t, vaddr_t);
#endif
/* macros for printing OS server dependent task name */
@ -122,7 +122,7 @@ void db_task_name(/* task_t */);
#define db_thread_fp_used(thread) ((thread)->pcb->ims.ifps != 0)
int kdb_trap __P((int, int, db_regs_t *));
int kdb_trap(int, int, db_regs_t *);
/*
* We define some of our own commands
@ -136,8 +136,8 @@ int kdb_trap __P((int, int, db_regs_t *));
#define DB_ELF_SYMBOLS
#define DB_ELFSIZE 32
extern void db_machine_init __P((void));
extern void db_machine_init(void);
extern void cpu_debug_dump __P((void));
extern void cpu_debug_dump(void);
#endif /* _I386_DB_MACHDEP_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: freebsd_machdep.h,v 1.7 2003/09/06 22:05:49 christos Exp $ */
/* $NetBSD: freebsd_machdep.h,v 1.8 2003/10/27 13:44:20 junyoung Exp $ */
/*
* Copyright (c) 1986, 1989, 1991, 1993
@ -188,6 +188,6 @@ struct freebsd_ptrace_reg {
/* sys/i386/include/exec.h */
#define FREEBSD___LDPGSZ 4096
void freebsd_syscall_intern __P((struct proc *));
void freebsd_syscall_intern(struct proc *);
#endif /* _FREEBSD_MACHDEP_H */

View File

@ -1,4 +1,4 @@
/* $NetBSD: gdt.h,v 1.9 2002/10/01 12:57:05 fvdl Exp $ */
/* $NetBSD: gdt.h,v 1.10 2003/10/27 13:44:20 junyoung Exp $ */
/*-
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@ -41,14 +41,14 @@
struct proc;
struct pmap;
void gdt_init __P((void));
void gdt_init_cpu __P((struct cpu_info *));
void gdt_reload_cpu __P((struct cpu_info *));
void gdt_alloc_cpu __P((struct cpu_info *));
int tss_alloc __P((struct pcb *));
void tss_free __P((int));
void ldt_alloc __P((struct pmap *, union descriptor *, size_t));
void ldt_free __P((struct pmap *));
void gdt_init(void);
void gdt_init_cpu(struct cpu_info *);
void gdt_reload_cpu(struct cpu_info *);
void gdt_alloc_cpu(struct cpu_info *);
int tss_alloc(struct pcb *);
void tss_free(int);
void ldt_alloc(struct pmap *, union descriptor *, size_t);
void ldt_free(struct pmap *);
#endif /* LOCORE */

View File

@ -1,4 +1,4 @@
/* $NetBSD: ibcs2_machdep.h,v 1.13 2003/09/06 22:05:49 christos Exp $ */
/* $NetBSD: ibcs2_machdep.h,v 1.14 2003/10/27 13:44:20 junyoung Exp $ */
/*-
* Copyright (c) 1997, 2000 The NetBSD Foundation, Inc.
@ -47,10 +47,10 @@
struct exec_package;
struct exec_vmcmd;
void ibcs2_setregs __P((struct lwp *, struct exec_package *, u_long));
int ibcs2_sys_sysmachine __P((struct lwp *, void *, register_t *retval));
void ibcs2_setregs(struct lwp *, struct exec_package *, u_long);
int ibcs2_sys_sysmachine(struct lwp *, void *, register_t *retval);
void ibcs2_syscall_intern __P((struct proc *));
void ibcs2_syscall_intern(struct proc *);
#endif /* _KERNEL */
#endif /* !_I386_IBCS2_MACHDEP_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: loadfile_machdep.h,v 1.4 2001/10/31 17:20:46 thorpej Exp $ */
/* $NetBSD: loadfile_machdep.h,v 1.5 2003/10/27 13:44:20 junyoung Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -57,9 +57,9 @@
#define FREE(a, b) free(a, b)
#define OKMAGIC(a) ((a) == ZMAGIC)
void vpbcopy __P((const void *, void *, size_t));
void pbzero __P((void *, size_t));
ssize_t pread __P((int, void *, size_t));
void vpbcopy(const void *, void *, size_t);
void pbzero(void *, size_t);
ssize_t pread(int, void *, size_t);
#else
@ -74,8 +74,8 @@ ssize_t pread __P((int, void *, size_t));
#define FREE(a, b) free(a)
#define OKMAGIC(a) ((a) == OMAGIC)
ssize_t vread __P((int, u_long, u_long *, size_t));
void vcopy __P((u_long, u_long, u_long *, size_t));
void vzero __P((u_long, u_long *, size_t));
ssize_t vread(int, u_long, u_long *, size_t);
void vcopy(u_long, u_long, u_long *, size_t);
void vzero(u_long, u_long *, size_t);
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: pccons.h,v 1.8 1999/02/06 18:46:21 drochner Exp $ */
/* $NetBSD: pccons.h,v 1.9 2003/10/27 13:44:20 junyoung Exp $ */
/*
* pccons.h -- pccons ioctl definitions
@ -15,10 +15,10 @@
#define CONSOLE_SET_TYPEMATIC_RATE _IOW('t',124,u_char)
#ifdef _KERNEL
int pccnattach __P((void));
int pccnattach(void);
#if (NPCCONSKBD > 0)
int pcconskbd_cnattach __P((pckbc_tag_t, pckbc_slot_t));
int pcconskbd_cnattach(pckbc_tag_t, pckbc_slot_t);
#endif
#endif /* _KERNEL */

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.h,v 1.77 2003/10/23 08:30:21 chs Exp $ */
/* $NetBSD: pmap.h,v 1.78 2003/10/27 13:44:20 junyoung Exp $ */
/*
*
@ -338,30 +338,29 @@ extern int pmap_pg_g; /* do we support PG_G? */
* prototypes
*/
void pmap_activate __P((struct lwp *));
void pmap_bootstrap __P((vaddr_t));
boolean_t pmap_clear_attrs __P((struct vm_page *, int));
void pmap_deactivate __P((struct lwp *));
void pmap_page_remove __P((struct vm_page *));
void pmap_remove __P((struct pmap *, vaddr_t, vaddr_t));
boolean_t pmap_test_attrs __P((struct vm_page *, int));
void pmap_write_protect __P((struct pmap *, vaddr_t,
vaddr_t, vm_prot_t));
void pmap_activate(struct lwp *);
void pmap_bootstrap(vaddr_t);
boolean_t pmap_clear_attrs(struct vm_page *, int);
void pmap_deactivate(struct lwp *);
void pmap_page_remove (struct vm_page *);
void pmap_remove(struct pmap *, vaddr_t, vaddr_t);
boolean_t pmap_test_attrs(struct vm_page *, int);
void pmap_write_protect(struct pmap *, vaddr_t, vaddr_t, vm_prot_t);
int pmap_exec_fixup(struct vm_map *, struct trapframe *,
struct pcb *);
vaddr_t reserve_dumppages __P((vaddr_t)); /* XXX: not a pmap fn */
vaddr_t reserve_dumppages(vaddr_t); /* XXX: not a pmap fn */
void pmap_tlb_shootdown __P((pmap_t, vaddr_t, pt_entry_t, int32_t *));
void pmap_tlb_shootnow __P((int32_t));
void pmap_do_tlb_shootdown __P((struct cpu_info *));
void pmap_tlb_shootdown(pmap_t, vaddr_t, pt_entry_t, int32_t *);
void pmap_tlb_shootnow(int32_t);
void pmap_do_tlb_shootdown(struct cpu_info *);
#define PMAP_GROWKERNEL /* turn on pmap_growkernel interface */
/*
* Do idle page zero'ing uncached to avoid polluting the cache.
*/
boolean_t pmap_pageidlezero __P((paddr_t));
boolean_t pmap_pageidlezero(paddr_t);
#define PMAP_PAGEIDLEZERO(pa) pmap_pageidlezero((pa))
/*
@ -492,11 +491,11 @@ kvtopte(vaddr_t va)
#define pmap_cpu_has_pg_n() (cpu_class != CPUCLASS_386)
#define pmap_cpu_has_invlpg() (cpu_class != CPUCLASS_386)
paddr_t vtophys __P((vaddr_t));
vaddr_t pmap_map __P((vaddr_t, paddr_t, paddr_t, vm_prot_t));
paddr_t vtophys(vaddr_t);
vaddr_t pmap_map(vaddr_t, paddr_t, paddr_t, vm_prot_t);
#if defined(USER_LDT)
void pmap_ldt_cleanup __P((struct lwp *));
void pmap_ldt_cleanup(struct lwp *);
#define PMAP_FORK
#endif /* USER_LDT */

View File

@ -1,4 +1,4 @@
/* $NetBSD: proc.h,v 1.22 2003/08/20 21:48:45 fvdl Exp $ */
/* $NetBSD: proc.h,v 1.23 2003/10/27 13:44:20 junyoung Exp $ */
/*
* Copyright (c) 1991 Regents of the University of California.
@ -55,7 +55,7 @@ struct mdlwp {
struct mdproc {
/* Syscall handling function */
int md_flags;
void (*md_syscall) __P((struct trapframe *));
void (*md_syscall)(struct trapframe *);
__volatile int md_astpending; /* AST pending for this process */
};

View File

@ -1,4 +1,4 @@
/* $NetBSD: profile.h,v 1.17 2003/08/07 16:27:59 agc Exp $ */
/* $NetBSD: profile.h,v 1.18 2003/10/27 13:44:20 junyoung Exp $ */
/*
* Copyright (c) 1992, 1993
@ -43,7 +43,7 @@
#define MCOUNT \
MCOUNT_COMPAT \
extern void mcount __P((void)) __asm__(MCOUNT_ENTRY); \
extern void mcount(void) __asm__(MCOUNT_ENTRY); \
void \
mcount() \
{ \

View File

@ -1,4 +1,4 @@
/* $NetBSD: segments.h,v 1.38 2003/08/24 17:52:33 chs Exp $ */
/* $NetBSD: segments.h,v 1.39 2003/10/27 13:44:20 junyoung Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@ -167,17 +167,17 @@ struct region_descriptor {
extern union descriptor *gdt, *ldt;
extern struct gate_descriptor *idt;
void setgate __P((struct gate_descriptor *, void *, int, int, int, int));
void setregion __P((struct region_descriptor *, void *, size_t));
void setsegment __P((struct segment_descriptor *, void *, size_t, int, int,
int, int));
void setgdt __P((int, void *, size_t, int, int, int, int));
void unsetgate __P((struct gate_descriptor *));
void cpu_init_idt __P((void));
void setgate(struct gate_descriptor *, void *, int, int, int, int);
void setregion(struct region_descriptor *, void *, size_t);
void setsegment(struct segment_descriptor *, void *, size_t, int, int,
int, int);
void setgdt(int, void *, size_t, int, int, int, int);
void unsetgate(struct gate_descriptor *);
void cpu_init_idt(void);
int idt_vec_alloc __P((int, int));
void idt_vec_set __P((int, void (*)(void)));
void idt_vec_free __P((int));
int idt_vec_alloc(int, int);
void idt_vec_set(int, void (*)(void));
void idt_vec_free(int);
#endif /* _KERNEL */

View File

@ -1,4 +1,4 @@
/* $NetBSD: svr4_machdep.h,v 1.14 2001/12/21 07:02:23 jdolecek Exp $ */
/* $NetBSD: svr4_machdep.h,v 1.15 2003/10/27 13:44:20 junyoung Exp $ */
/*-
* Copyright (c) 1994 The NetBSD Foundation, Inc.
@ -128,6 +128,6 @@ struct svr4_ssd {
#define SVR4_TRAP_GETHRVTIME 4 /* implements gethrvtime(2) */
#define SVR4_TRAP_GETHRESTIME 5 /* clock_gettime(CLOCK_REALTIME, tp) */
void svr4_syscall_intern __P((struct proc *));
void svr4_syscall_intern(struct proc *);
#endif /* !_I386_SVR4_MACHDEP_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: sysarch.h,v 1.14 2003/09/11 19:17:07 christos Exp $ */
/* $NetBSD: sysarch.h,v 1.15 2003/10/27 13:44:20 junyoung Exp $ */
#ifndef _I386_SYSARCH_H_
#define _I386_SYSARCH_H_
@ -93,17 +93,17 @@ struct mtrr;
#include <sys/cdefs.h>
__BEGIN_DECLS
int i386_get_ldt __P((int, union descriptor *, int));
int i386_set_ldt __P((int, union descriptor *, int));
int i386_iopl __P((int));
int i386_get_ioperm __P((u_long *));
int i386_set_ioperm __P((u_long *));
int i386_pmc_info __P((struct i386_pmc_info_args *));
int i386_pmc_startstop __P((struct i386_pmc_startstop_args *));
int i386_pmc_read __P((struct i386_pmc_read_args *));
int i386_set_mtrr __P((struct mtrr *, int *));
int i386_get_mtrr __P((struct mtrr *, int *));
int sysarch __P((int, void *));
int i386_get_ldt(int, union descriptor *, int);
int i386_set_ldt(int, union descriptor *, int);
int i386_iopl(int);
int i386_get_ioperm(u_long *);
int i386_set_ioperm(u_long *);
int i386_pmc_info(struct i386_pmc_info_args *);
int i386_pmc_startstop(struct i386_pmc_startstop_args *);
int i386_pmc_read(struct i386_pmc_read_args *);
int i386_set_mtrr(struct mtrr *, int *);
int i386_get_mtrr(struct mtrr *, int *);
int sysarch(int, void *);
__END_DECLS
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: userret.h,v 1.4 2003/08/07 16:28:00 agc Exp $ */
/* $NetBSD: userret.h,v 1.5 2003/10/27 13:44:20 junyoung Exp $ */
/*-
* Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
@ -69,7 +69,7 @@
*
*/
static __inline void userret __P((register struct lwp *));
static __inline void userret(register struct lwp *);
/*
* Define the code needed before returning to user mode, for

View File

@ -1,4 +1,4 @@
/* $NetBSD: vm86.h,v 1.11 2003/09/11 19:17:07 christos Exp $ */
/* $NetBSD: vm86.h,v 1.12 2003/10/27 13:44:20 junyoung Exp $ */
#undef VM86_USE_VIF
@ -76,18 +76,18 @@ struct vm86_struct {
#define VCPU_586 5
#ifdef _KERNEL
int i386_vm86 __P((struct lwp *, char *, register_t *));
int i386_vm86(struct lwp *, char *, register_t *);
#ifdef COMPAT_16
int compat_16_i386_vm86 __P((struct lwp *, char *, register_t *));
int compat_16_i386_vm86(struct lwp *, char *, register_t *);
#endif
void vm86_gpfault __P((struct lwp *, int));
void vm86_return __P((struct lwp *, int));
static __inline void clr_vif __P((struct lwp *));
static __inline void set_vif __P((struct lwp *));
static __inline void set_vflags __P((struct lwp *, int));
static __inline int get_vflags __P((struct lwp *));
static __inline void set_vflags_short __P((struct lwp *, int));
static __inline int get_vflags_short __P((struct lwp *));
void vm86_gpfault(struct lwp *, int);
void vm86_return(struct lwp *, int);
static __inline void clr_vif(struct lwp *);
static __inline void set_vif(struct lwp *);
static __inline void set_vflags(struct lwp *, int);
static __inline int get_vflags(struct lwp *);
static __inline void set_vflags_short(struct lwp *, int);
static __inline int get_vflags_short(struct lwp *);
static __inline void
clr_vif(l)
@ -180,5 +180,5 @@ get_vflags_short(l)
return (flags);
}
#else
int i386_vm86 __P((struct vm86_struct *vmcp));
int i386_vm86(struct vm86_struct *vmcp);
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: apicvar.h,v 1.1 2003/02/26 21:26:10 fvdl Exp $ */
/* $NetBSD: apicvar.h,v 1.2 2003/10/27 13:43:48 junyoung Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@ -52,6 +52,6 @@ struct apic_attach_args {
int apic_vecbase;
};
void apic_format_redir __P((char *, char *, int, u_int32_t, u_int32_t));
void apic_format_redir(char *, char *, int, u_int32_t, u_int32_t);
#endif /* !_X86_APICVAR_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: bios32.h,v 1.1 2003/02/26 21:26:10 fvdl Exp $ */
/* $NetBSD: bios32.h,v 1.2 2003/10/27 13:43:48 junyoung Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@ -80,5 +80,5 @@ typedef struct bios32_entry *bios32_entry_t;
#define BIOS32_MAKESIG(a, b, c, d) \
((a) | ((b) << 8) | ((c) << 16) | ((d) << 24))
void bios32_init __P((void));
int bios32_service __P((u_int32_t, bios32_entry_t, bios32_entry_info_t));
void bios32_init(void);
int bios32_service(u_int32_t, bios32_entry_t, bios32_entry_info_t);

View File

@ -1,4 +1,4 @@
/* $NetBSD: bootinfo.h,v 1.3 2003/10/08 04:25:46 lukem Exp $ */
/* $NetBSD: bootinfo.h,v 1.4 2003/10/27 13:43:48 junyoung Exp $ */
/*
* Copyright (c) 1997
@ -149,7 +149,7 @@ struct btinfo_biosgeom {
};
#ifdef _KERNEL
void *lookup_bootinfo __P((int));
void *lookup_bootinfo(int);
#endif
#endif /* _LOCORE */

View File

@ -1,4 +1,4 @@
/* $NetBSD: bus.h,v 1.3 2003/06/15 23:09:08 fvdl Exp $ */
/* $NetBSD: bus.h,v 1.4 2003/10/27 13:43:48 junyoung Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998, 2001 The NetBSD Foundation, Inc.
@ -120,8 +120,8 @@ typedef int bus_space_tag_t;
typedef u_long bus_space_handle_t;
/*
* int bus_space_map __P((bus_space_tag_t t, bus_addr_t addr,
* bus_size_t size, int flags, bus_space_handle_t *bshp));
* int bus_space_map(bus_space_tag_t t, bus_addr_t addr,
* bus_size_t size, int flags, bus_space_handle_t *bshp);
*
* Map a region of bus space.
*/
@ -130,76 +130,76 @@ typedef u_long bus_space_handle_t;
#define BUS_SPACE_MAP_LINEAR 0x02
#define BUS_SPACE_MAP_PREFETCHABLE 0x04
int x86_memio_map __P((bus_space_tag_t t, bus_addr_t addr,
bus_size_t size, int flags, bus_space_handle_t *bshp));
int x86_memio_map(bus_space_tag_t t, bus_addr_t addr,
bus_size_t size, int flags, bus_space_handle_t *bshp);
/* like map, but without extent map checking/allocation */
int _x86_memio_map __P((bus_space_tag_t t, bus_addr_t addr,
bus_size_t size, int flags, bus_space_handle_t *bshp));
int _x86_memio_map(bus_space_tag_t t, bus_addr_t addr,
bus_size_t size, int flags, bus_space_handle_t *bshp);
#define bus_space_map(t, a, s, f, hp) \
x86_memio_map((t), (a), (s), (f), (hp))
/*
* int bus_space_unmap __P((bus_space_tag_t t,
* bus_space_handle_t bsh, bus_size_t size));
* int bus_space_unmap(bus_space_tag_t t,
* bus_space_handle_t bsh, bus_size_t size);
*
* Unmap a region of bus space.
*/
void x86_memio_unmap __P((bus_space_tag_t t, bus_space_handle_t bsh,
bus_size_t size));
void _x86_memio_unmap __P((bus_space_tag_t t, bus_space_handle_t bsh,
bus_size_t size, bus_addr_t *));
void x86_memio_unmap(bus_space_tag_t t, bus_space_handle_t bsh,
bus_size_t size);
void _x86_memio_unmap(bus_space_tag_t t, bus_space_handle_t bsh,
bus_size_t size, bus_addr_t *);
#define bus_space_unmap(t, h, s) \
x86_memio_unmap((t), (h), (s))
/*
* int bus_space_subregion __P((bus_space_tag_t t,
* int bus_space_subregion(bus_space_tag_t t,
* bus_space_handle_t bsh, bus_size_t offset, bus_size_t size,
* bus_space_handle_t *nbshp));
* bus_space_handle_t *nbshp);
*
* Get a new handle for a subregion of an already-mapped area of bus space.
*/
int x86_memio_subregion __P((bus_space_tag_t t, bus_space_handle_t bsh,
bus_size_t offset, bus_size_t size, bus_space_handle_t *nbshp));
int x86_memio_subregion(bus_space_tag_t t, bus_space_handle_t bsh,
bus_size_t offset, bus_size_t size, bus_space_handle_t *nbshp);
#define bus_space_subregion(t, h, o, s, nhp) \
x86_memio_subregion((t), (h), (o), (s), (nhp))
/*
* int bus_space_alloc __P((bus_space_tag_t t, bus_addr_t rstart,
* int bus_space_alloc(bus_space_tag_t t, bus_addr_t rstart,
* bus_addr_t rend, bus_size_t size, bus_size_t align,
* bus_size_t boundary, int flags, bus_addr_t *addrp,
* bus_space_handle_t *bshp));
* bus_space_handle_t *bshp);
*
* Allocate a region of bus space.
*/
int x86_memio_alloc __P((bus_space_tag_t t, bus_addr_t rstart,
int x86_memio_alloc(bus_space_tag_t t, bus_addr_t rstart,
bus_addr_t rend, bus_size_t size, bus_size_t align,
bus_size_t boundary, int flags, bus_addr_t *addrp,
bus_space_handle_t *bshp));
bus_space_handle_t *bshp);
#define bus_space_alloc(t, rs, re, s, a, b, f, ap, hp) \
x86_memio_alloc((t), (rs), (re), (s), (a), (b), (f), (ap), (hp))
/*
* int bus_space_free __P((bus_space_tag_t t,
* bus_space_handle_t bsh, bus_size_t size));
* int bus_space_free(bus_space_tag_t t,
* bus_space_handle_t bsh, bus_size_t size);
*
* Free a region of bus space.
*/
void x86_memio_free __P((bus_space_tag_t t, bus_space_handle_t bsh,
bus_size_t size));
void x86_memio_free(bus_space_tag_t t, bus_space_handle_t bsh,
bus_size_t size);
#define bus_space_free(t, h, s) \
x86_memio_free((t), (h), (s))
/*
* void *bus_space_vaddr __P((bus_space_tag_t, bus_space_handle_t));
* void *bus_space_vaddr(bus_space_tag_t, bus_space_handle_t);
*
* Get the kernel virtual address for the mapped bus space.
* Only allowed for regions mapped with BUS_SPACE_MAP_LINEAR.
@ -209,21 +209,20 @@ void x86_memio_free __P((bus_space_tag_t t, bus_space_handle_t bsh,
((t) == X86_BUS_SPACE_MEM ? (void *)(h) : (void *)0)
/*
* paddr_t bus_space_mmap __P((bus_space_tag_t t, bus_addr_t base,
* off_t offset, int prot, int flags));
* paddr_t bus_space_mmap(bus_space_tag_t t, bus_addr_t base,
* off_t offset, int prot, int flags);
*
* Mmap an area of bus space.
*/
paddr_t x86_memio_mmap __P((bus_space_tag_t, bus_addr_t, off_t,
int, int));
paddr_t x86_memio_mmap(bus_space_tag_t, bus_addr_t, off_t, int, int);
#define bus_space_mmap(t, b, o, p, f) \
x86_memio_mmap((t), (b), (o), (p), (f))
/*
* u_intN_t bus_space_read_N __P((bus_space_tag_t tag,
* bus_space_handle_t bsh, bus_size_t offset));
* u_intN_t bus_space_read_N(bus_space_tag_t tag,
* bus_space_handle_t bsh, bus_size_t offset);
*
* Read a 1, 2, 4, or 8 byte quantity from bus space
* described by tag/handle/offset.
@ -254,9 +253,9 @@ paddr_t x86_memio_mmap __P((bus_space_tag_t, bus_addr_t, off_t,
#endif
/*
* void bus_space_read_multi_N __P((bus_space_tag_t tag,
* void bus_space_read_multi_N(bus_space_tag_t tag,
* bus_space_handle_t bsh, bus_size_t offset,
* u_intN_t *addr, size_t count));
* u_intN_t *addr, size_t count);
*
* Read `count' 1, 2, 4, or 8 byte quantities from bus space
* described by tag/handle/offset and copy into buffer provided.
@ -337,9 +336,9 @@ do { \
#endif
/*
* void bus_space_read_region_N __P((bus_space_tag_t tag,
* void bus_space_read_region_N(bus_space_tag_t tag,
* bus_space_handle_t bsh, bus_size_t offset,
* u_intN_t *addr, size_t count));
* u_intN_t *addr, size_t count);
*
* Read `count' 1, 2, 4, or 8 byte quantities from bus space
* described by tag/handle and starting at `offset' and copy into
@ -454,9 +453,9 @@ do { \
#endif
/*
* void bus_space_write_N __P((bus_space_tag_t tag,
* void bus_space_write_N(bus_space_tag_t tag,
* bus_space_handle_t bsh, bus_size_t offset,
* u_intN_t value));
* u_intN_t value);
*
* Write the 1, 2, 4, or 8 byte value `value' to bus space
* described by tag/handle/offset.
@ -499,9 +498,9 @@ do { \
#endif
/*
* void bus_space_write_multi_N __P((bus_space_tag_t tag,
* void bus_space_write_multi_N(bus_space_tag_t tag,
* bus_space_handle_t bsh, bus_size_t offset,
* const u_intN_t *addr, size_t count));
* const u_intN_t *addr, size_t count);
*
* Write `count' 1, 2, 4, or 8 byte quantities from the buffer
* provided to bus space described by tag/handle/offset.
@ -580,9 +579,9 @@ do { \
#endif
/*
* void bus_space_write_region_N __P((bus_space_tag_t tag,
* void bus_space_write_region_N(bus_space_tag_t tag,
* bus_space_handle_t bsh, bus_size_t offset,
* const u_intN_t *addr, size_t count));
* const u_intN_t *addr, size_t count);
*
* Write `count' 1, 2, 4, or 8 byte quantities from the buffer provided
* to bus space described by tag/handle starting at `offset'.
@ -697,20 +696,20 @@ do { \
#endif
/*
* void bus_space_set_multi_N __P((bus_space_tag_t tag,
* void bus_space_set_multi_N(bus_space_tag_t tag,
* bus_space_handle_t bsh, bus_size_t offset, u_intN_t val,
* size_t count));
* size_t count);
*
* Write the 1, 2, 4, or 8 byte value `val' to bus space described
* by tag/handle/offset `count' times.
*/
static __inline void x86_memio_set_multi_1 __P((bus_space_tag_t,
bus_space_handle_t, bus_size_t, u_int8_t, size_t));
static __inline void x86_memio_set_multi_2 __P((bus_space_tag_t,
bus_space_handle_t, bus_size_t, u_int16_t, size_t));
static __inline void x86_memio_set_multi_4 __P((bus_space_tag_t,
bus_space_handle_t, bus_size_t, u_int32_t, size_t));
static __inline void x86_memio_set_multi_1(bus_space_tag_t,
bus_space_handle_t, bus_size_t, u_int8_t, size_t);
static __inline void x86_memio_set_multi_2(bus_space_tag_t,
bus_space_handle_t, bus_size_t, u_int16_t, size_t);
static __inline void x86_memio_set_multi_4(bus_space_tag_t,
bus_space_handle_t, bus_size_t, u_int32_t, size_t);
#define bus_space_set_multi_1(t, h, o, v, c) \
x86_memio_set_multi_1((t), (h), (o), (v), (c))
@ -774,20 +773,20 @@ x86_memio_set_multi_4(bus_space_tag_t t, bus_space_handle_t h, bus_size_t o,
#endif
/*
* void bus_space_set_region_N __P((bus_space_tag_t tag,
* void bus_space_set_region_N(bus_space_tag_t tag,
* bus_space_handle_t bsh, bus_size_t offset, u_intN_t val,
* size_t count));
* size_t count);
*
* Write `count' 1, 2, 4, or 8 byte value `val' to bus space described
* by tag/handle starting at `offset'.
*/
static __inline void x86_memio_set_region_1 __P((bus_space_tag_t,
bus_space_handle_t, bus_size_t, u_int8_t, size_t));
static __inline void x86_memio_set_region_2 __P((bus_space_tag_t,
bus_space_handle_t, bus_size_t, u_int16_t, size_t));
static __inline void x86_memio_set_region_4 __P((bus_space_tag_t,
bus_space_handle_t, bus_size_t, u_int32_t, size_t));
static __inline void x86_memio_set_region_1(bus_space_tag_t,
bus_space_handle_t, bus_size_t, u_int8_t, size_t);
static __inline void x86_memio_set_region_2(bus_space_tag_t,
bus_space_handle_t, bus_size_t, u_int16_t, size_t);
static __inline void x86_memio_set_region_4(bus_space_tag_t,
bus_space_handle_t, bus_size_t, u_int32_t, size_t);
#define bus_space_set_region_1(t, h, o, v, c) \
x86_memio_set_region_1((t), (h), (o), (v), (c))
@ -851,24 +850,24 @@ x86_memio_set_region_4(bus_space_tag_t t, bus_space_handle_t h, bus_size_t o,
#endif
/*
* void bus_space_copy_region_N __P((bus_space_tag_t tag,
* void bus_space_copy_region_N(bus_space_tag_t tag,
* bus_space_handle_t bsh1, bus_size_t off1,
* bus_space_handle_t bsh2, bus_size_t off2,
* size_t count));
* size_t count);
*
* Copy `count' 1, 2, 4, or 8 byte values from bus space starting
* at tag/bsh1/off1 to bus space starting at tag/bsh2/off2.
*/
static __inline void x86_memio_copy_region_1 __P((bus_space_tag_t,
static __inline void x86_memio_copy_region_1(bus_space_tag_t,
bus_space_handle_t, bus_size_t, bus_space_handle_t,
bus_size_t, size_t));
static __inline void x86_memio_copy_region_2 __P((bus_space_tag_t,
bus_size_t, size_t);
static __inline void x86_memio_copy_region_2(bus_space_tag_t,
bus_space_handle_t, bus_size_t, bus_space_handle_t,
bus_size_t, size_t));
static __inline void x86_memio_copy_region_4 __P((bus_space_tag_t,
bus_size_t, size_t);
static __inline void x86_memio_copy_region_4(bus_space_tag_t,
bus_space_handle_t, bus_size_t, bus_space_handle_t,
bus_size_t, size_t));
bus_size_t, size_t);
#define bus_space_copy_region_1(t, h1, o1, h2, o2, c) \
x86_memio_copy_region_1((t), (h1), (o1), (h2), (o2), (c))
@ -1000,9 +999,9 @@ x86_memio_copy_region_4(bus_space_tag_t t,
/*
* Bus read/write barrier methods.
*
* void bus_space_barrier __P((bus_space_tag_t tag,
* void bus_space_barrier(bus_space_tag_t tag,
* bus_space_handle_t bsh, bus_size_t offset,
* bus_size_t len, int flags));
* bus_size_t len, int flags);
*
* Note: the x86 does not currently require barriers, but we must
* provide the flags to MI code.
@ -1077,38 +1076,37 @@ struct x86_bus_dma_tag {
bus_addr_t _bounce_thresh;
bus_addr_t _bounce_alloc_lo;
bus_addr_t _bounce_alloc_hi;
int (*_may_bounce) __P((bus_dma_tag_t, bus_dmamap_t, int, int *));
int (*_may_bounce)(bus_dma_tag_t, bus_dmamap_t, int, int *);
/*
* DMA mapping methods.
*/
int (*_dmamap_create) __P((bus_dma_tag_t, bus_size_t, int,
bus_size_t, bus_size_t, int, bus_dmamap_t *));
void (*_dmamap_destroy) __P((bus_dma_tag_t, bus_dmamap_t));
int (*_dmamap_load) __P((bus_dma_tag_t, bus_dmamap_t, void *,
bus_size_t, struct proc *, int));
int (*_dmamap_load_mbuf) __P((bus_dma_tag_t, bus_dmamap_t,
struct mbuf *, int));
int (*_dmamap_load_uio) __P((bus_dma_tag_t, bus_dmamap_t,
struct uio *, int));
int (*_dmamap_load_raw) __P((bus_dma_tag_t, bus_dmamap_t,
bus_dma_segment_t *, int, bus_size_t, int));
void (*_dmamap_unload) __P((bus_dma_tag_t, bus_dmamap_t));
void (*_dmamap_sync) __P((bus_dma_tag_t, bus_dmamap_t,
bus_addr_t, bus_size_t, int));
int (*_dmamap_create)(bus_dma_tag_t, bus_size_t, int,
bus_size_t, bus_size_t, int, bus_dmamap_t *);
void (*_dmamap_destroy)(bus_dma_tag_t, bus_dmamap_t);
int (*_dmamap_load)(bus_dma_tag_t, bus_dmamap_t, void *,
bus_size_t, struct proc *, int);
int (*_dmamap_load_mbuf)(bus_dma_tag_t, bus_dmamap_t,
struct mbuf *, int);
int (*_dmamap_load_uio)(bus_dma_tag_t, bus_dmamap_t,
struct uio *, int);
int (*_dmamap_load_raw)(bus_dma_tag_t, bus_dmamap_t,
bus_dma_segment_t *, int, bus_size_t, int);
void (*_dmamap_unload)(bus_dma_tag_t, bus_dmamap_t);
void (*_dmamap_sync)(bus_dma_tag_t, bus_dmamap_t,
bus_addr_t, bus_size_t, int);
/*
* DMA memory utility functions.
*/
int (*_dmamem_alloc) __P((bus_dma_tag_t, bus_size_t, bus_size_t,
bus_size_t, bus_dma_segment_t *, int, int *, int));
void (*_dmamem_free) __P((bus_dma_tag_t,
bus_dma_segment_t *, int));
int (*_dmamem_map) __P((bus_dma_tag_t, bus_dma_segment_t *,
int, size_t, caddr_t *, int));
void (*_dmamem_unmap) __P((bus_dma_tag_t, caddr_t, size_t));
paddr_t (*_dmamem_mmap) __P((bus_dma_tag_t, bus_dma_segment_t *,
int, off_t, int, int));
int (*_dmamem_alloc)(bus_dma_tag_t, bus_size_t, bus_size_t,
bus_size_t, bus_dma_segment_t *, int, int *, int);
void (*_dmamem_free)(bus_dma_tag_t, bus_dma_segment_t *, int);
int (*_dmamem_map)(bus_dma_tag_t, bus_dma_segment_t *,
int, size_t, caddr_t *, int);
void (*_dmamem_unmap)(bus_dma_tag_t, caddr_t, size_t);
paddr_t (*_dmamem_mmap)(bus_dma_tag_t, bus_dma_segment_t *,
int, off_t, int, int);
};
#define bus_dmamap_create(t, s, n, m, b, f, p) \
@ -1167,37 +1165,36 @@ struct x86_bus_dmamap {
};
#ifdef _X86_BUS_DMA_PRIVATE
int _bus_dmamap_create __P((bus_dma_tag_t, bus_size_t, int, bus_size_t,
bus_size_t, int, bus_dmamap_t *));
void _bus_dmamap_destroy __P((bus_dma_tag_t, bus_dmamap_t));
int _bus_dmamap_load __P((bus_dma_tag_t, bus_dmamap_t, void *,
bus_size_t, struct proc *, int));
int _bus_dmamap_load_mbuf __P((bus_dma_tag_t, bus_dmamap_t,
struct mbuf *, int));
int _bus_dmamap_load_uio __P((bus_dma_tag_t, bus_dmamap_t,
struct uio *, int));
int _bus_dmamap_load_raw __P((bus_dma_tag_t, bus_dmamap_t,
bus_dma_segment_t *, int, bus_size_t, int));
void _bus_dmamap_unload __P((bus_dma_tag_t, bus_dmamap_t));
void _bus_dmamap_sync __P((bus_dma_tag_t, bus_dmamap_t, bus_addr_t,
bus_size_t, int));
int _bus_dmamap_create(bus_dma_tag_t, bus_size_t, int, bus_size_t,
bus_size_t, int, bus_dmamap_t *);
void _bus_dmamap_destroy(bus_dma_tag_t, bus_dmamap_t);
int _bus_dmamap_load(bus_dma_tag_t, bus_dmamap_t, void *,
bus_size_t, struct proc *, int);
int _bus_dmamap_load_mbuf(bus_dma_tag_t, bus_dmamap_t,
struct mbuf *, int);
int _bus_dmamap_load_uio(bus_dma_tag_t, bus_dmamap_t,
struct uio *, int);
int _bus_dmamap_load_raw(bus_dma_tag_t, bus_dmamap_t,
bus_dma_segment_t *, int, bus_size_t, int);
void _bus_dmamap_unload(bus_dma_tag_t, bus_dmamap_t);
void _bus_dmamap_sync(bus_dma_tag_t, bus_dmamap_t, bus_addr_t,
bus_size_t, int);
int _bus_dmamem_alloc __P((bus_dma_tag_t tag, bus_size_t size,
int _bus_dmamem_alloc(bus_dma_tag_t tag, bus_size_t size,
bus_size_t alignment, bus_size_t boundary,
bus_dma_segment_t *segs, int nsegs, int *rsegs, int flags));
void _bus_dmamem_free __P((bus_dma_tag_t tag, bus_dma_segment_t *segs,
int nsegs));
int _bus_dmamem_map __P((bus_dma_tag_t tag, bus_dma_segment_t *segs,
int nsegs, size_t size, caddr_t *kvap, int flags));
void _bus_dmamem_unmap __P((bus_dma_tag_t tag, caddr_t kva,
size_t size));
paddr_t _bus_dmamem_mmap __P((bus_dma_tag_t tag, bus_dma_segment_t *segs,
int nsegs, off_t off, int prot, int flags));
bus_dma_segment_t *segs, int nsegs, int *rsegs, int flags);
void _bus_dmamem_free(bus_dma_tag_t tag, bus_dma_segment_t *segs,
int nsegs);
int _bus_dmamem_map(bus_dma_tag_t tag, bus_dma_segment_t *segs,
int nsegs, size_t size, caddr_t *kvap, int flags);
void _bus_dmamem_unmap(bus_dma_tag_t tag, caddr_t kva, size_t size);
paddr_t _bus_dmamem_mmap(bus_dma_tag_t tag, bus_dma_segment_t *segs,
int nsegs, off_t off, int prot, int flags);
int _bus_dmamem_alloc_range __P((bus_dma_tag_t tag, bus_size_t size,
int _bus_dmamem_alloc_range(bus_dma_tag_t tag, bus_size_t size,
bus_size_t alignment, bus_size_t boundary,
bus_dma_segment_t *segs, int nsegs, int *rsegs, int flags,
paddr_t low, paddr_t high));
paddr_t low, paddr_t high);
int _bus_dma_alloc_bouncebuf(bus_dma_tag_t t, bus_dmamap_t map,
bus_size_t size, int flags);

View File

@ -1,4 +1,4 @@
/* $NetBSD: cpuvar.h,v 1.2 2003/06/23 11:01:52 martin Exp $ */
/* $NetBSD: cpuvar.h,v 1.3 2003/10/27 13:43:48 junyoung Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@ -71,9 +71,9 @@
*/
struct cpu_functions {
int (*start) __P((struct cpu_info *));
int (*stop) __P((struct cpu_info *));
void (*cleanup) __P((struct cpu_info *));
int (*start)(struct cpu_info *);
int (*stop)(struct cpu_info *);
void (*cleanup)(struct cpu_info *);
};
extern struct cpu_functions mp_cpu_funcs;
@ -99,12 +99,12 @@ struct cpu_attach_args {
extern u_int32_t cpus_running;
#endif
int x86_ipi __P((int,int,int));
void x86_self_ipi __P((int));
int x86_ipi_init __P((int));
int x86_ipi(int,int,int);
void x86_self_ipi(int);
int x86_ipi_init(int);
void identifycpu __P((struct cpu_info *));
void cpu_init __P((struct cpu_info *));
void cpu_init_first __P((void));
void identifycpu(struct cpu_info *);
void cpu_init(struct cpu_info *);
void cpu_init_first(void);
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: i82093var.h,v 1.1 2003/02/26 21:26:10 fvdl Exp $ */
/* $NetBSD: i82093var.h,v 1.2 2003/10/27 13:43:48 junyoung Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@ -85,8 +85,8 @@ struct ioapic_softc {
#define APIC_IRQ_ISLEGACY(x) (!((x) & APIC_INT_VIA_APIC))
#define APIC_IRQ_LEGACY_IRQ(x) ((x) & 0xff)
void *apic_intr_establish __P((int, int, int, int (*)(void *), void *));
void apic_intr_disestablish __P((void *));
void *apic_intr_establish(int, int, int, int (*)(void *), void *);
void apic_intr_disestablish(void *);
void ioapic_print_redir(struct ioapic_softc *, char *, int);
void ioapic_format_redir(char *, char *, int, u_int32_t, u_int32_t);

View File

@ -1,4 +1,4 @@
/* $NetBSD: i82489var.h,v 1.2 2003/07/19 04:52:18 lukem Exp $ */
/* $NetBSD: i82489var.h,v 1.3 2003/10/27 13:43:48 junyoung Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -43,8 +43,8 @@
* Software definitions belonging to Local APIC driver.
*/
static __inline__ u_int32_t i82489_readreg __P((int));
static __inline__ void i82489_writereg __P((int, u_int32_t));
static __inline__ u_int32_t i82489_readreg(int);
static __inline__ void i82489_writereg(int, u_int32_t);
#ifdef _KERNEL
extern volatile u_int32_t local_apic[];
@ -113,10 +113,10 @@ extern void Xintr_lapic5(void);
struct cpu_info;
extern void lapic_boot_init __P((paddr_t));
extern void lapic_set_lvt __P((void));
extern void lapic_enable __P((void));
extern void lapic_calibrate_timer __P((struct cpu_info *ci));
extern void lapic_initclocks __P((void));
extern void lapic_boot_init(paddr_t);
extern void lapic_set_lvt(void);
extern void lapic_enable(void);
extern void lapic_calibrate_timer(struct cpu_info *ci);
extern void lapic_initclocks(void);
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: intr.h,v 1.8 2003/10/16 22:56:29 fvdl Exp $ */
/* $NetBSD: intr.h,v 1.9 2003/10/27 13:43:48 junyoung Exp $ */
/*-
* Copyright (c) 1998, 2001 The NetBSD Foundation, Inc.
@ -111,11 +111,11 @@ struct intrhand {
#define IMASK(ci,level) (ci)->ci_imask[(level)]
#define IUNMASK(ci,level) (ci)->ci_iunmask[(level)]
extern void Xspllower __P((int));
extern void Xspllower(int);
static __inline int splraise __P((int));
static __inline void spllower __P((int));
static __inline void softintr __P((int));
static __inline int splraise(int);
static __inline void spllower(int);
static __inline void softintr(int);
/*
* Convert spl level to local APIC level

View File

@ -1,4 +1,4 @@
/* $NetBSD: lock.h,v 1.4 2003/10/26 11:15:16 yamt Exp $ */
/* $NetBSD: lock.h,v 1.5 2003/10/27 13:43:48 junyoung Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@ -61,22 +61,22 @@
#ifdef LOCKDEBUG
extern void __cpu_simple_lock_init __P((__cpu_simple_lock_t *));
extern void __cpu_simple_lock __P((__cpu_simple_lock_t *));
extern int __cpu_simple_lock_try __P((__cpu_simple_lock_t *));
extern void __cpu_simple_unlock __P((__cpu_simple_lock_t *));
extern void __cpu_simple_lock_init(__cpu_simple_lock_t *);
extern void __cpu_simple_lock(__cpu_simple_lock_t *);
extern int __cpu_simple_lock_try(__cpu_simple_lock_t *);
extern void __cpu_simple_unlock(__cpu_simple_lock_t *);
#else
#include <machine/atomic.h>
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 void __cpu_simple_lock __P((__cpu_simple_lock_t *))
static __inline void __cpu_simple_lock(__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__));
static __inline void

View File

@ -1,4 +1,4 @@
/* $NetBSD: mpconfig.h,v 1.5 2003/10/16 22:56:29 fvdl Exp $ */
/* $NetBSD: mpconfig.h,v 1.6 2003/10/27 13:43:48 junyoung Exp $ */
/*
* Definitions originally from the mpbios code, but now used for ACPI
@ -39,8 +39,8 @@ struct mp_bus
{
char *mb_name; /* XXX bus name */
int mb_idx; /* XXX bus index */
void (*mb_intr_print) __P((int));
void (*mb_intr_cfg) __P((const struct mpbios_int *, u_int32_t *));
void (*mb_intr_print)(int);
void (*mb_intr_cfg)(const struct mpbios_int *, u_int32_t *);
struct mp_intr_map *mb_intrs;
u_int32_t mb_data; /* random bus-specific datum. */
int mb_configured; /* has been autoconfigured */