- ANSIfy
- remove some trailing spaces/tabs - minor style nits
This commit is contained in:
parent
aa99e59f3d
commit
08fd7bc990
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: amiga_bus_simple_4.c,v 1.2 2000/02/01 05:21:24 mhitch Exp $ */
|
/* $NetBSD: amiga_bus_simple_4.c,v 1.3 2002/01/26 13:24:53 aymeric Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
||||||
|
@ -52,11 +52,8 @@ bsrm(oabs(bsrm2_swap_), u_int16_t);
|
||||||
bswm(oabs(bswm2_swap_), u_int16_t);
|
bswm(oabs(bswm2_swap_), u_int16_t);
|
||||||
|
|
||||||
void
|
void
|
||||||
oabs(bsrm2_swap_)(handle, offset, pointer, count)
|
oabs(bsrm2_swap_)(bus_space_handle_t handle, bus_size_t offset,
|
||||||
bus_space_handle_t handle;
|
u_int16_t *pointer, bus_size_t count)
|
||||||
bus_size_t offset;
|
|
||||||
u_int16_t *pointer;
|
|
||||||
bus_size_t count;
|
|
||||||
{
|
{
|
||||||
volatile u_int16_t *p;
|
volatile u_int16_t *p;
|
||||||
|
|
||||||
|
@ -69,11 +66,8 @@ oabs(bsrm2_swap_)(handle, offset, pointer, count)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
oabs(bswm2_swap_)(handle, offset, pointer, count)
|
oabs(bswm2_swap_)(bus_space_handle_t handle, bus_size_t offset,
|
||||||
bus_space_handle_t handle;
|
const u_int16_t *pointer, bus_size_t count)
|
||||||
bus_size_t offset;
|
|
||||||
const u_int16_t *pointer;
|
|
||||||
bus_size_t count;
|
|
||||||
{
|
{
|
||||||
volatile u_int16_t *p;
|
volatile u_int16_t *p;
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: amiga_init.c,v 1.74 2001/03/02 16:29:41 mhitch Exp $ */
|
/* $NetBSD: amiga_init.c,v 1.75 2002/01/26 13:24:53 aymeric Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1994 Michael L. Hitch
|
* Copyright (c) 1994 Michael L. Hitch
|
||||||
|
@ -117,19 +117,18 @@ static u_long boot_flags;
|
||||||
u_long scsi_nosync;
|
u_long scsi_nosync;
|
||||||
int shift_nosync;
|
int shift_nosync;
|
||||||
|
|
||||||
void start_c __P((int, u_int, u_int, u_int, char *, u_int, u_long, u_long));
|
void start_c(int, u_int, u_int, u_int, char *, u_int, u_long, u_long);
|
||||||
void rollcolor __P((int));
|
void rollcolor(int);
|
||||||
static int kernel_image_magic_size __P((void));
|
static int kernel_image_magic_size(void);
|
||||||
static void kernel_image_magic_copy __P((u_char *));
|
static void kernel_image_magic_copy(u_char *);
|
||||||
int kernel_reload_write __P((struct uio *));
|
int kernel_reload_write(struct uio *);
|
||||||
extern void kernel_reload __P((char *, u_long, u_long, u_long, u_long,
|
extern void kernel_reload(char *, u_long, u_long, u_long, u_long,
|
||||||
u_long, u_long, u_long, u_long, u_long, u_long));
|
u_long, u_long, u_long, u_long, u_long, u_long);
|
||||||
extern void etext __P((void));
|
extern void etext(void);
|
||||||
void start_c_cleanup __P((void));
|
void start_c_cleanup(void);
|
||||||
|
|
||||||
void *
|
void *
|
||||||
chipmem_steal(amount)
|
chipmem_steal(long amount)
|
||||||
long amount;
|
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* steal from top of chipmem, so we don't collide with
|
* steal from top of chipmem, so we don't collide with
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: autoconf.c,v 1.78 2001/02/02 21:52:12 is Exp $ */
|
/* $NetBSD: autoconf.c,v 1.79 2002/01/26 13:24:53 aymeric Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1994 Christian E. Hopps
|
* Copyright (c) 1994 Christian E. Hopps
|
||||||
|
@ -42,10 +42,10 @@
|
||||||
#include <amiga/amiga/device.h>
|
#include <amiga/amiga/device.h>
|
||||||
#include <amiga/amiga/custom.h>
|
#include <amiga/amiga/custom.h>
|
||||||
|
|
||||||
static void findroot __P((void));
|
static void findroot(void);
|
||||||
void mbattach __P((struct device *, struct device *, void *));
|
void mbattach(struct device *, struct device *, void *);
|
||||||
int mbprint __P((void *, const char *));
|
int mbprint(void *, const char *);
|
||||||
int mbmatch __P((struct device *, struct cfdata *, void *));
|
int mbmatch(struct device *, struct cfdata *, void *);
|
||||||
|
|
||||||
#include <sys/kernel.h>
|
#include <sys/kernel.h>
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: busfuncs.c,v 1.6 1999/02/16 23:34:12 is Exp $ */
|
/* $NetBSD: busfuncs.c,v 1.7 2002/01/26 13:24:53 aymeric Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: cc.c,v 1.12 1998/08/20 19:55:06 veego Exp $ */
|
/* $NetBSD: cc.c,v 1.13 2002/01/26 13:24:53 aymeric Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1994 Christian E. Hopps
|
* Copyright (c) 1994 Christian E. Hopps
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: cc.h,v 1.12 2001/12/01 13:44:22 aymeric Exp $ */
|
/* $NetBSD: cc.h,v 1.13 2002/01/26 13:24:53 aymeric Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1994 Christian E. Hopps
|
* Copyright (c) 1994 Christian E. Hopps
|
||||||
|
@ -177,43 +177,43 @@ vaddr_t chipmem_end;
|
||||||
/*
|
/*
|
||||||
* Prototypes.
|
* Prototypes.
|
||||||
*/
|
*/
|
||||||
void custom_chips_init __P((void));
|
void custom_chips_init(void);
|
||||||
/* vertical blank server chain */
|
/* vertical blank server chain */
|
||||||
void cc_init_vbl __P((void));
|
void cc_init_vbl(void);
|
||||||
void add_vbl_function __P((struct vbl_node *, short, void *));
|
void add_vbl_function(struct vbl_node *, short, void *);
|
||||||
void remove_vbl_function __P((struct vbl_node *));
|
void remove_vbl_function(struct vbl_node *);
|
||||||
void turn_vbl_function_off __P((struct vbl_node *));
|
void turn_vbl_function_off(struct vbl_node *);
|
||||||
void turn_vbl_function_on __P((struct vbl_node *));
|
void turn_vbl_function_on(struct vbl_node *);
|
||||||
/* blitter */
|
/* blitter */
|
||||||
void cc_init_blitter __P((void));
|
void cc_init_blitter(void);
|
||||||
int is_blitter_busy __P((void));
|
int is_blitter_busy(void);
|
||||||
void wait_blit __P((void));
|
void wait_blit(void);
|
||||||
void blitter_handler __P((void));
|
void blitter_handler(void);
|
||||||
void do_blit __P((u_short));
|
void do_blit(u_short);
|
||||||
void set_blitter_control __P((u_short, u_short));
|
void set_blitter_control(u_short, u_short);
|
||||||
void set_blitter_mods __P((u_short, u_short, u_short, u_short));
|
void set_blitter_mods(u_short, u_short, u_short, u_short);
|
||||||
void set_blitter_masks __P((u_short, u_short));
|
void set_blitter_masks(u_short, u_short);
|
||||||
void set_blitter_data __P((u_short, u_short, u_short));
|
void set_blitter_data(u_short, u_short, u_short);
|
||||||
void set_blitter_pointers __P((void *, void *, void *, void *));
|
void set_blitter_pointers(void *, void *, void *, void *);
|
||||||
/* copper */
|
/* copper */
|
||||||
void install_copper_list __P((cop_t *));
|
void install_copper_list(cop_t *);
|
||||||
cop_t *find_copper_inst __P((cop_t *, u_short));
|
cop_t *find_copper_inst(cop_t *, u_short);
|
||||||
void cc_init_copper __P((void));
|
void cc_init_copper(void);
|
||||||
void copper_handler __P((void));
|
void copper_handler(void);
|
||||||
/* audio */
|
/* audio */
|
||||||
void cc_init_audio __P((void));
|
void cc_init_audio(void);
|
||||||
void play_sample __P((u_short, u_short *, u_short, u_short, u_short, u_long));
|
void play_sample(u_short, u_short *, u_short, u_short, u_short, u_long);
|
||||||
void audio_handler __P((void));
|
void audio_handler(void);
|
||||||
/* chipmem */
|
/* chipmem */
|
||||||
void cc_init_chipmem __P((void));
|
void cc_init_chipmem(void);
|
||||||
void * alloc_chipmem __P((u_long));
|
void * alloc_chipmem(u_long);
|
||||||
void free_chipmem __P((void *));
|
void free_chipmem(void *);
|
||||||
u_long avail_chipmem __P((int));
|
u_long avail_chipmem(int);
|
||||||
u_long sizeof_chipmem __P((void *));
|
u_long sizeof_chipmem(void *);
|
||||||
|
|
||||||
void wait_tof __P((void));
|
void wait_tof(void);
|
||||||
void vbl_handler __P((void));
|
void vbl_handler(void);
|
||||||
void *chipmem_steal __P((long));
|
void *chipmem_steal(long);
|
||||||
|
|
||||||
#endif /* _CC_H */
|
#endif /* _CC_H */
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: cia.c,v 1.6 1995/02/12 19:34:17 chopps Exp $ */
|
/* $NetBSD: cia.c,v 1.7 2002/01/26 13:24:53 aymeric Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1993 Markus Wild
|
* Copyright (c) 1993 Markus Wild
|
||||||
|
@ -51,12 +51,12 @@
|
||||||
|
|
||||||
struct cia_intr_dispatch {
|
struct cia_intr_dispatch {
|
||||||
u_char mask;
|
u_char mask;
|
||||||
void (*handler) __P ((int));
|
void (*handler)(int);
|
||||||
};
|
};
|
||||||
|
|
||||||
static void not_used __P((int));
|
static void not_used(int);
|
||||||
void kbdintr __P((int));
|
void kbdintr(int);
|
||||||
void parintr __P((int));
|
void parintr(int);
|
||||||
|
|
||||||
/* handlers for CIA-A (IPL-2) */
|
/* handlers for CIA-A (IPL-2) */
|
||||||
static struct cia_intr_dispatch ciaa_ints[] = {
|
static struct cia_intr_dispatch ciaa_ints[] = {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: cia.h,v 1.11 2001/08/31 04:44:55 simonb Exp $ */
|
/* $NetBSD: cia.h,v 1.12 2002/01/26 13:24:53 aymeric Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Mach Operating System
|
* Mach Operating System
|
||||||
|
@ -138,8 +138,8 @@ vaddr_t CIAAbase, CIABbase, CIAADDR;
|
||||||
#define CLRDSR(c) (c |= CIAB_PRA_DSR)
|
#define CLRDSR(c) (c |= CIAB_PRA_DSR)
|
||||||
#define ISDSR(c) (!(c & CIAB_PRA_DSR))
|
#define ISDSR(c) (!(c & CIAB_PRA_DSR))
|
||||||
|
|
||||||
void dispatch_cia_ints __P((int, int));
|
void dispatch_cia_ints(int, int);
|
||||||
void ciaa_intr __P((void));
|
void ciaa_intr(void);
|
||||||
void ciab_intr __P((void));
|
void ciab_intr(void);
|
||||||
|
|
||||||
#endif /* _AMIGA_CIA_ */
|
#endif /* _AMIGA_CIA_ */
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: color.h,v 1.8 1995/02/12 19:34:17 chopps Exp $ */
|
/* $NetBSD: color.h,v 1.9 2002/01/26 13:24:53 aymeric Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1994 Christian E. Hopps
|
* Copyright (c) 1994 Christian E. Hopps
|
||||||
|
@ -56,5 +56,5 @@
|
||||||
#define COL24_LGREY 0x0880
|
#define COL24_LGREY 0x0880
|
||||||
#define COL24_WHITE 0xffff
|
#define COL24_WHITE 0xffff
|
||||||
|
|
||||||
void rollcolor __P((int));
|
void rollcolor(int);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: conf.c,v 1.62 2001/03/21 22:25:53 lukem Exp $ */
|
/* $NetBSD: conf.c,v 1.63 2002/01/26 13:24:53 aymeric Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1991 The Regents of the University of California.
|
* Copyright (c) 1991 The Regents of the University of California.
|
||||||
|
@ -193,9 +193,9 @@ struct cdevsw cdevsw[] =
|
||||||
int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);
|
int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);
|
||||||
|
|
||||||
#ifdef BANKEDDEVPAGER
|
#ifdef BANKEDDEVPAGER
|
||||||
extern int grfbanked_get __P((int, int, int));
|
extern int grfbanked_get(int, int, int);
|
||||||
extern int grfbanked_set __P((int, int));
|
extern int grfbanked_set(int, int);
|
||||||
extern int grfbanked_cur __P((int));
|
extern int grfbanked_cur(int);
|
||||||
|
|
||||||
struct bankeddevsw bankeddevsw[sizeof (cdevsw) / sizeof (cdevsw[0])] = {
|
struct bankeddevsw bankeddevsw[sizeof (cdevsw) / sizeof (cdevsw[0])] = {
|
||||||
{ 0, 0, 0 }, /* 0 */
|
{ 0, 0, 0 }, /* 0 */
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: db_memrw.c,v 1.11 2000/06/29 08:44:03 mrg Exp $ */
|
/* $NetBSD: db_memrw.c,v 1.12 2002/01/26 13:24:53 aymeric Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1996 The NetBSD Foundation, Inc.
|
* Copyright (c) 1996 The NetBSD Foundation, Inc.
|
||||||
|
@ -57,11 +57,11 @@
|
||||||
|
|
||||||
#include <m68k/cacheops.h>
|
#include <m68k/cacheops.h>
|
||||||
|
|
||||||
static char db_read_data __P((char *src));
|
static char db_read_data(char *src);
|
||||||
void db_read_bytes __P((db_addr_t addr, register int size, register char *data));
|
void db_read_bytes(db_addr_t addr, register int size, register char *data);
|
||||||
static void db_write_text __P((char *dst, int ch));
|
static void db_write_text(char *dst, int ch);
|
||||||
static void db_write_data __P((char *dst, int ch));
|
static void db_write_data(char *dst, int ch);
|
||||||
void db_write_bytes __P((db_addr_t addr, int size, char *data));
|
void db_write_bytes(db_addr_t addr, int size, char *data);
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: device.h,v 1.6 1996/08/27 21:54:26 cgd Exp $ */
|
/* $NetBSD: device.h,v 1.7 2002/01/26 13:24:54 aymeric Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1994 Christian E. Hopps
|
* Copyright (c) 1994 Christian E. Hopps
|
||||||
|
@ -37,11 +37,10 @@
|
||||||
* *and know it* (i.e. everything is really tight certain params won't be
|
* *and know it* (i.e. everything is really tight certain params won't be
|
||||||
* passed in some cases and the devices will deal with it)
|
* passed in some cases and the devices will deal with it)
|
||||||
*/
|
*/
|
||||||
void config_console __P((void));
|
void config_console(void);
|
||||||
int amiga_config_found __P((struct cfdata *, struct device *,
|
int amiga_config_found(struct cfdata *, struct device *, void *, cfprint_t );
|
||||||
void *, cfprint_t ));
|
int simple_devprint(void *, const char *);
|
||||||
int simple_devprint __P((void *, const char *));
|
int matchname(char *, char *);
|
||||||
int matchname __P((char *, char *));
|
|
||||||
/*
|
/*
|
||||||
* false when initing for the console.
|
* false when initing for the console.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: disksubr.c,v 1.37 2001/05/06 20:49:43 is Exp $ */
|
/* $NetBSD: disksubr.c,v 1.38 2002/01/26 13:24:54 aymeric Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1994 Christian E. Hopps
|
* Copyright (c) 1994 Christian E. Hopps
|
||||||
|
@ -81,10 +81,10 @@ struct rdbmap {
|
||||||
|
|
||||||
#define baddr(bp) (void *)((bp)->b_data)
|
#define baddr(bp) (void *)((bp)->b_data)
|
||||||
|
|
||||||
u_long rdbchksum __P((void *));
|
u_long rdbchksum(void *);
|
||||||
struct adostype getadostype __P((u_long));
|
struct adostype getadostype(u_long);
|
||||||
struct rdbmap *getrdbmap __P((dev_t, void (*)(struct buf *), struct disklabel *,
|
struct rdbmap *getrdbmap(dev_t, void (*)(struct buf *), struct disklabel *,
|
||||||
struct cpu_disklabel *));
|
struct cpu_disklabel *);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Attempt to read a disk label from a device
|
* Attempt to read a disk label from a device
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: dkbad.c,v 1.7 1996/04/21 21:07:00 veego Exp $ */
|
/* $NetBSD: dkbad.c,v 1.8 2002/01/26 13:24:54 aymeric Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1982, 1986, 1990 The Regents of the University of California.
|
* Copyright (c) 1982, 1986, 1990 The Regents of the University of California.
|
||||||
|
@ -40,7 +40,7 @@
|
||||||
#include <sys/buf.h>
|
#include <sys/buf.h>
|
||||||
#include <sys/dkbad.h>
|
#include <sys/dkbad.h>
|
||||||
|
|
||||||
int isbad __P((struct dkbad *, int, int, int));
|
int isbad(struct dkbad *, int, int, int);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Search the bad sector table looking for
|
* Search the bad sector table looking for
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* $NetBSD: drcustom.h,v 1.4 1999/09/25 21:47:04 is Exp $
|
* $NetBSD: drcustom.h,v 1.5 2002/01/26 13:24:54 aymeric Exp $
|
||||||
*
|
*
|
||||||
* Motherboard addresses for the DraCo.
|
* Motherboard addresses for the DraCo.
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
/* $NetBSD: gayle.h,v 1.1 2000/01/23 20:53:18 aymeric Exp $ */
|
/* $NetBSD: gayle.h,v 1.2 2002/01/26 13:24:54 aymeric Exp $ */
|
||||||
|
#ifndef AMIGA_GAYLE_H_
|
||||||
|
#define AMIGA_GAYLE_H_
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
|
@ -51,4 +53,6 @@ struct gayle_struct {
|
||||||
extern struct gayle_struct *gayle_base_virtual_address;
|
extern struct gayle_struct *gayle_base_virtual_address;
|
||||||
#define gayle (*gayle_base_virtual_address)
|
#define gayle (*gayle_base_virtual_address)
|
||||||
|
|
||||||
void gayle_init __P((void));
|
void gayle_init(void);
|
||||||
|
|
||||||
|
#endif /* AMIGA_GAYLE_H_ */
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: isr.h,v 1.8 1996/04/21 21:07:02 veego Exp $ */
|
/* $NetBSD: isr.h,v 1.9 2002/01/26 13:24:54 aymeric Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1982 Regents of the University of California.
|
* Copyright (c) 1982 Regents of the University of California.
|
||||||
|
@ -38,7 +38,7 @@
|
||||||
struct isr {
|
struct isr {
|
||||||
struct isr *isr_forw;
|
struct isr *isr_forw;
|
||||||
struct isr *isr_back;
|
struct isr *isr_back;
|
||||||
int (*isr_intr) __P((void *));
|
int (*isr_intr)(void *);
|
||||||
void *isr_arg;
|
void *isr_arg;
|
||||||
int isr_ipl;
|
int isr_ipl;
|
||||||
};
|
};
|
||||||
|
@ -47,10 +47,10 @@ struct isr {
|
||||||
#define ISRIPL(x) ((x) - 3)
|
#define ISRIPL(x) ((x) - 3)
|
||||||
|
|
||||||
#ifdef _KERNEL
|
#ifdef _KERNEL
|
||||||
void add_isr __P((struct isr *));
|
void add_isr(struct isr *);
|
||||||
void remove_isr __P((struct isr *));
|
void remove_isr(struct isr *);
|
||||||
typedef void (*sifunc_t) __P((void *, void *));
|
typedef void (*sifunc_t)(void *, void *);
|
||||||
void alloc_sicallback __P((void));
|
void alloc_sicallback(void);
|
||||||
void add_sicallback __P((sifunc_t, void *, void *));
|
void add_sicallback(sifunc_t, void *, void *);
|
||||||
void rem_sicallback __P((sifunc_t));
|
void rem_sicallback(sifunc_t);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: locore.s,v 1.129 2002/01/12 11:45:26 aymeric Exp $ */
|
/* $NetBSD: locore.s,v 1.130 2002/01/26 13:24:54 aymeric Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1988 University of Utah.
|
* Copyright (c) 1988 University of Utah.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: machdep.c,v 1.165 2001/11/07 23:25:03 aymeric Exp $ */
|
/* $NetBSD: machdep.c,v 1.166 2002/01/26 13:24:54 aymeric Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1988 University of Utah.
|
* Copyright (c) 1988 University of Utah.
|
||||||
|
@ -106,20 +106,20 @@
|
||||||
#include "ser.h"
|
#include "ser.h"
|
||||||
|
|
||||||
/* prototypes */
|
/* prototypes */
|
||||||
void identifycpu __P((void));
|
void identifycpu(void);
|
||||||
vm_offset_t reserve_dumppages __P((vm_offset_t));
|
vm_offset_t reserve_dumppages(vm_offset_t);
|
||||||
void dumpsys __P((void));
|
void dumpsys(void);
|
||||||
void initcpu __P((void));
|
void initcpu(void);
|
||||||
void straytrap __P((int, u_short));
|
void straytrap(int, u_short);
|
||||||
static void netintr __P((void));
|
static void netintr(void);
|
||||||
static void call_sicallbacks __P((void));
|
static void call_sicallbacks(void);
|
||||||
static void _softintr_callit __P((void *, void *));
|
static void _softintr_callit(void *, void *);
|
||||||
void intrhand __P((int));
|
void intrhand(int);
|
||||||
#if NSER > 0
|
#if NSER > 0
|
||||||
void ser_outintr __P((void));
|
void ser_outintr(void);
|
||||||
#endif
|
#endif
|
||||||
#if NFD > 0
|
#if NFD > 0
|
||||||
void fdintr __P((int));
|
void fdintr(int);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
volatile unsigned int interrupt_depth = 0;
|
volatile unsigned int interrupt_depth = 0;
|
||||||
|
@ -679,7 +679,7 @@ dumpsys()
|
||||||
unsigned bytes, i, n, seg;
|
unsigned bytes, i, n, seg;
|
||||||
int maddr, psize;
|
int maddr, psize;
|
||||||
daddr_t blkno;
|
daddr_t blkno;
|
||||||
int (*dump) __P((dev_t, daddr_t, caddr_t, size_t));
|
int (*dump)(dev_t, daddr_t, caddr_t, size_t);
|
||||||
int error = 0;
|
int error = 0;
|
||||||
kcore_seg_t *kseg_p;
|
kcore_seg_t *kseg_p;
|
||||||
cpu_kcore_hdr_t *chdr_p;
|
cpu_kcore_hdr_t *chdr_p;
|
||||||
|
@ -822,7 +822,7 @@ microtime(tvp)
|
||||||
void
|
void
|
||||||
initcpu()
|
initcpu()
|
||||||
{
|
{
|
||||||
typedef void trapfun __P((void));
|
typedef void trapfun(void);
|
||||||
|
|
||||||
/* XXX should init '40 vecs here, too */
|
/* XXX should init '40 vecs here, too */
|
||||||
#if defined(M68060) || defined(M68040) || defined(DRACO) || defined(FPU_EMULATE)
|
#if defined(M68060) || defined(M68040) || defined(DRACO) || defined(FPU_EMULATE)
|
||||||
|
@ -1028,7 +1028,7 @@ netintr()
|
||||||
*/
|
*/
|
||||||
struct si_callback {
|
struct si_callback {
|
||||||
struct si_callback *next;
|
struct si_callback *next;
|
||||||
void (*function) __P((void *rock1, void *rock2));
|
void (*function)(void *rock1, void *rock2);
|
||||||
void *rock1, *rock2;
|
void *rock1, *rock2;
|
||||||
};
|
};
|
||||||
static struct si_callback *si_callbacks;
|
static struct si_callback *si_callbacks;
|
||||||
|
@ -1057,7 +1057,7 @@ _softintr_callit(rock1, rock2)
|
||||||
void *
|
void *
|
||||||
softintr_establish(ipl, func, arg)
|
softintr_establish(ipl, func, arg)
|
||||||
int ipl;
|
int ipl;
|
||||||
void func __P((void *));
|
void func(void *);
|
||||||
void *arg;
|
void *arg;
|
||||||
{
|
{
|
||||||
struct si_callback *si;
|
struct si_callback *si;
|
||||||
|
@ -1120,7 +1120,7 @@ softintr_schedule(vsi)
|
||||||
|
|
||||||
void
|
void
|
||||||
add_sicallback (function, rock1, rock2)
|
add_sicallback (function, rock1, rock2)
|
||||||
void (*function) __P((void *rock1, void *rock2));
|
void (*function)(void *rock1, void *rock2);
|
||||||
void *rock1, *rock2;
|
void *rock1, *rock2;
|
||||||
{
|
{
|
||||||
struct si_callback *si;
|
struct si_callback *si;
|
||||||
|
@ -1166,7 +1166,7 @@ add_sicallback (function, rock1, rock2)
|
||||||
|
|
||||||
void
|
void
|
||||||
rem_sicallback(function)
|
rem_sicallback(function)
|
||||||
void (*function) __P((void *rock1, void *rock2));
|
void (*function)(void *rock1, void *rock2);
|
||||||
{
|
{
|
||||||
struct si_callback *si, *psi, *nsi;
|
struct si_callback *si, *psi, *nsi;
|
||||||
int s;
|
int s;
|
||||||
|
@ -1198,7 +1198,7 @@ call_sicallbacks()
|
||||||
struct si_callback *si;
|
struct si_callback *si;
|
||||||
int s;
|
int s;
|
||||||
void *rock1, *rock2;
|
void *rock1, *rock2;
|
||||||
void (*function) __P((void *, void *));
|
void (*function)(void *, void *);
|
||||||
|
|
||||||
do {
|
do {
|
||||||
s = splhigh ();
|
s = splhigh ();
|
||||||
|
@ -1522,7 +1522,7 @@ intrhand(sr)
|
||||||
int panicbutton = 1; /* non-zero if panic buttons are enabled */
|
int panicbutton = 1; /* non-zero if panic buttons are enabled */
|
||||||
int crashandburn = 0;
|
int crashandburn = 0;
|
||||||
int candbdelay = 50; /* give em half a second */
|
int candbdelay = 50; /* give em half a second */
|
||||||
void candbtimer __P((void));
|
void candbtimer(void);
|
||||||
struct callout candbtimer_ch = CALLOUT_INITIALIZER;
|
struct callout candbtimer_ch = CALLOUT_INITIALIZER;
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: memlist.h,v 1.4 1994/10/26 02:02:02 cgd Exp $ */
|
/* $NetBSD: memlist.h,v 1.5 2002/01/26 13:24:54 aymeric Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1994 Christian E. Hopps
|
* Copyright (c) 1994 Christian E. Hopps
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: pmap.c,v 1.97 2002/01/02 00:51:33 chs Exp $ */
|
/* $NetBSD: pmap.c,v 1.98 2002/01/26 13:24:54 aymeric Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
||||||
|
@ -186,8 +186,8 @@ int pmapdebug = PDB_PARANOIA;
|
||||||
|
|
||||||
#define PMAP_DPRINTF(l, x) if (pmapdebug & (l)) printf x
|
#define PMAP_DPRINTF(l, x) if (pmapdebug & (l)) printf x
|
||||||
|
|
||||||
static void pmap_check_wiring __P((char *, vaddr_t));
|
static void pmap_check_wiring(char *, vaddr_t);
|
||||||
static void pmap_pvdump __P((paddr_t));
|
static void pmap_pvdump(paddr_t);
|
||||||
#else
|
#else
|
||||||
#define PMAP_DPRINTF(l, x)
|
#define PMAP_DPRINTF(l, x)
|
||||||
#endif
|
#endif
|
||||||
|
@ -302,21 +302,21 @@ extern const vaddr_t amiga_uptbase;
|
||||||
|
|
||||||
extern paddr_t z2mem_start;
|
extern paddr_t z2mem_start;
|
||||||
|
|
||||||
extern vaddr_t reserve_dumppages __P((vaddr_t));
|
extern vaddr_t reserve_dumppages(vaddr_t);
|
||||||
|
|
||||||
boolean_t pmap_testbit __P((paddr_t, int));
|
boolean_t pmap_testbit(paddr_t, int);
|
||||||
void pmap_enter_ptpage __P((pmap_t, vaddr_t));
|
void pmap_enter_ptpage(pmap_t, vaddr_t);
|
||||||
static void pmap_ptpage_addref __P((vaddr_t));
|
static void pmap_ptpage_addref(vaddr_t);
|
||||||
static int pmap_ptpage_delref __P((vaddr_t));
|
static int pmap_ptpage_delref(vaddr_t);
|
||||||
static void pmap_changebit __P((vaddr_t, int, boolean_t));
|
static void pmap_changebit(vaddr_t, int, boolean_t);
|
||||||
struct pv_entry * pmap_alloc_pv __P((void));
|
struct pv_entry * pmap_alloc_pv(void);
|
||||||
void pmap_free_pv __P((struct pv_entry *));
|
void pmap_free_pv(struct pv_entry *);
|
||||||
void pmap_pinit __P((pmap_t));
|
void pmap_pinit(pmap_t);
|
||||||
void pmap_release __P((pmap_t));
|
void pmap_release(pmap_t);
|
||||||
static void pmap_remove_mapping __P((pmap_t, vaddr_t, pt_entry_t *, int));
|
static void pmap_remove_mapping(pmap_t, vaddr_t, pt_entry_t *, int);
|
||||||
|
|
||||||
static void amiga_protection_init __P((void));
|
static void amiga_protection_init(void);
|
||||||
void pmap_collect1 __P((pmap_t, paddr_t, paddr_t));
|
void pmap_collect1(pmap_t, paddr_t, paddr_t);
|
||||||
|
|
||||||
/* pmap_remove_mapping flags */
|
/* pmap_remove_mapping flags */
|
||||||
#define PRM_TFLUSH 0x01
|
#define PRM_TFLUSH 0x01
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: simple_busfuncs.c,v 1.2 2000/01/23 21:02:18 aymeric Exp $ */
|
/* $NetBSD: simple_busfuncs.c,v 1.3 2002/01/26 13:24:55 aymeric Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
||||||
|
@ -56,13 +56,13 @@ Error AMIGA_SIMPLE_BUS_STRIDE not defined in __FILE__, line __LINE__ .
|
||||||
|
|
||||||
/* function declarations */
|
/* function declarations */
|
||||||
|
|
||||||
int oabs(bsm_)__P((bus_space_tag_t, bus_addr_t, bus_size_t, int,
|
int oabs(bsm_)(bus_space_tag_t, bus_addr_t, bus_size_t, int,
|
||||||
bus_space_handle_t *));
|
bus_space_handle_t *);
|
||||||
|
|
||||||
int oabs(bsms_)__P((bus_space_handle_t, bus_size_t, bus_size_t,
|
int oabs(bsms_)(bus_space_handle_t, bus_size_t, bus_size_t,
|
||||||
bus_space_handle_t *));
|
bus_space_handle_t *);
|
||||||
|
|
||||||
void oabs(bsu_)__P((bus_space_handle_t, bus_size_t));
|
void oabs(bsu_)(bus_space_handle_t, bus_size_t);
|
||||||
|
|
||||||
bsr (oabs(bsr1_), u_int8_t);
|
bsr (oabs(bsr1_), u_int8_t);
|
||||||
bsw (oabs(bsw1_), u_int8_t);
|
bsw (oabs(bsw1_), u_int8_t);
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: sys_machdep.c,v 1.29 2000/12/13 18:13:05 jdolecek Exp $ */
|
/* $NetBSD: sys_machdep.c,v 1.30 2002/01/26 13:24:55 aymeric Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1982, 1986 Regents of the University of California.
|
* Copyright (c) 1982, 1986 Regents of the University of California.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: trap.c,v 1.85 2001/06/02 18:09:09 chs Exp $ */
|
/* $NetBSD: trap.c,v 1.86 2002/01/26 13:24:55 aymeric Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1988 University of Utah.
|
* Copyright (c) 1988 University of Utah.
|
||||||
|
@ -180,18 +180,18 @@ int mmudebug = 0;
|
||||||
|
|
||||||
extern struct pcb *curpcb;
|
extern struct pcb *curpcb;
|
||||||
extern char fubail[], subail[];
|
extern char fubail[], subail[];
|
||||||
int _write_back __P((u_int, u_int, u_int, u_int, struct vm_map *));
|
int _write_back(u_int, u_int, u_int, u_int, struct vm_map *);
|
||||||
static void userret __P((struct proc *, int, u_quad_t));
|
static void userret(struct proc *, int, u_quad_t);
|
||||||
void panictrap __P((int, u_int, u_int, struct frame *));
|
void panictrap(int, u_int, u_int, struct frame *);
|
||||||
void trapcpfault __P((struct proc *, struct frame *));
|
void trapcpfault(struct proc *, struct frame *);
|
||||||
void trapmmufault __P((int, u_int, u_int, struct frame *, struct proc *,
|
void trapmmufault(int, u_int, u_int, struct frame *, struct proc *,
|
||||||
u_quad_t));
|
u_quad_t);
|
||||||
void trap __P((int, u_int, u_int, struct frame));
|
void trap(int, u_int, u_int, struct frame);
|
||||||
#ifdef DDB
|
#ifdef DDB
|
||||||
#include <m68k/db_machdep.h>
|
#include <m68k/db_machdep.h>
|
||||||
int kdb_trap __P((int, db_regs_t *));
|
int kdb_trap(int, db_regs_t *);
|
||||||
#endif
|
#endif
|
||||||
void _wb_fault __P((void));
|
void _wb_fault(void);
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: vm_machdep.c,v 1.61 2001/09/10 21:19:10 chris Exp $ */
|
/* $NetBSD: vm_machdep.c,v 1.62 2002/01/26 13:24:55 aymeric Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1988 University of Utah.
|
* Copyright (c) 1988 University of Utah.
|
||||||
|
@ -84,7 +84,7 @@ cpu_fork(p1, p2, stack, stacksize, func, arg)
|
||||||
register struct proc *p1, *p2;
|
register struct proc *p1, *p2;
|
||||||
void *stack;
|
void *stack;
|
||||||
size_t stacksize;
|
size_t stacksize;
|
||||||
void (*func) __P((void *));
|
void (*func)(void *);
|
||||||
void *arg;
|
void *arg;
|
||||||
{
|
{
|
||||||
register struct pcb *pcb = &p2->p_addr->u_pcb;
|
register struct pcb *pcb = &p2->p_addr->u_pcb;
|
||||||
|
|
Loading…
Reference in New Issue