And more ANSI'ification!
This commit is contained in:
parent
78e7ae14b9
commit
81afcb3940
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: alpha.h,v 1.9 2000/06/01 17:12:42 thorpej Exp $ */
|
||||
/* $NetBSD: alpha.h,v 1.10 2000/06/08 03:10:06 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
|
@ -56,54 +56,54 @@ struct trapframe;
|
|||
|
||||
extern int bootdev_debug;
|
||||
|
||||
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 ast __P((struct trapframe *));
|
||||
int badaddr __P((void *, size_t));
|
||||
int badaddr_read __P((void *, size_t, void *));
|
||||
void child_return __P((void *));
|
||||
u_int64_t console_restart __P((struct trapframe *));
|
||||
void do_sir __P((void));
|
||||
void dumpconf __P((void));
|
||||
void exception_return __P((void)); /* MAGIC */
|
||||
void frametoreg __P((struct trapframe *, struct reg *));
|
||||
long fswintrberr __P((void)); /* MAGIC */
|
||||
void init_bootstrap_console __P((void));
|
||||
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 switch_exit __P((struct proc *)); /* MAGIC */
|
||||
void switch_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 trap_init __P((void));
|
||||
void enable_nsio_ide __P((bus_space_tag_t));
|
||||
char * dot_conv __P((unsigned long));
|
||||
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 ast(struct trapframe *);
|
||||
int badaddr(void *, size_t);
|
||||
int badaddr_read(void *, size_t, void *);
|
||||
void child_return(void *);
|
||||
u_int64_t console_restart(struct trapframe *);
|
||||
void do_sir(void);
|
||||
void dumpconf(void);
|
||||
void exception_return(void); /* MAGIC */
|
||||
void frametoreg(struct trapframe *, struct reg *);
|
||||
long fswintrberr(void); /* MAGIC */
|
||||
void init_bootstrap_console(void);
|
||||
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 switch_exit(struct proc *); /* MAGIC */
|
||||
void switch_trampoline(void); /* MAGIC */
|
||||
void syscall(u_int64_t, struct trapframe *);
|
||||
void trap(unsigned long, unsigned long, unsigned long, unsigned long,
|
||||
struct trapframe *);
|
||||
void trap_init(void);
|
||||
void enable_nsio_ide(bus_space_tag_t);
|
||||
char * dot_conv(unsigned long);
|
||||
|
||||
/* Multiprocessor glue; cpu.c */
|
||||
struct cpu_info;
|
||||
int cpu_iccb_send __P((long, const char *));
|
||||
void cpu_iccb_receive __P((void));
|
||||
void cpu_hatch __P((struct cpu_info *));
|
||||
void cpu_halt_secondary __P((unsigned long));
|
||||
void cpu_spinup_trampoline __P((void)); /* MAGIC */
|
||||
void cpu_pause __P((unsigned long));
|
||||
void cpu_resume __P((unsigned long));
|
||||
int cpu_iccb_send(long, const char *);
|
||||
void cpu_iccb_receive(void);
|
||||
void cpu_hatch(struct cpu_info *);
|
||||
void cpu_halt_secondary(unsigned long);
|
||||
void cpu_spinup_trampoline(void); /* MAGIC */
|
||||
void cpu_pause(unsigned long);
|
||||
void cpu_resume(unsigned long);
|
||||
|
||||
#endif /* _KERNEL */
|
||||
#endif /* _ALPHA_H_ */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: alpha_cpu.h,v 1.40 2000/06/08 02:53:47 thorpej Exp $ */
|
||||
/* $NetBSD: alpha_cpu.h,v 1.41 2000/06/08 03:10:06 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996 Carnegie-Mellon University.
|
||||
|
@ -315,7 +315,7 @@ typedef unsigned long alpha_pt_entry_t;
|
|||
/*
|
||||
* Misc. support routines.
|
||||
*/
|
||||
const char *alpha_dsr_sysname __P((void));
|
||||
const char *alpha_dsr_sysname(void);
|
||||
|
||||
/*
|
||||
* Stubs for Alpha instructions normally inaccessible from C.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: autoconf.h,v 1.18 2000/06/05 21:47:18 thorpej Exp $ */
|
||||
/* $NetBSD: autoconf.h,v 1.19 2000/06/08 03:10:06 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University.
|
||||
|
@ -72,9 +72,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[9]; /* 184: rsvd for future use */
|
||||
/* 256: total size */
|
||||
};
|
||||
|
@ -112,7 +112,7 @@ extern int booted_partition;
|
|||
extern struct bootdev_data *bootdev_data;
|
||||
extern struct bootinfo_kernel bootinfo;
|
||||
|
||||
const char *alpha_variation_name __P((u_int64_t,
|
||||
const struct alpha_variation_table *));
|
||||
const char *alpha_unknown_sysname __P((void));
|
||||
const char *alpha_variation_name(u_int64_t,
|
||||
const struct alpha_variation_table *);
|
||||
const char *alpha_unknown_sysname(void);
|
||||
#endif /* _KERNEL */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: bus.h,v 1.38 2000/04/17 17:30:48 drochner Exp $ */
|
||||
/* $NetBSD: bus.h,v 1.39 2000/06/08 03:10:06 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997, 1998, 2000 The NetBSD Foundation, Inc.
|
||||
|
@ -124,122 +124,122 @@ struct alpha_bus_space {
|
|||
void *abs_cookie;
|
||||
|
||||
/* mapping/unmapping */
|
||||
int (*abs_map) __P((void *, bus_addr_t, bus_size_t,
|
||||
int, bus_space_handle_t *, int));
|
||||
void (*abs_unmap) __P((void *, bus_space_handle_t,
|
||||
bus_size_t, int));
|
||||
int (*abs_subregion) __P((void *, bus_space_handle_t,
|
||||
bus_size_t, bus_size_t, bus_space_handle_t *));
|
||||
int (*abs_map)(void *, bus_addr_t, bus_size_t,
|
||||
int, bus_space_handle_t *, int);
|
||||
void (*abs_unmap)(void *, bus_space_handle_t,
|
||||
bus_size_t, int);
|
||||
int (*abs_subregion)(void *, bus_space_handle_t,
|
||||
bus_size_t, bus_size_t, bus_space_handle_t *);
|
||||
|
||||
/* ALPHA SPECIFIC MAPPING METHOD */
|
||||
int (*abs_translate) __P((void *, bus_addr_t, bus_size_t,
|
||||
int, struct alpha_bus_space_translation *));
|
||||
int (*abs_get_window) __P((void *, int,
|
||||
struct alpha_bus_space_translation *));
|
||||
int (*abs_translate)(void *, bus_addr_t, bus_size_t,
|
||||
int, struct alpha_bus_space_translation *);
|
||||
int (*abs_get_window)(void *, int,
|
||||
struct alpha_bus_space_translation *);
|
||||
|
||||
/* allocation/deallocation */
|
||||
int (*abs_alloc) __P((void *, bus_addr_t, bus_addr_t,
|
||||
int (*abs_alloc)(void *, bus_addr_t, bus_addr_t,
|
||||
bus_size_t, bus_size_t, bus_size_t, int,
|
||||
bus_addr_t *, bus_space_handle_t *));
|
||||
void (*abs_free) __P((void *, bus_space_handle_t,
|
||||
bus_size_t));
|
||||
bus_addr_t *, bus_space_handle_t *);
|
||||
void (*abs_free)(void *, bus_space_handle_t,
|
||||
bus_size_t);
|
||||
|
||||
/* get kernel virtual address */
|
||||
void * (*abs_vaddr) __P((void *, bus_space_handle_t));
|
||||
void * (*abs_vaddr)(void *, bus_space_handle_t);
|
||||
|
||||
/* barrier */
|
||||
void (*abs_barrier) __P((void *, bus_space_handle_t,
|
||||
bus_size_t, bus_size_t, int));
|
||||
void (*abs_barrier)(void *, bus_space_handle_t,
|
||||
bus_size_t, bus_size_t, int);
|
||||
|
||||
/* read (single) */
|
||||
u_int8_t (*abs_r_1) __P((void *, bus_space_handle_t,
|
||||
bus_size_t));
|
||||
u_int16_t (*abs_r_2) __P((void *, bus_space_handle_t,
|
||||
bus_size_t));
|
||||
u_int32_t (*abs_r_4) __P((void *, bus_space_handle_t,
|
||||
bus_size_t));
|
||||
u_int64_t (*abs_r_8) __P((void *, bus_space_handle_t,
|
||||
bus_size_t));
|
||||
u_int8_t (*abs_r_1)(void *, bus_space_handle_t,
|
||||
bus_size_t);
|
||||
u_int16_t (*abs_r_2)(void *, bus_space_handle_t,
|
||||
bus_size_t);
|
||||
u_int32_t (*abs_r_4)(void *, bus_space_handle_t,
|
||||
bus_size_t);
|
||||
u_int64_t (*abs_r_8)(void *, bus_space_handle_t,
|
||||
bus_size_t);
|
||||
|
||||
/* read multiple */
|
||||
void (*abs_rm_1) __P((void *, bus_space_handle_t,
|
||||
bus_size_t, u_int8_t *, bus_size_t));
|
||||
void (*abs_rm_2) __P((void *, bus_space_handle_t,
|
||||
bus_size_t, u_int16_t *, bus_size_t));
|
||||
void (*abs_rm_4) __P((void *, bus_space_handle_t,
|
||||
bus_size_t, u_int32_t *, bus_size_t));
|
||||
void (*abs_rm_8) __P((void *, bus_space_handle_t,
|
||||
bus_size_t, u_int64_t *, bus_size_t));
|
||||
void (*abs_rm_1)(void *, bus_space_handle_t,
|
||||
bus_size_t, u_int8_t *, bus_size_t);
|
||||
void (*abs_rm_2)(void *, bus_space_handle_t,
|
||||
bus_size_t, u_int16_t *, bus_size_t);
|
||||
void (*abs_rm_4)(void *, bus_space_handle_t,
|
||||
bus_size_t, u_int32_t *, bus_size_t);
|
||||
void (*abs_rm_8)(void *, bus_space_handle_t,
|
||||
bus_size_t, u_int64_t *, bus_size_t);
|
||||
|
||||
/* read region */
|
||||
void (*abs_rr_1) __P((void *, bus_space_handle_t,
|
||||
bus_size_t, u_int8_t *, bus_size_t));
|
||||
void (*abs_rr_2) __P((void *, bus_space_handle_t,
|
||||
bus_size_t, u_int16_t *, bus_size_t));
|
||||
void (*abs_rr_4) __P((void *, bus_space_handle_t,
|
||||
bus_size_t, u_int32_t *, bus_size_t));
|
||||
void (*abs_rr_8) __P((void *, bus_space_handle_t,
|
||||
bus_size_t, u_int64_t *, bus_size_t));
|
||||
void (*abs_rr_1)(void *, bus_space_handle_t,
|
||||
bus_size_t, u_int8_t *, bus_size_t);
|
||||
void (*abs_rr_2)(void *, bus_space_handle_t,
|
||||
bus_size_t, u_int16_t *, bus_size_t);
|
||||
void (*abs_rr_4)(void *, bus_space_handle_t,
|
||||
bus_size_t, u_int32_t *, bus_size_t);
|
||||
void (*abs_rr_8)(void *, bus_space_handle_t,
|
||||
bus_size_t, u_int64_t *, bus_size_t);
|
||||
|
||||
/* write (single) */
|
||||
void (*abs_w_1) __P((void *, bus_space_handle_t,
|
||||
bus_size_t, u_int8_t));
|
||||
void (*abs_w_2) __P((void *, bus_space_handle_t,
|
||||
bus_size_t, u_int16_t));
|
||||
void (*abs_w_4) __P((void *, bus_space_handle_t,
|
||||
bus_size_t, u_int32_t));
|
||||
void (*abs_w_8) __P((void *, bus_space_handle_t,
|
||||
bus_size_t, u_int64_t));
|
||||
void (*abs_w_1)(void *, bus_space_handle_t,
|
||||
bus_size_t, u_int8_t);
|
||||
void (*abs_w_2)(void *, bus_space_handle_t,
|
||||
bus_size_t, u_int16_t);
|
||||
void (*abs_w_4)(void *, bus_space_handle_t,
|
||||
bus_size_t, u_int32_t);
|
||||
void (*abs_w_8)(void *, bus_space_handle_t,
|
||||
bus_size_t, u_int64_t);
|
||||
|
||||
/* write multiple */
|
||||
void (*abs_wm_1) __P((void *, bus_space_handle_t,
|
||||
bus_size_t, const u_int8_t *, bus_size_t));
|
||||
void (*abs_wm_2) __P((void *, bus_space_handle_t,
|
||||
bus_size_t, const u_int16_t *, bus_size_t));
|
||||
void (*abs_wm_4) __P((void *, bus_space_handle_t,
|
||||
bus_size_t, const u_int32_t *, bus_size_t));
|
||||
void (*abs_wm_8) __P((void *, bus_space_handle_t,
|
||||
bus_size_t, const u_int64_t *, bus_size_t));
|
||||
void (*abs_wm_1)(void *, bus_space_handle_t,
|
||||
bus_size_t, const u_int8_t *, bus_size_t);
|
||||
void (*abs_wm_2)(void *, bus_space_handle_t,
|
||||
bus_size_t, const u_int16_t *, bus_size_t);
|
||||
void (*abs_wm_4)(void *, bus_space_handle_t,
|
||||
bus_size_t, const u_int32_t *, bus_size_t);
|
||||
void (*abs_wm_8)(void *, bus_space_handle_t,
|
||||
bus_size_t, const u_int64_t *, bus_size_t);
|
||||
|
||||
/* write region */
|
||||
void (*abs_wr_1) __P((void *, bus_space_handle_t,
|
||||
bus_size_t, const u_int8_t *, bus_size_t));
|
||||
void (*abs_wr_2) __P((void *, bus_space_handle_t,
|
||||
bus_size_t, const u_int16_t *, bus_size_t));
|
||||
void (*abs_wr_4) __P((void *, bus_space_handle_t,
|
||||
bus_size_t, const u_int32_t *, bus_size_t));
|
||||
void (*abs_wr_8) __P((void *, bus_space_handle_t,
|
||||
bus_size_t, const u_int64_t *, bus_size_t));
|
||||
void (*abs_wr_1)(void *, bus_space_handle_t,
|
||||
bus_size_t, const u_int8_t *, bus_size_t);
|
||||
void (*abs_wr_2)(void *, bus_space_handle_t,
|
||||
bus_size_t, const u_int16_t *, bus_size_t);
|
||||
void (*abs_wr_4)(void *, bus_space_handle_t,
|
||||
bus_size_t, const u_int32_t *, bus_size_t);
|
||||
void (*abs_wr_8)(void *, bus_space_handle_t,
|
||||
bus_size_t, const u_int64_t *, bus_size_t);
|
||||
|
||||
/* set multiple */
|
||||
void (*abs_sm_1) __P((void *, bus_space_handle_t,
|
||||
bus_size_t, u_int8_t, bus_size_t));
|
||||
void (*abs_sm_2) __P((void *, bus_space_handle_t,
|
||||
bus_size_t, u_int16_t, bus_size_t));
|
||||
void (*abs_sm_4) __P((void *, bus_space_handle_t,
|
||||
bus_size_t, u_int32_t, bus_size_t));
|
||||
void (*abs_sm_8) __P((void *, bus_space_handle_t,
|
||||
bus_size_t, u_int64_t, bus_size_t));
|
||||
void (*abs_sm_1)(void *, bus_space_handle_t,
|
||||
bus_size_t, u_int8_t, bus_size_t);
|
||||
void (*abs_sm_2)(void *, bus_space_handle_t,
|
||||
bus_size_t, u_int16_t, bus_size_t);
|
||||
void (*abs_sm_4)(void *, bus_space_handle_t,
|
||||
bus_size_t, u_int32_t, bus_size_t);
|
||||
void (*abs_sm_8)(void *, bus_space_handle_t,
|
||||
bus_size_t, u_int64_t, bus_size_t);
|
||||
|
||||
/* set region */
|
||||
void (*abs_sr_1) __P((void *, bus_space_handle_t,
|
||||
bus_size_t, u_int8_t, bus_size_t));
|
||||
void (*abs_sr_2) __P((void *, bus_space_handle_t,
|
||||
bus_size_t, u_int16_t, bus_size_t));
|
||||
void (*abs_sr_4) __P((void *, bus_space_handle_t,
|
||||
bus_size_t, u_int32_t, bus_size_t));
|
||||
void (*abs_sr_8) __P((void *, bus_space_handle_t,
|
||||
bus_size_t, u_int64_t, bus_size_t));
|
||||
void (*abs_sr_1)(void *, bus_space_handle_t,
|
||||
bus_size_t, u_int8_t, bus_size_t);
|
||||
void (*abs_sr_2)(void *, bus_space_handle_t,
|
||||
bus_size_t, u_int16_t, bus_size_t);
|
||||
void (*abs_sr_4)(void *, bus_space_handle_t,
|
||||
bus_size_t, u_int32_t, bus_size_t);
|
||||
void (*abs_sr_8)(void *, bus_space_handle_t,
|
||||
bus_size_t, u_int64_t, bus_size_t);
|
||||
|
||||
/* copy */
|
||||
void (*abs_c_1) __P((void *, bus_space_handle_t, bus_size_t,
|
||||
bus_space_handle_t, bus_size_t, bus_size_t));
|
||||
void (*abs_c_2) __P((void *, bus_space_handle_t, bus_size_t,
|
||||
bus_space_handle_t, bus_size_t, bus_size_t));
|
||||
void (*abs_c_4) __P((void *, bus_space_handle_t, bus_size_t,
|
||||
bus_space_handle_t, bus_size_t, bus_size_t));
|
||||
void (*abs_c_8) __P((void *, bus_space_handle_t, bus_size_t,
|
||||
bus_space_handle_t, bus_size_t, bus_size_t));
|
||||
void (*abs_c_1)(void *, bus_space_handle_t, bus_size_t,
|
||||
bus_space_handle_t, bus_size_t, bus_size_t);
|
||||
void (*abs_c_2)(void *, bus_space_handle_t, bus_size_t,
|
||||
bus_space_handle_t, bus_size_t, bus_size_t);
|
||||
void (*abs_c_4)(void *, bus_space_handle_t, bus_size_t,
|
||||
bus_space_handle_t, bus_size_t, bus_size_t);
|
||||
void (*abs_c_8)(void *, bus_space_handle_t, bus_size_t,
|
||||
bus_space_handle_t, bus_size_t, bus_size_t);
|
||||
};
|
||||
|
||||
/*
|
||||
|
@ -569,38 +569,38 @@ struct alpha_bus_dma_tag {
|
|||
* Internal-use only utility methods. NOT TO BE USED BY
|
||||
* MACHINE-INDEPENDENT CODE!
|
||||
*/
|
||||
bus_dma_tag_t (*_get_tag) __P((bus_dma_tag_t, alpha_bus_t));
|
||||
bus_dma_tag_t (*_get_tag)(bus_dma_tag_t, alpha_bus_t);
|
||||
|
||||
/*
|
||||
* 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));
|
||||
int (*_dmamem_mmap) __P((bus_dma_tag_t, bus_dma_segment_t *,
|
||||
int, int, 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);
|
||||
int (*_dmamem_mmap)(bus_dma_tag_t, bus_dma_segment_t *,
|
||||
int, int, int, int);
|
||||
};
|
||||
|
||||
#define alphabus_dma_get_tag(t, b) \
|
||||
|
@ -671,38 +671,38 @@ struct alpha_bus_dmamap {
|
|||
};
|
||||
|
||||
#ifdef _ALPHA_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_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_direct __P((bus_dma_tag_t, bus_dmamap_t,
|
||||
void *, bus_size_t, struct proc *, int));
|
||||
int _bus_dmamap_load_mbuf_direct __P((bus_dma_tag_t,
|
||||
bus_dmamap_t, struct mbuf *, int));
|
||||
int _bus_dmamap_load_uio_direct __P((bus_dma_tag_t,
|
||||
bus_dmamap_t, struct uio *, int));
|
||||
int _bus_dmamap_load_raw_direct __P((bus_dma_tag_t,
|
||||
bus_dmamap_t, bus_dma_segment_t *, int, bus_size_t, int));
|
||||
int _bus_dmamap_load_direct(bus_dma_tag_t, bus_dmamap_t,
|
||||
void *, bus_size_t, struct proc *, int);
|
||||
int _bus_dmamap_load_mbuf_direct(bus_dma_tag_t,
|
||||
bus_dmamap_t, struct mbuf *, int);
|
||||
int _bus_dmamap_load_uio_direct(bus_dma_tag_t,
|
||||
bus_dmamap_t, struct uio *, int);
|
||||
int _bus_dmamap_load_raw_direct(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));
|
||||
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));
|
||||
int _bus_dmamem_alloc_range __P((bus_dma_tag_t tag, bus_size_t size,
|
||||
bus_dma_segment_t *segs, int nsegs, int *rsegs, int flags);
|
||||
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));
|
||||
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));
|
||||
int _bus_dmamem_mmap __P((bus_dma_tag_t tag, bus_dma_segment_t *segs,
|
||||
int nsegs, int off, int prot, int flags));
|
||||
paddr_t low, paddr_t high);
|
||||
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);
|
||||
int _bus_dmamem_mmap(bus_dma_tag_t tag, bus_dma_segment_t *segs,
|
||||
int nsegs, int off, int prot, int flags);
|
||||
#endif /* _ALPHA_BUS_DMA_PRIVATE */
|
||||
|
||||
#endif /* _KERNEL */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: cpu.h,v 1.43 2000/06/05 21:47:18 thorpej Exp $ */
|
||||
/* $NetBSD: cpu.h,v 1.44 2000/06/08 03:10:06 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc.
|
||||
|
@ -146,7 +146,7 @@ extern struct cpu_info cpu_info[];
|
|||
#define curcpu() ((struct cpu_info *)alpha_pal_rdval())
|
||||
#define CPU_IS_PRIMARY(ci) ((ci)->ci_flags & CPUF_PRIMARY)
|
||||
|
||||
void cpu_boot_secondary_processors __P((void));
|
||||
void cpu_boot_secondary_processors(void);
|
||||
#else /* ! MULTIPROCESSOR */
|
||||
extern struct cpu_info cpu_info_store;
|
||||
|
||||
|
@ -256,7 +256,7 @@ struct reg;
|
|||
struct rpb;
|
||||
struct trapframe;
|
||||
|
||||
int badaddr __P((void *, size_t));
|
||||
int badaddr(void *, size_t);
|
||||
|
||||
#endif /* _KERNEL */
|
||||
#endif /* _ALPHA_CPU_H_ */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: cpuconf.h,v 1.11 2000/06/03 20:47:41 thorpej Exp $ */
|
||||
/* $NetBSD: cpuconf.h,v 1.12 2000/06/08 03:10:06 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996 Christopher G. Demetriou. All rights reserved.
|
||||
|
@ -65,13 +65,13 @@ 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((struct clockframe *));
|
||||
void (*mcheck_handler) __P((unsigned long, struct trapframe *,
|
||||
unsigned long, unsigned long));
|
||||
void (*powerdown) __P((void));
|
||||
void (*cons_init)(void);
|
||||
void (*device_register)(struct device *, void *);
|
||||
void (*iointr)(void *, unsigned long);
|
||||
void (*clockintr)(struct clockframe *);
|
||||
void (*mcheck_handler)(unsigned long, struct trapframe *,
|
||||
unsigned long, unsigned long);
|
||||
void (*powerdown)(void);
|
||||
};
|
||||
|
||||
/*
|
||||
|
@ -89,7 +89,7 @@ struct platform {
|
|||
*/
|
||||
|
||||
struct cpuinit {
|
||||
void (*init) __P((void));
|
||||
void (*init)(void);
|
||||
u_int64_t systype;
|
||||
const char *option;
|
||||
};
|
||||
|
@ -100,8 +100,8 @@ struct cpuinit {
|
|||
#define cpu_init(st, fn, opt) { fn, st, opt }
|
||||
|
||||
extern struct platform platform;
|
||||
extern const struct cpuinit *platform_lookup __P((int));
|
||||
extern void platform_not_configured __P((void));
|
||||
extern void platform_not_supported __P((void));
|
||||
extern const struct cpuinit *platform_lookup(int);
|
||||
extern void platform_not_configured(void);
|
||||
extern void platform_not_supported(void);
|
||||
#endif /* _KERNEL */
|
||||
#endif /* ! _ALPHA_CPUCONF_H_ */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: float.h,v 1.8 1998/02/18 11:01:27 mycroft Exp $ */
|
||||
/* $NetBSD: float.h,v 1.9 2000/06/08 03:10:06 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1993
|
||||
|
@ -39,7 +39,7 @@
|
|||
#include <sys/cdefs.h>
|
||||
|
||||
__BEGIN_DECLS
|
||||
extern int __flt_rounds __P((void));
|
||||
extern int __flt_rounds(void);
|
||||
__END_DECLS
|
||||
|
||||
#define FLT_RADIX 2 /* b */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: loadfile_machdep.h,v 1.1 1999/09/10 07:33:57 ross Exp $ */
|
||||
/* $NetBSD: loadfile_machdep.h,v 1.2 2000/06/08 03:10:06 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -73,8 +73,8 @@
|
|||
#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
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: lock.h,v 1.7 2000/06/07 01:49:13 simonb Exp $ */
|
||||
/* $NetBSD: lock.h,v 1.8 2000/06/08 03:10:06 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
|
||||
|
@ -49,15 +49,6 @@ typedef __volatile int __cpu_simple_lock_t;
|
|||
#define __SIMPLELOCK_LOCKED 1
|
||||
#define __SIMPLELOCK_UNLOCKED 0
|
||||
|
||||
static __inline void __cpu_simple_lock_init __P((__cpu_simple_lock_t *))
|
||||
__attribute__((__unused__));
|
||||
static __inline void __cpu_simple_lock __P((__cpu_simple_lock_t *))
|
||||
__attribute__((__unused__));
|
||||
static __inline int __cpu_simple_lock_try __P((__cpu_simple_lock_t *))
|
||||
__attribute__((__unused__));
|
||||
static __inline void __cpu_simple_unlock __P((__cpu_simple_lock_t *))
|
||||
__attribute__((__unused__));
|
||||
|
||||
static __inline void
|
||||
__cpu_simple_lock_init(__cpu_simple_lock_t *alp)
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: logout.h,v 1.1 1998/07/08 00:36:18 mjacob Exp $ */
|
||||
/* $NetBSD: logout.h,v 1.2 2000/06/08 03:10:06 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998 by Matthew Jacob
|
||||
|
@ -140,5 +140,5 @@ typedef struct {
|
|||
|
||||
|
||||
#ifdef _KERNEL
|
||||
extern void ev5_logout_print __P((mc_hdr_ev5 *, mc_uc_ev5 *));
|
||||
extern void ev5_logout_print(mc_hdr_ev5 *, mc_uc_ev5 *);
|
||||
#endif
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: param.h,v 1.27 2000/02/11 19:25:13 thorpej Exp $ */
|
||||
/* $NetBSD: param.h,v 1.28 2000/06/08 03:10:06 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
|
@ -159,15 +159,15 @@
|
|||
#ifdef _KERNEL
|
||||
#ifndef _LOCORE
|
||||
|
||||
void delay __P((unsigned long));
|
||||
void delay(unsigned long);
|
||||
#define DELAY(n) delay(n)
|
||||
|
||||
/* XXX THE FOLLOWING PROTOTYPE BELONGS IN INTR.H */
|
||||
int spl0 __P((void)); /* drop ipl to zero */
|
||||
int spl0(void); /* drop ipl to zero */
|
||||
/* XXX END INTR.H */
|
||||
|
||||
/* XXX THE FOLLOWING PROTOTYPE SHOULD BE A BUS.H INTERFACE */
|
||||
paddr_t alpha_XXX_dmamap __P((vaddr_t));
|
||||
paddr_t alpha_XXX_dmamap(vaddr_t);
|
||||
/* XXX END BUS.H */
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pio.h,v 1.3 2000/02/26 19:00:51 thorpej Exp $ */
|
||||
/* $NetBSD: pio.h,v 1.4 2000/06/08 03:10:06 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2000 The NetBSD Foundation, Inc.
|
||||
|
@ -45,12 +45,12 @@
|
|||
#error This file is for userspace only.
|
||||
#else
|
||||
struct alpha_pci_io_ops {
|
||||
u_int8_t (*apio_inb) __P((bus_addr_t));
|
||||
u_int16_t (*apio_inw) __P((bus_addr_t));
|
||||
u_int32_t (*apio_inl) __P((bus_addr_t));
|
||||
void (*apio_outb) __P((bus_addr_t, u_int8_t));
|
||||
void (*apio_outw) __P((bus_addr_t, u_int16_t));
|
||||
void (*apio_outl) __P((bus_addr_t, u_int32_t));
|
||||
u_int8_t (*apio_inb)(bus_addr_t);
|
||||
u_int16_t (*apio_inw)(bus_addr_t);
|
||||
u_int32_t (*apio_inl)(bus_addr_t);
|
||||
void (*apio_outb)(bus_addr_t, u_int8_t);
|
||||
void (*apio_outw)(bus_addr_t, u_int16_t);
|
||||
void (*apio_outl)(bus_addr_t, u_int32_t);
|
||||
};
|
||||
|
||||
extern const struct alpha_pci_io_ops *alpha_pci_io_switch;
|
||||
|
@ -63,7 +63,7 @@ extern const struct alpha_pci_io_ops *alpha_pci_io_switch;
|
|||
#define outw(addr, val) (*alpha_pci_io_switch->apio_outw)((addr), (val))
|
||||
#define ouwl(addr, val) (*alpha_pci_io_switch->apio_outl)((addr), (val))
|
||||
|
||||
int alpha_pci_io_enable __P((int));
|
||||
int alpha_pci_io_enable(int);
|
||||
#endif /* _KERNEL */
|
||||
|
||||
#endif /* _ALPHA_PIO_H_ */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pmap.h,v 1.34 2000/05/23 05:12:56 thorpej Exp $ */
|
||||
/* $NetBSD: pmap.h,v 1.35 2000/06/08 03:10:06 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc.
|
||||
|
@ -189,8 +189,8 @@ struct pv_head {
|
|||
#endif /* NEW_SCC_DRIVER */
|
||||
|
||||
#if defined(MULTIPROCESSOR)
|
||||
void pmap_tlb_shootdown __P((pmap_t, vaddr_t, pt_entry_t));
|
||||
void pmap_do_tlb_shootdown __P((void));
|
||||
void pmap_tlb_shootdown(pmap_t, vaddr_t, pt_entry_t);
|
||||
void pmap_do_tlb_shootdown(void);
|
||||
#endif /* MULTIPROCESSOR */
|
||||
#endif /* _LKM */
|
||||
|
||||
|
@ -207,14 +207,14 @@ extern pt_entry_t *VPT; /* Virtual Page Table */
|
|||
#define PMAP_MAP_POOLPAGE(pa) ALPHA_PHYS_TO_K0SEG((pa))
|
||||
#define PMAP_UNMAP_POOLPAGE(va) ALPHA_K0SEG_TO_PHYS((va))
|
||||
|
||||
paddr_t vtophys __P((vaddr_t));
|
||||
paddr_t vtophys(vaddr_t);
|
||||
|
||||
/* Machine-specific functions. */
|
||||
void pmap_bootstrap __P((paddr_t ptaddr, u_int maxasn, u_long ncpuids));
|
||||
void pmap_emulate_reference __P((struct proc *p, vaddr_t v,
|
||||
int user, int write));
|
||||
void pmap_bootstrap(paddr_t ptaddr, u_int maxasn, u_long ncpuids);
|
||||
void pmap_emulate_reference(struct proc *p, vaddr_t v,
|
||||
int user, int write);
|
||||
#ifdef _PMAP_MAY_USE_PROM_CONSOLE
|
||||
int pmap_uses_prom_console __P((void));
|
||||
int pmap_uses_prom_console(void);
|
||||
#endif
|
||||
|
||||
#define pmap_pte_pa(pte) (PG_PFNUM(*(pte)) << PGSHIFT)
|
||||
|
@ -243,8 +243,8 @@ do { \
|
|||
|
||||
#define pmap_pte_prot_chg(pte, np) ((np) ^ pmap_pte_prot(pte))
|
||||
|
||||
static __inline pt_entry_t *pmap_l2pte __P((pmap_t, vaddr_t, pt_entry_t *));
|
||||
static __inline pt_entry_t *pmap_l3pte __P((pmap_t, vaddr_t, pt_entry_t *));
|
||||
static __inline pt_entry_t *pmap_l2pte(pmap_t, vaddr_t, pt_entry_t *);
|
||||
static __inline pt_entry_t *pmap_l3pte(pmap_t, vaddr_t, pt_entry_t *);
|
||||
|
||||
#define pmap_l1pte(pmap, v) \
|
||||
(&(pmap)->pm_lev1map[l1pte_index((vaddr_t)(v))])
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: prom.h,v 1.11 1998/10/15 00:47:28 ross Exp $ */
|
||||
/* $NetBSD: prom.h,v 1.12 2000/06/08 03:10:06 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University.
|
||||
|
@ -47,15 +47,15 @@ typedef union {
|
|||
} prom_return_t;
|
||||
|
||||
#ifdef _STANDALONE
|
||||
int getchar __P((void));
|
||||
void putchar __P((int));
|
||||
int getchar(void);
|
||||
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);
|
||||
|
||||
void hwrpb_primary_init __P((void));
|
||||
void hwrpb_restart_setup __P((void));
|
||||
void hwrpb_primary_init(void);
|
||||
void hwrpb_restart_setup(void);
|
||||
#endif
|
||||
|
||||
/* Prom operation values. */
|
||||
|
@ -111,14 +111,14 @@ void hwrpb_restart_setup __P((void));
|
|||
|
||||
#ifndef ASSEMBLER
|
||||
#ifdef _KERNEL
|
||||
int prom_enter __P((void));
|
||||
void prom_leave __P((int));
|
||||
int prom_enter(void);
|
||||
void prom_leave(int);
|
||||
|
||||
void promcnputc __P((dev_t, int));
|
||||
int promcngetc __P((dev_t));
|
||||
int promcnlookc __P((dev_t, char *));
|
||||
void promcnputc(dev_t, int);
|
||||
int promcngetc(dev_t);
|
||||
int promcnlookc(dev_t, char *);
|
||||
|
||||
u_int64_t prom_dispatch __P((u_int64_t, u_int64_t, u_int64_t, u_int64_t,
|
||||
u_int64_t));
|
||||
u_int64_t prom_dispatch(u_int64_t, u_int64_t, u_int64_t, u_int64_t,
|
||||
u_int64_t);
|
||||
#endif /* _KERNEL */
|
||||
#endif /* ASSEMBLER */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: reg.h,v 1.3 1997/04/06 08:47:40 cgd Exp $ */
|
||||
/* $NetBSD: reg.h,v 1.4 2000/06/08 03:10:06 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994, 1995 Carnegie-Mellon University.
|
||||
|
@ -91,8 +91,8 @@ struct fpreg {
|
|||
};
|
||||
|
||||
#ifdef _KERNEL
|
||||
void restorefpstate __P((struct fpreg *));
|
||||
void savefpstate __P((struct fpreg *));
|
||||
void restorefpstate(struct fpreg *);
|
||||
void savefpstate(struct fpreg *);
|
||||
#endif
|
||||
|
||||
#endif /* _ALPHA_REG_H_ */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: sysarch.h,v 1.4 2000/02/26 18:53:12 thorpej Exp $ */
|
||||
/* $NetBSD: sysarch.h,v 1.5 2000/06/08 03:10:06 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2000 The NetBSD Foundation, Inc.
|
||||
|
@ -82,8 +82,8 @@ struct alpha_pci_conf_readwrite_args {
|
|||
|
||||
#ifdef _KERNEL
|
||||
extern u_int alpha_bus_window_count[];
|
||||
extern int (*alpha_bus_get_window) __P((int, int,
|
||||
struct alpha_bus_space_translation *));
|
||||
extern int (*alpha_bus_get_window)(int, int,
|
||||
struct alpha_bus_space_translation *);
|
||||
extern struct alpha_pci_chipset *alpha_pci_chipset;
|
||||
#else
|
||||
struct alpha_bus_window {
|
||||
|
@ -92,18 +92,18 @@ struct alpha_bus_window {
|
|||
struct alpha_bus_space_translation abw_abst;
|
||||
};
|
||||
|
||||
int alpha_bus_getwindows __P((int, struct alpha_bus_window **));
|
||||
int alpha_bus_mapwindow __P((struct alpha_bus_window *));
|
||||
void alpha_bus_unmapwindow __P((struct alpha_bus_window *));
|
||||
int alpha_bus_getwindows(int, struct alpha_bus_window **);
|
||||
int alpha_bus_mapwindow(struct alpha_bus_window *);
|
||||
void alpha_bus_unmapwindow(struct alpha_bus_window *);
|
||||
|
||||
void *alpha_pci_mem_map __P((bus_addr_t, bus_size_t, int,
|
||||
struct alpha_bus_space_translation *));
|
||||
void alpha_pci_mem_unmap __P((void *addr, bus_size_t));
|
||||
void *alpha_pci_mem_map(bus_addr_t, bus_size_t, int,
|
||||
struct alpha_bus_space_translation *);
|
||||
void alpha_pci_mem_unmap(void *addr, bus_size_t);
|
||||
|
||||
u_int32_t alpha_pci_conf_read __P((u_int, u_int, u_int, u_int));
|
||||
void alpha_pci_conf_write __P((u_int, u_int, u_int, u_int, u_int32_t));
|
||||
u_int32_t alpha_pci_conf_read(u_int, u_int, u_int, u_int);
|
||||
void alpha_pci_conf_write(u_int, u_int, u_int, u_int, u_int32_t);
|
||||
|
||||
int sysarch __P((int, void *));
|
||||
int sysarch(int, void *);
|
||||
#endif /* _KERNEL */
|
||||
|
||||
#endif /* !_ALPHA_SYSARCH_H_ */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: z8530var.h,v 1.2 2000/06/03 20:47:41 thorpej Exp $ */
|
||||
/* $NetBSD: z8530var.h,v 1.3 2000/06/08 03:10:06 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994 Gordon W. Ross
|
||||
|
@ -67,13 +67,13 @@ struct zsc_softc {
|
|||
* These could be inlines, but with the delay, speed is moot.
|
||||
*/
|
||||
|
||||
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);
|
||||
|
||||
/* Interrupt priority for the SCC chip; needs to match ZSHARD_PRI. */
|
||||
#define splzs() spltty()
|
||||
|
|
Loading…
Reference in New Issue