Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/acorn32/podulebus Cleanup: Remove no-longer-accurat...
details: https://anonhg.NetBSD.org/src/rev/96a16fd37b4b
branches: trunk
changeset: 536413:96a16fd37b4b
user: bjh21 <bjh21%NetBSD.org@localhost>
date: Sun Sep 15 11:27:47 2002 +0000
description:
Cleanup: Remove no-longer-accurate comment, un-__P, ANSIfy, __KERNEL_RCSID,
other light KNF.
diffstat:
sys/arch/acorn32/podulebus/icside.c | 31 +++++++++++--------------------
1 files changed, 11 insertions(+), 20 deletions(-)
diffs (76 lines):
diff -r 81756b6d9c8f -r 96a16fd37b4b sys/arch/acorn32/podulebus/icside.c
--- a/sys/arch/acorn32/podulebus/icside.c Sun Sep 15 11:00:11 2002 +0000
+++ b/sys/arch/acorn32/podulebus/icside.c Sun Sep 15 11:27:47 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: icside.c,v 1.5 2002/09/15 11:00:11 bjh21 Exp $ */
+/* $NetBSD: icside.c,v 1.6 2002/09/15 11:27:47 bjh21 Exp $ */
/*
* Copyright (c) 1997-1998 Mark Brinicombe
@@ -40,14 +40,10 @@
* information
*/
-/*
- * BUGS:
- * Cold boot (hard reset or power-on) booting straight to NetBSD:
- * panic: wdcstart: channel waiting for irq
- * Booting via desktop avoinds this.
- */
+#include <sys/param.h>
-#include <sys/param.h>
+__KERNEL_RCSID(0, "$NetBSD: icside.c,v 1.6 2002/09/15 11:27:47 bjh21 Exp $");
+
#include <sys/systm.h>
#include <sys/conf.h>
#include <sys/device.h>
@@ -98,9 +94,9 @@
} sc_chan[ICSIDE_MAX_CHANNELS];
};
-int icside_probe __P((struct device *, struct cfdata *, void *));
-void icside_attach __P((struct device *, struct device *, void *));
-int icside_intr __P((void *));
+int icside_probe(struct device *, struct cfdata *, void *);
+void icside_attach(struct device *, struct device *, void *);
+int icside_intr(void *);
void icside_v6_shutdown(void *);
struct cfattach icside_ca = {
@@ -157,12 +153,10 @@
*/
int
-icside_probe(parent, cf, aux)
- struct device *parent;
- struct cfdata *cf;
- void *aux;
+icside_probe(struct device *parent, struct cfdata *cf, void *aux)
{
struct podule_attach_args *pa = (void *)aux;
+
return (pa->pa_product == PODULE_ICS_IDE);
}
@@ -173,9 +167,7 @@
*/
void
-icside_attach(parent, self, aux)
- struct device *parent, *self;
- void *aux;
+icside_attach(struct device *parent, struct device *self, void *aux)
{
struct icside_softc *sc = (void *)self;
struct podule_attach_args *pa = (void *)aux;
@@ -338,8 +330,7 @@
* If the interrupt was from our card pass it on to the wdc interrupt handler
*/
int
-icside_intr(arg)
- void *arg;
+icside_intr(void *arg)
{
struct icside_channel *icp = arg;
volatile u_char *intraddr = (volatile u_char *)icp->ic_irqaddr;
Home |
Main Index |
Thread Index |
Old Index