summaryrefslogtreecommitdiffstats
path: root/sys/alpha/include
diff options
context:
space:
mode:
Diffstat (limited to 'sys/alpha/include')
-rw-r--r--sys/alpha/include/bootinfo.h6
-rw-r--r--sys/alpha/include/clock.h6
-rw-r--r--sys/alpha/include/cpu.h72
-rw-r--r--sys/alpha/include/cpuconf.h48
-rw-r--r--sys/alpha/include/db_machdep.h22
-rw-r--r--sys/alpha/include/float.h2
-rw-r--r--sys/alpha/include/md_var.h12
-rw-r--r--sys/alpha/include/pmap.h26
-rw-r--r--sys/alpha/include/profile.h8
-rw-r--r--sys/alpha/include/prom.h26
-rw-r--r--sys/alpha/include/reg.h18
-rw-r--r--sys/alpha/include/sysarch.h2
12 files changed, 124 insertions, 124 deletions
diff --git a/sys/alpha/include/bootinfo.h b/sys/alpha/include/bootinfo.h
index 86b7e7a..07484b2 100644
--- a/sys/alpha/include/bootinfo.h
+++ b/sys/alpha/include/bootinfo.h
@@ -50,9 +50,9 @@ struct bootinfo_v1 {
char booted_kernel[64]; /* 80: name of booted kernel */
void *hwrpb; /* 144: hwrpb pointer (BEVA) */
u_long hwrpbsize; /* 152: size of hwrpb data */
- int (*cngetc) __P((void)); /* 160: console getc pointer */
- void (*cnputc) __P((int)); /* 168: console putc pointer */
- void (*cnpollc) __P((int)); /* 176: console pollc pointer */
+ int (*cngetc)(void); /* 160: console getc pointer */
+ void (*cnputc)(int); /* 168: console putc pointer */
+ void (*cnpollc)(int); /* 176: console pollc pointer */
u_long pad[6]; /* 184: rsvd for future use */
char *envp; /* 232: start of environment */
u_long kernend; /* 240: end of kernel */
diff --git a/sys/alpha/include/clock.h b/sys/alpha/include/clock.h
index 9e4ad71..b3f2e45 100644
--- a/sys/alpha/include/clock.h
+++ b/sys/alpha/include/clock.h
@@ -15,9 +15,9 @@ extern int disable_rtc_set;
extern int wall_cmos_clock;
extern int adjkerntz;
-int sysbeep __P((int pitch, int period));
-int acquire_timer2 __P((int mode));
-int release_timer2 __P((void));
+int sysbeep(int pitch, int period);
+int acquire_timer2(int mode);
+int release_timer2(void);
#endif
diff --git a/sys/alpha/include/cpu.h b/sys/alpha/include/cpu.h
index e5fd400..4abb738 100644
--- a/sys/alpha/include/cpu.h
+++ b/sys/alpha/include/cpu.h
@@ -107,42 +107,42 @@ struct trapframe;
extern struct rpb *hwrpb;
extern volatile int mc_expected, mc_received;
-void XentArith __P((u_int64_t, u_int64_t, u_int64_t)); /* MAGIC */
-void XentIF __P((u_int64_t, u_int64_t, u_int64_t)); /* MAGIC */
-void XentInt __P((u_int64_t, u_int64_t, u_int64_t)); /* MAGIC */
-void XentMM __P((u_int64_t, u_int64_t, u_int64_t)); /* MAGIC */
-void XentRestart __P((void)); /* MAGIC */
-void XentSys __P((u_int64_t, u_int64_t, u_int64_t)); /* MAGIC */
-void XentUna __P((u_int64_t, u_int64_t, u_int64_t)); /* MAGIC */
-void alpha_init __P((u_long, u_long, u_long, u_long, u_long));
-int alpha_pa_access __P((u_long));
-void alpha_fpstate_check __P((struct thread *p));
-void alpha_fpstate_save __P((struct thread *p, int write));
-void alpha_fpstate_drop __P((struct thread *p));
-void alpha_fpstate_switch __P((struct thread *p));
-int badaddr __P((void *, size_t));
-int badaddr_read __P((void *, size_t, void *));
-u_int64_t console_restart __P((u_int64_t, u_int64_t, u_int64_t));
-void dumpconf __P((void));
-void exception_return __P((void)); /* MAGIC */
-void frametoreg __P((struct trapframe *, struct reg *));
-long fswintrberr __P((void)); /* MAGIC */
-void init_prom_interface __P((struct rpb*));
-void interrupt
- __P((unsigned long, unsigned long, unsigned long, struct trapframe *));
-void machine_check
- __P((unsigned long, struct trapframe *, unsigned long, unsigned long));
-u_int64_t hwrpb_checksum __P((void));
-void hwrpb_restart_setup __P((void));
-void regdump __P((struct trapframe *));
-void regtoframe __P((struct reg *, struct trapframe *));
-void savectx __P((struct pcb *));
-void set_iointr __P((void (*)(void *, unsigned long)));
-void switch_exit __P((struct thread *)); /* MAGIC */
-void fork_trampoline __P((void)); /* MAGIC */
-void syscall __P((u_int64_t, struct trapframe *));
-void trap __P((unsigned long, unsigned long, unsigned long, unsigned long,
- struct trapframe *));
+void XentArith(u_int64_t, u_int64_t, u_int64_t); /* MAGIC */
+void XentIF(u_int64_t, u_int64_t, u_int64_t); /* MAGIC */
+void XentInt(u_int64_t, u_int64_t, u_int64_t); /* MAGIC */
+void XentMM(u_int64_t, u_int64_t, u_int64_t); /* MAGIC */
+void XentRestart(void); /* MAGIC */
+void XentSys(u_int64_t, u_int64_t, u_int64_t); /* MAGIC */
+void XentUna(u_int64_t, u_int64_t, u_int64_t); /* MAGIC */
+void alpha_init(u_long, u_long, u_long, u_long, u_long);
+int alpha_pa_access(u_long);
+void alpha_fpstate_check(struct thread *p);
+void alpha_fpstate_save(struct thread *p, int write);
+void alpha_fpstate_drop(struct thread *p);
+void alpha_fpstate_switch(struct thread *p);
+int badaddr (void *, size_t);
+int badaddr_read(void *, size_t, void *);
+u_int64_t console_restart(u_int64_t, u_int64_t, u_int64_t);
+void dumpconf(void);
+void exception_return(void); /* MAGIC */
+void frametoreg(struct trapframe *, struct reg *);
+long fswintrberr(void); /* MAGIC */
+void init_prom_interface(struct rpb*);
+void interrupt(unsigned long, unsigned long, unsigned long,
+ struct trapframe *);
+void machine_check(unsigned long, struct trapframe *, unsigned long,
+ unsigned long);
+u_int64_t hwrpb_checksum(void);
+void hwrpb_restart_setup(void);
+void regdump(struct trapframe *);
+void regtoframe(struct reg *, struct trapframe *);
+void savectx(struct pcb *);
+void set_iointr(void (*)(void *, unsigned long));
+void switch_exit(struct thread *); /* MAGIC */
+void fork_trampoline(void); /* MAGIC */
+void syscall(u_int64_t, struct trapframe *);
+void trap(unsigned long, unsigned long, unsigned long, unsigned long,
+ struct trapframe *);
/*
* Return contents of in-cpu fast counter as a sort of "bogo-time"
diff --git a/sys/alpha/include/cpuconf.h b/sys/alpha/include/cpuconf.h
index c829730..6ca8daf 100644
--- a/sys/alpha/include/cpuconf.h
+++ b/sys/alpha/include/cpuconf.h
@@ -65,24 +65,24 @@ extern struct platform {
* clockintr - Clock Interrupt Handler
* mcheck_handler - Platform Specific Machine Check Handler
*/
- void (*cons_init) __P((void));
- void (*device_register) __P((struct device *, void *));
- void (*iointr) __P((void *, unsigned long));
- void (*clockintr) __P((void *));
- void (*mcheck_handler) __P((unsigned long, struct trapframe *,
- unsigned long, unsigned long));
- void (*pci_intr_init) __P((void));
- void (*pci_intr_map) __P((void *));
- int (*pci_intr_route) __P((struct device *, struct device *, int));
- void (*pci_intr_disable) __P((int));
- void (*pci_intr_enable) __P((int));
- int (*pci_setup_ide_intr) __P((struct device *dev,
+ void (*cons_init)(void);
+ void (*device_register)(struct device *, void *);
+ void (*iointr)(void *, unsigned long);
+ void (*clockintr)(void *);
+ void (*mcheck_handler)(unsigned long, struct trapframe *,
+ unsigned long, unsigned long);
+ void (*pci_intr_init)(void);
+ void (*pci_intr_map)(void *);
+ int (*pci_intr_route)(struct device *, struct device *, int);
+ void (*pci_intr_disable)(int);
+ void (*pci_intr_enable)(int);
+ int (*pci_setup_ide_intr)(struct device *dev,
struct device *child,
- int chan, void (*fn)(void*), void *arg));
- int (*isa_setup_intr) __P((struct device *, struct device *,
- struct resource *, int, void *, void *, void **));
- int (*isa_teardown_intr) __P((struct device *, struct device *,
- struct resource *, void *));
+ int chan, void (*fn)(void*), void *arg);
+ int (*isa_setup_intr)(struct device *, struct device *,
+ struct resource *, int, void *, void *, void **);
+ int (*isa_teardown_intr)(struct device *, struct device *,
+ struct resource *, void *);
} platform;
/*
@@ -108,7 +108,7 @@ struct alpha_variation_table {
*/
struct cpuinit {
- void (*init) __P((int));
+ void (*init)(int);
const char *option;
};
@@ -118,17 +118,17 @@ struct cpuinit {
/*
* Misc. support routines.
*/
-const char *alpha_dsr_sysname __P((void));
-const char *alpha_variation_name __P((u_int64_t variation,
- const struct alpha_variation_table *avtp));
-const char *alpha_unknown_sysname __P((void));
+const char *alpha_dsr_sysname(void);
+const char *alpha_variation_name(u_int64_t variation,
+ const struct alpha_variation_table *avtp);
+const char *alpha_unknown_sysname(void);
extern struct cpuinit cpuinit[];
extern struct cpuinit api_cpuinit[];
extern int ncpuinit;
extern int napi_cpuinit;
-extern void platform_not_configured __P((int));
-extern void platform_not_supported __P((int));
+extern void platform_not_configured(int);
+extern void platform_not_supported(int);
#endif /* _KERNEL */
#endif /* !_ALPHA_CPUCONF_H */
diff --git a/sys/alpha/include/db_machdep.h b/sys/alpha/include/db_machdep.h
index 786f271..6c57783 100644
--- a/sys/alpha/include/db_machdep.h
+++ b/sys/alpha/include/db_machdep.h
@@ -80,14 +80,14 @@ extern db_regs_t ddb_regs; /* register state */
* Functions needed for software single-stepping.
*/
-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));
-boolean_t db_inst_load __P((int inst));
-boolean_t 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);
+boolean_t db_inst_load(int inst);
+boolean_t 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)
@@ -103,9 +103,9 @@ db_addr_t db_branch_taken __P((int inst, db_addr_t pc, db_regs_t *regs));
/* No delay slots on Alpha. */
#define next_instr_address(v, b) ((db_addr_t) ((b) ? (v) : ((v) + 4)))
-u_long db_register_value __P((db_regs_t *, int));
-int kdb_trap __P((unsigned long, unsigned long, unsigned long,
- unsigned long, struct trapframe *));
+u_long db_register_value(db_regs_t *, int);
+int kdb_trap(unsigned long, unsigned long, unsigned long,
+ unsigned long, struct trapframe *);
/*
* Pretty arbitrary
diff --git a/sys/alpha/include/float.h b/sys/alpha/include/float.h
index 1a3d871..4d72b0e 100644
--- a/sys/alpha/include/float.h
+++ b/sys/alpha/include/float.h
@@ -40,7 +40,7 @@
#include <sys/cdefs.h>
__BEGIN_DECLS
-int __flt_rounds __P((void));
+int __flt_rounds(void);
__END_DECLS
#define FLT_RADIX 2 /* b */
diff --git a/sys/alpha/include/md_var.h b/sys/alpha/include/md_var.h
index 8a90433..b43db60 100644
--- a/sys/alpha/include/md_var.h
+++ b/sys/alpha/include/md_var.h
@@ -45,12 +45,12 @@ struct reg;
struct cam_sim;
struct pcicfg;
-void busdma_swi __P((void));
-void cpu_halt __P((void));
-void cpu_reset __P((void));
-int is_physical_memory __P((vm_offset_t addr));
-void swi_vm __P((void *));
-void alpha_register_pci_scsi __P((int bus, int slot, struct cam_sim *sim));
+void busdma_swi(void);
+void cpu_halt(void);
+void cpu_reset(void);
+int is_physical_memory(vm_offset_t addr);
+void swi_vm(void *);
+void alpha_register_pci_scsi(int bus, int slot, struct cam_sim *sim);
#ifdef _SYS_BUS_H_
struct resource *alpha_platform_alloc_ide_intr(int chan);
int alpha_platform_release_ide_intr(int chan, struct resource *res);
diff --git a/sys/alpha/include/pmap.h b/sys/alpha/include/pmap.h
index 1c258d9..e06902f 100644
--- a/sys/alpha/include/pmap.h
+++ b/sys/alpha/include/pmap.h
@@ -227,19 +227,19 @@ extern vm_offset_t virtual_end;
struct vmspace;
-vm_offset_t pmap_steal_memory __P((vm_size_t));
-void pmap_bootstrap __P((vm_offset_t, u_int));
-void pmap_setdevram __P((unsigned long long basea, vm_offset_t sizea));
-int pmap_uses_prom_console __P((void));
-pmap_t pmap_kernel __P((void));
-void *pmap_mapdev __P((vm_offset_t, vm_size_t));
-void pmap_unmapdev __P((vm_offset_t, vm_size_t));
-unsigned *pmap_pte __P((pmap_t, vm_offset_t)) __pure2;
-vm_page_t pmap_use_pt __P((pmap_t, vm_offset_t));
-void pmap_set_opt __P((unsigned *));
-void pmap_set_opt_bsp __P((void));
-void pmap_deactivate __P((struct thread *td));
-void pmap_emulate_reference __P((struct vmspace *vm, vm_offset_t v, int user, int write));
+vm_offset_t pmap_steal_memory(vm_size_t);
+void pmap_bootstrap(vm_offset_t, u_int);
+void pmap_setdevram(unsigned long long basea, vm_offset_t sizea);
+int pmap_uses_prom_console(void);
+pmap_t pmap_kernel(void);
+void *pmap_mapdev(vm_offset_t, vm_size_t);
+void pmap_unmapdev(vm_offset_t, vm_size_t);
+unsigned *pmap_pte(pmap_t, vm_offset_t) __pure2;
+vm_page_t pmap_use_pt(pmap_t, vm_offset_t);
+void pmap_set_opt (unsigned *);
+void pmap_set_opt_bsp (void);
+void pmap_deactivate(struct thread *td);
+void pmap_emulate_reference(struct vmspace *vm, vm_offset_t v, int user, int write);
#endif /* _KERNEL */
diff --git a/sys/alpha/include/profile.h b/sys/alpha/include/profile.h
index 57fbb69..97d8113 100644
--- a/sys/alpha/include/profile.h
+++ b/sys/alpha/include/profile.h
@@ -223,10 +223,10 @@ LX98: ldgp $29,0($27); \
#ifdef GUPROF
struct gmonparam;
-void nullfunc_loop_profiled __P((void));
-void nullfunc_profiled __P((void));
-void startguprof __P((struct gmonparam *p));
-void stopguprof __P((struct gmonparam *p));
+void nullfunc_loop_profiled(void);
+void nullfunc_profiled(void);
+void startguprof(struct gmonparam *p);
+void stopguprof(struct gmonparam *p);
#else
#define startguprof(p)
#define stopguprof(p)
diff --git a/sys/alpha/include/prom.h b/sys/alpha/include/prom.h
index 537f9cf..b242f1d 100644
--- a/sys/alpha/include/prom.h
+++ b/sys/alpha/include/prom.h
@@ -49,13 +49,13 @@ typedef union {
} prom_return_t;
#ifdef STANDALONE
-int getchar __P((void));
-int prom_open __P((char *, int));
-void putchar __P((int));
+int getchar(void);
+int prom_open(char *, int);
+void putchar(int);
#endif
-void prom_halt __P((int)) __attribute__((__noreturn__));
-int prom_getenv __P((int, char *, int));
+void prom_halt(int) __attribute__((__noreturn__));
+int prom_getenv(int, char *, int);
#endif
@@ -95,14 +95,14 @@ int prom_getenv __P((int, char *, int));
#ifndef ASSEMBLER
#ifdef _KERNEL
-void promcnattach __P((int));
-void promcndetach __P((void));
-void promcnputc __P((dev_t, int));
-int promcngetc __P((dev_t));
-int promcncheckc __P((dev_t));
+void promcnattach(int);
+void promcndetach(void);
+void promcnputc(dev_t, int);
+int promcngetc(dev_t);
+int promcncheckc(dev_t);
-u_int64_t prom_dispatch __P((u_int64_t, u_int64_t, u_int64_t, u_int64_t,
- u_int64_t));
-void init_bootstrap_console __P((void));
+u_int64_t prom_dispatch(u_int64_t, u_int64_t, u_int64_t, u_int64_t,
+ u_int64_t);
+void init_bootstrap_console(void);
#endif /* _KERNEL */
#endif /* ASSEMBLER */
diff --git a/sys/alpha/include/reg.h b/sys/alpha/include/reg.h
index d71df0a..3ea6143 100644
--- a/sys/alpha/include/reg.h
+++ b/sys/alpha/include/reg.h
@@ -108,19 +108,19 @@ struct dbreg {
};
#ifdef _KERNEL
-void restorefpstate __P((struct fpreg *));
-void savefpstate __P((struct fpreg *));
+void restorefpstate(struct fpreg *);
+void savefpstate(struct fpreg *);
/*
* XXX these interfaces are MI, so they should be declared in a MI place.
*/
-void setregs __P((struct thread *, u_long, u_long, u_long));
-int fill_regs __P((struct thread *, struct reg *));
-int set_regs __P((struct thread *, struct reg *));
-int fill_fpregs __P((struct thread *, struct fpreg *));
-int set_fpregs __P((struct thread *, struct fpreg *));
-int fill_dbregs __P((struct thread *, struct dbreg *));
-int set_dbregs __P((struct thread *, struct dbreg *));
+void setregs(struct thread *, u_long, u_long, u_long);
+int fill_regs(struct thread *, struct reg *);
+int set_regs(struct thread *, struct reg *);
+int fill_fpregs(struct thread *, struct fpreg *);
+int set_fpregs(struct thread *, struct fpreg *);
+int fill_dbregs(struct thread *, struct dbreg *);
+int set_dbregs(struct thread *, struct dbreg *);
#endif
#endif /* _ALPHA_REG_H_ */
diff --git a/sys/alpha/include/sysarch.h b/sys/alpha/include/sysarch.h
index 93ff1ee..45313fc 100644
--- a/sys/alpha/include/sysarch.h
+++ b/sys/alpha/include/sysarch.h
@@ -51,7 +51,7 @@
union descriptor;
__BEGIN_DECLS
-int alpha_sethae __P((u_int64_t));
+int alpha_sethae(u_int64_t);
__END_DECLS
#endif
OpenPOWER on IntegriCloud