Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/amiga/dev - ANSIfy
details: https://anonhg.NetBSD.org/src/rev/88007db20599
branches: trunk
changeset: 521219:88007db20599
user: aymeric <aymeric%NetBSD.org@localhost>
date: Sat Jan 26 13:40:52 2002 +0000
description:
- ANSIfy
- remove some trailing spaces/tabs
- minor style nits
diffstat:
sys/arch/amiga/dev/a2kbbc.c | 43 +-
sys/arch/amiga/dev/a34kbbc.c | 29 +-
sys/arch/amiga/dev/afsc.c | 24 +-
sys/arch/amiga/dev/ahsc.c | 62 +-
sys/arch/amiga/dev/amidisplaycc.c | 439 +-
sys/arch/amiga/dev/aster.c | 21 +-
sys/arch/amiga/dev/atzsc.c | 62 +-
sys/arch/amiga/dev/atzscreg.h | 4 +-
sys/arch/amiga/dev/aucc.c | 305 +-
sys/arch/amiga/dev/auccvar.h | 6 +-
sys/arch/amiga/dev/bzivsc.c | 74 +-
sys/arch/amiga/dev/bzsc.c | 74 +-
sys/arch/amiga/dev/bztzsc.c | 74 +-
sys/arch/amiga/dev/cbiiisc.c | 25 +-
sys/arch/amiga/dev/cbiisc.c | 74 +-
sys/arch/amiga/dev/cbsc.c | 74 +-
sys/arch/amiga/dev/clock.c | 120 +-
sys/arch/amiga/dev/com_supio.c | 24 +-
sys/arch/amiga/dev/drbbc.c | 50 +-
sys/arch/amiga/dev/drsc.c | 25 +-
sys/arch/amiga/dev/drsupio.c | 28 +-
sys/arch/amiga/dev/empsc.c | 22 +-
sys/arch/amiga/dev/event.c | 18 +-
sys/arch/amiga/dev/event_var.h | 10 +-
sys/arch/amiga/dev/fd.c | 264 +-
sys/arch/amiga/dev/flsc.c | 75 +-
sys/arch/amiga/dev/gayle_pcmcia.c | 216 +-
sys/arch/amiga/dev/genpar.c | 4 +-
sys/arch/amiga/dev/grf.c | 99 +-
sys/arch/amiga/dev/grf_cc.c | 57 +-
sys/arch/amiga/dev/grf_ccreg.h | 8 +-
sys/arch/amiga/dev/grf_cl.c | 80 +-
sys/arch/amiga/dev/grf_clreg.h | 20 +-
sys/arch/amiga/dev/grf_cv.c | 177 +-
sys/arch/amiga/dev/grf_cv3d.c | 168 +-
sys/arch/amiga/dev/grf_cv3dreg.h | 28 +-
sys/arch/amiga/dev/grf_cvreg.h | 28 +-
sys/arch/amiga/dev/grf_et.c | 175 +-
sys/arch/amiga/dev/grf_etreg.h | 20 +-
sys/arch/amiga/dev/grf_rh.c | 632 +-
sys/arch/amiga/dev/grf_rhreg.h | 157 +-
sys/arch/amiga/dev/grf_rt.c | 547 +-
sys/arch/amiga/dev/grf_rtreg.h | 100 +-
sys/arch/amiga/dev/grf_ul.c | 126 +-
sys/arch/amiga/dev/grf_ulreg.h | 4 +-
sys/arch/amiga/dev/grf_ultms.g | 20 +-
sys/arch/amiga/dev/grfabs.c | 82 +-
sys/arch/amiga/dev/grfabs_cc.c | 190 +-
sys/arch/amiga/dev/grfabs_ccglb.c | 18 +-
sys/arch/amiga/dev/grfabs_ccreg.h | 4 +-
sys/arch/amiga/dev/grfabs_reg.h | 68 +-
sys/arch/amiga/dev/grfioctl.h | 8 +-
sys/arch/amiga/dev/grfvar.h | 23 +-
sys/arch/amiga/dev/gtsc.c | 68 +-
sys/arch/amiga/dev/gvpbus.c | 29 +-
sys/arch/amiga/dev/gvpio.c | 26 +-
sys/arch/amiga/dev/hyper.c | 21 +-
sys/arch/amiga/dev/idesc.c | 164 +-
sys/arch/amiga/dev/if_bah_zbus.c | 21 +-
sys/arch/amiga/dev/if_ed.c | 120 +-
sys/arch/amiga/dev/if_es.c | 68 +-
sys/arch/amiga/dev/if_le.c | 112 +-
sys/arch/amiga/dev/if_ne_zbus.c | 21 +-
sys/arch/amiga/dev/if_qn.c | 96 +-
sys/arch/amiga/dev/ioblix_zbus.c | 21 +-
sys/arch/amiga/dev/isic_supio.c | 54 +-
sys/arch/amiga/dev/ite.c | 320 +-
sys/arch/amiga/dev/ite_cc.c | 288 +-
sys/arch/amiga/dev/ite_cl.c | 57 +-
sys/arch/amiga/dev/ite_cv.c | 56 +-
sys/arch/amiga/dev/ite_cv3d.c | 56 +-
sys/arch/amiga/dev/ite_et.c | 64 +-
sys/arch/amiga/dev/ite_rh.c | 54 +-
sys/arch/amiga/dev/ite_rt.c | 220 +-
sys/arch/amiga/dev/ite_ul.c | 76 +-
sys/arch/amiga/dev/itevar.h | 42 +-
sys/arch/amiga/dev/ivsc.c | 46 +-
sys/arch/amiga/dev/kbd.c | 171 +-
sys/arch/amiga/dev/kbdmap.c | 24 +-
sys/arch/amiga/dev/kbdmap.h | 6 +-
sys/arch/amiga/dev/kf_8x11.c | 2 +-
sys/arch/amiga/dev/kf_8x8.c | 6 +-
sys/arch/amiga/dev/lpt_supio.c | 22 +-
sys/arch/amiga/dev/melody.c | 28 +-
sys/arch/amiga/dev/mfc.c | 120 +-
sys/arch/amiga/dev/mgnsc.c | 24 +-
sys/arch/amiga/dev/mlhsc.c | 41 +-
sys/arch/amiga/dev/ms.c | 70 +-
sys/arch/amiga/dev/msc.c | 164 +-
sys/arch/amiga/dev/msc6502.h | 516 +-
sys/arch/amiga/dev/mscreg.h | 4 +-
sys/arch/amiga/dev/otgsc.c | 46 +-
sys/arch/amiga/dev/par.c | 142 +-
sys/arch/amiga/dev/repulse.c | 34 +-
sys/arch/amiga/dev/repulse_firmware.h | 5828 ++++++++++++++++----------------
sys/arch/amiga/dev/rtc.h | 10 +-
sys/arch/amiga/dev/rtmondefs.c | 2 +-
sys/arch/amiga/dev/rtmons | 20 +-
sys/arch/amiga/dev/sbic.c | 182 +-
sys/arch/amiga/dev/sbicvar.h | 21 +-
sys/arch/amiga/dev/sci.c | 80 +-
sys/arch/amiga/dev/scivar.h | 12 +-
sys/arch/amiga/dev/ser.c | 194 +-
sys/arch/amiga/dev/siop.c | 107 +-
sys/arch/amiga/dev/siop2.c | 108 +-
sys/arch/amiga/dev/siopvar.h | 30 +-
sys/arch/amiga/dev/view.c | 106 +-
sys/arch/amiga/dev/viewioctl.h | 6 +-
sys/arch/amiga/dev/viewvar.h | 4 +-
sys/arch/amiga/dev/wdc_amiga.c | 20 +-
sys/arch/amiga/dev/wesc.c | 28 +-
sys/arch/amiga/dev/wskbdmap_amiga.c | 107 +-
sys/arch/amiga/dev/wstsc.c | 66 +-
sys/arch/amiga/dev/zbus.c | 44 +-
sys/arch/amiga/dev/zbusvar.h | 4 +-
sys/arch/amiga/dev/zssc.c | 28 +-
116 files changed, 6821 insertions(+), 8791 deletions(-)
diffs (truncated from 28967 to 300 lines):
diff -r 5b9bda9f2939 -r 88007db20599 sys/arch/amiga/dev/a2kbbc.c
--- a/sys/arch/amiga/dev/a2kbbc.c Sat Jan 26 13:27:53 2002 +0000
+++ b/sys/arch/amiga/dev/a2kbbc.c Sat Jan 26 13:40:52 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: a2kbbc.c,v 1.10 2000/03/15 20:40:00 kleink Exp $ */
+/* $NetBSD: a2kbbc.c,v 1.11 2002/01/26 13:40:52 aymeric Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -56,22 +56,19 @@
#include <dev/clock_subr.h>
-int a2kbbc_match __P((struct device *, struct cfdata *, void *));
-void a2kbbc_attach __P((struct device *, struct device *, void *));
+int a2kbbc_match(struct device *, struct cfdata *, void *);
+void a2kbbc_attach(struct device *, struct device *, void *);
struct cfattach a2kbbc_ca = {
sizeof(struct device), a2kbbc_match, a2kbbc_attach
-};
+};
void *a2kclockaddr;
-int a2kugettod __P((struct timeval *));
-int a2kusettod __P((struct timeval *));
+int a2kugettod(struct timeval *);
+int a2kusettod(struct timeval *);
int
-a2kbbc_match(pdp, cfp, auxp)
- struct device *pdp;
- struct cfdata *cfp;
- void *auxp;
+a2kbbc_match(struct device *pdp, struct cfdata *cfp, void *auxp)
{
static int a2kbbc_matched = 0;
@@ -82,7 +79,7 @@
if (a2kbbc_matched)
return (0);
- if (/* is_a1200() || */ is_a3000() || is_a4000()
+ if (/* is_a1200() || */ is_a3000() || is_a4000()
#ifdef DRACO
|| is_draco()
#endif
@@ -101,9 +98,7 @@
* Attach us to the rtc function pointers.
*/
void
-a2kbbc_attach(pdp, dp, auxp)
- struct device *pdp, *dp;
- void *auxp;
+a2kbbc_attach(struct device *pdp, struct device *dp, void *auxp)
{
printf("\n");
a2kclockaddr = (void *)ztwomap(0xdc0000);
@@ -113,8 +108,7 @@
}
int
-a2kugettod(tvp)
- struct timeval *tvp;
+a2kugettod(struct timeval *tvp)
{
struct rtclock2000 *rt;
struct clock_ymdhms dt;
@@ -167,8 +161,8 @@
dt.dt_hour += 12;
}
- /*
- * release the clock
+ /*
+ * release the clock
*/
rt->control1 &= ~A2CONTROL1_HOLD;
@@ -177,11 +171,11 @@
dt.dt_year += 100;
if ((dt.dt_hour > 23) ||
- (dt.dt_day > 31) ||
+ (dt.dt_day > 31) ||
(dt.dt_mon > 12) ||
/* (dt.dt_year < STARTOFTIME) || */ (dt.dt_year > 2036))
return (0);
-
+
secs = clock_ymdhms_to_secs(&dt);
if (tvp) {
tvp->tv_sec = secs;
@@ -191,8 +185,7 @@
}
int
-a2kusettod(tvp)
- struct timeval *tvp;
+a2kusettod(struct timeval *tvp)
{
struct rtclock2000 *rt;
struct clock_ymdhms dt;
@@ -201,7 +194,7 @@
secs = tvp->tv_sec;
rt = a2kclockaddr;
- /*
+ /*
* there seem to be problems with the bitfield addressing
* currently used..
*/
@@ -244,8 +237,8 @@
rt->year2 = dt.dt_year % 10;
rt->weekday = dt.dt_wday;
- /*
- * release the clock
+ /*
+ * release the clock
*/
rt->control2 &= ~A2CONTROL1_HOLD;
diff -r 5b9bda9f2939 -r 88007db20599 sys/arch/amiga/dev/a34kbbc.c
--- a/sys/arch/amiga/dev/a34kbbc.c Sat Jan 26 13:27:53 2002 +0000
+++ b/sys/arch/amiga/dev/a34kbbc.c Sat Jan 26 13:40:52 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: a34kbbc.c,v 1.8 2000/03/15 20:40:00 kleink Exp $ */
+/* $NetBSD: a34kbbc.c,v 1.9 2002/01/26 13:40:52 aymeric Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -56,22 +56,19 @@
#include <dev/clock_subr.h>
-int a34kbbc_match __P((struct device *, struct cfdata *, void *));
-void a34kbbc_attach __P((struct device *, struct device *, void *));
+int a34kbbc_match(struct device *, struct cfdata *, void *);
+void a34kbbc_attach(struct device *, struct device *, void *);
struct cfattach a34kbbc_ca = {
sizeof(struct device), a34kbbc_match, a34kbbc_attach
};
void *a34kclockaddr;
-int a34kugettod __P((struct timeval *));
-int a34kusettod __P((struct timeval *));
+int a34kugettod(struct timeval *);
+int a34kusettod(struct timeval *);
int
-a34kbbc_match(pdp, cfp, auxp)
- struct device *pdp;
- struct cfdata *cfp;
- void *auxp;
+a34kbbc_match(struct device *pdp, struct cfdata *cfp, void *auxp)
{
static int a34kbbc_matched = 0;
@@ -97,9 +94,7 @@
* Attach us to the rtc function pointers.
*/
void
-a34kbbc_attach(pdp, dp, auxp)
- struct device *pdp, *dp;
- void *auxp;
+a34kbbc_attach(struct device *pdp, struct device *dp, void *auxp)
{
printf("\n");
a34kclockaddr = (void *)ztwomap(0xdc0000);
@@ -109,8 +104,7 @@
}
int
-a34kugettod(tvp)
- struct timeval *tvp;
+a34kugettod(struct timeval *tvp)
{
struct rtclock3000 *rt;
struct clock_ymdhms dt;
@@ -139,8 +133,8 @@
if ((dt.dt_hour > 23) ||
- (dt.dt_wday > 6) ||
- (dt.dt_day > 31) ||
+ (dt.dt_wday > 6) ||
+ (dt.dt_day > 31) ||
(dt.dt_mon > 12) ||
/* (dt.dt_year < STARTOFTIME) || */ (dt.dt_year > 2036))
return (0);
@@ -152,8 +146,7 @@
}
int
-a34kusettod(tvp)
- struct timeval *tvp;
+a34kusettod(struct timeval *tvp)
{
struct rtclock3000 *rt;
struct clock_ymdhms dt;
diff -r 5b9bda9f2939 -r 88007db20599 sys/arch/amiga/dev/afsc.c
--- a/sys/arch/amiga/dev/afsc.c Sat Jan 26 13:27:53 2002 +0000
+++ b/sys/arch/amiga/dev/afsc.c Sat Jan 26 13:40:52 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: afsc.c,v 1.27 2001/04/25 17:53:06 bouyer Exp $ */
+/* $NetBSD: afsc.c,v 1.28 2002/01/26 13:40:52 aymeric Exp $ */
/*
* Copyright (c) 1994 Michael L. Hitch
@@ -52,11 +52,11 @@
#include <amiga/dev/siopvar.h>
#include <amiga/dev/zbusvar.h>
-void afscattach __P((struct device *, struct device *, void *));
-int afscmatch __P((struct device *, struct cfdata *, void *));
-int afsc_dmaintr __P((void *));
+void afscattach(struct device *, struct device *, void *);
+int afscmatch(struct device *, struct cfdata *, void *);
+int afsc_dmaintr(void *);
#ifdef DEBUG
-void afsc_dump __P((void));
+void afsc_dump(void);
#endif
@@ -75,10 +75,7 @@
* if we are a Commodore Amiga A4091 or possibly an A4000T
*/
int
-afscmatch(pdp, cfp, auxp)
- struct device *pdp;
- struct cfdata *cfp;
- void *auxp;
+afscmatch(struct device *pdp, struct cfdata *cfp, void *auxp)
{
struct zbus_args *zap;
siop_regmap_p rp;
@@ -107,9 +104,7 @@
}
void
-afscattach(pdp, dp, auxp)
- struct device *pdp, *dp;
- void *auxp;
+afscattach(struct device *pdp, struct device *dp, void *auxp)
{
struct siop_softc *sc = (struct siop_softc *)dp;
struct zbus_args *zap;
@@ -170,8 +165,7 @@
}
int
-afsc_dmaintr(arg)
- void *arg;
+afsc_dmaintr(void *arg)
{
struct siop_softc *sc = arg;
siop_regmap_p rp;
@@ -196,7 +190,7 @@
#ifdef DEBUG
void
-afsc_dump()
+afsc_dump(void)
{
extern struct cfdriver afsc_cd;
int i;
diff -r 5b9bda9f2939 -r 88007db20599 sys/arch/amiga/dev/ahsc.c
--- a/sys/arch/amiga/dev/ahsc.c Sat Jan 26 13:27:53 2002 +0000
+++ b/sys/arch/amiga/dev/ahsc.c Sat Jan 26 13:40:52 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ahsc.c,v 1.27 2001/04/25 17:53:06 bouyer Exp $ */
+/* $NetBSD: ahsc.c,v 1.28 2002/01/26 13:40:52 aymeric Exp $ */
/*
* Copyright (c) 1994 Christian E. Hopps
@@ -55,17 +55,17 @@
#include <machine/cpu.h>
-void ahscattach __P((struct device *, struct device *, void *));
-int ahscmatch __P((struct device *, struct cfdata *, void *));
+void ahscattach(struct device *, struct device *, void *);
+int ahscmatch(struct device *, struct cfdata *, void *);
-void ahsc_enintr __P((struct sbic_softc *));
-void ahsc_dmastop __P((struct sbic_softc *));
-int ahsc_dmanext __P((struct sbic_softc *));
-int ahsc_dmaintr __P((void *));
-int ahsc_dmago __P((struct sbic_softc *, char *, int, int));
+void ahsc_enintr(struct sbic_softc *);
+void ahsc_dmastop(struct sbic_softc *);
+int ahsc_dmanext(struct sbic_softc *);
+int ahsc_dmaintr(void *);
+int ahsc_dmago(struct sbic_softc *, char *, int, int);
#ifdef DEBUG
-void ahsc_dump __P((void));
Home |
Main Index |
Thread Index |
Old Index