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 Add prototypes for podulebusmatch...



details:   https://anonhg.NetBSD.org/src/rev/a549d43df985
branches:  trunk
changeset: 522405:a549d43df985
user:      bjh21 <bjh21%NetBSD.org@localhost>
date:      Mon Feb 18 13:11:07 2002 +0000

description:
Add prototypes for podulebusmatch(), podulebusattach(), podulebusprint(),
podulebussubmatch(), podulechunkdirectory() and podulesncan().
Fix argument types of podulebussubmatch().
Remove podloader_read_region(), since it's not used externally.

diffstat:

 sys/arch/acorn32/podulebus/podulebus.c |  31 ++++++++++++++-----------------
 1 files changed, 14 insertions(+), 17 deletions(-)

diffs (76 lines):

diff -r 607b46045499 -r a549d43df985 sys/arch/acorn32/podulebus/podulebus.c
--- a/sys/arch/acorn32/podulebus/podulebus.c    Mon Feb 18 12:55:47 2002 +0000
+++ b/sys/arch/acorn32/podulebus/podulebus.c    Mon Feb 18 13:11:07 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: podulebus.c,v 1.4 2001/11/27 00:53:12 thorpej Exp $ */
+/* $NetBSD: podulebus.c,v 1.5 2002/02/18 13:11:07 bjh21 Exp $ */
 
 /*
  * Copyright (c) 1994-1996 Mark Brinicombe.
@@ -42,6 +42,9 @@
  */
 
 #include <sys/param.h>
+
+__RCSID("$NetBSD: podulebus.c,v 1.5 2002/02/18 13:11:07 bjh21 Exp $");
+
 #include <sys/systm.h>
 #include <sys/kernel.h>
 #include <sys/conf.h>
@@ -71,7 +74,12 @@
 
 void map_section __P((vm_offset_t, vm_offset_t, vm_offset_t, int cacheable));
 u_int poduleread __P((u_int, int));
-
+int podulebusmatch(struct device *, struct cfdata *, void *);
+void podulebusattach(struct device *, struct device *, void *);
+int podulebusprint(void *, const char *);
+int podulebussubmatch(struct device *, struct cfdata *, void *);
+void podulechunkdirectory(podule_t *);
+void podulescan(struct device *);
 
 /*
  * int podulebusmatch(struct device *parent, void *match, void *aux)
@@ -119,23 +127,22 @@
 
 
 int
-podulebussubmatch(parent, match, aux)
+podulebussubmatch(parent, cf, aux)
        struct device *parent;
-       void *match;
+       struct cfdata *cf;
        void *aux;
 {
-       struct cfdata *cf = match;
        struct podule_attach_args *pa = aux;
 
        /* Return priority 0 or 1 for wildcarded podule */
 
        if (cf->cf_loc[PODULEBUSCF_SLOT] == PODULEBUSCF_SLOT_DEFAULT)
-               return((*cf->cf_attach->ca_match)(parent, match, aux));
+               return((*cf->cf_attach->ca_match)(parent, cf, aux));
 
        /* Return higher priority if we match the specific podule */
 
        else if (cf->cf_loc[PODULEBUSCF_SLOT] == pa->pa_podule_number)
-               return((*cf->cf_attach->ca_match)(parent, match, aux) * 8);
+               return((*cf->cf_attach->ca_match)(parent, cf, aux) * 8);
 
        /* Fail */
        return(0);
@@ -614,14 +621,4 @@
        panic("podloader_callloader");
 }
 
-void
-podloader_read_region(struct podulebus_attach_args *pa, u_int src,
-    u_int8_t *dest, size_t length)
-{
-
-       while (length--)
-               *dest++ = podloader_readbyte(pa, src++);
-       podloader_reset(pa);
-}
-
 /* End of podulebus.c */



Home | Main Index | Thread Index | Old Index