-/* $OpenBSD: ccd.c,v 1.15 1997/01/31 10:32:21 deraadt Exp $ */
+/* $OpenBSD: ccd.c,v 1.16 1997/02/13 23:33:26 niklas Exp $ */
/* $NetBSD: ccd.c,v 1.33 1996/05/05 04:21:14 thorpej Exp $ */
/*-
void ccdiodone __P((struct buf *));
int ccdsize __P((dev_t));
-static void ccdstart __P((struct ccd_softc *, struct buf *));
-static void ccdinterleave __P((struct ccd_softc *, int));
-static void ccdintr __P((struct ccd_softc *, struct buf *));
-static int ccdinit __P((struct ccddevice *, char **, struct proc *));
-static int ccdlookup __P((char *, struct proc *p, struct vnode **));
-static void ccdbuffer __P((struct ccd_softc *, struct buf *,
+void ccdstart __P((struct ccd_softc *, struct buf *));
+void ccdinterleave __P((struct ccd_softc *, int));
+void ccdintr __P((struct ccd_softc *, struct buf *));
+int ccdinit __P((struct ccddevice *, char **, struct proc *));
+int ccdlookup __P((char *, struct proc *p, struct vnode **));
+void ccdbuffer __P((struct ccd_softc *, struct buf *,
daddr_t, caddr_t, long, struct ccdbuf **));
-static void ccdgetdisklabel __P((dev_t));
-static void ccdmakedisklabel __P((struct ccd_softc *));
-static int ccdlock __P((struct ccd_softc *));
-static void ccdunlock __P((struct ccd_softc *));
+void ccdgetdisklabel __P((dev_t));
+void ccdmakedisklabel __P((struct ccd_softc *));
+int ccdlock __P((struct ccd_softc *));
+void ccdunlock __P((struct ccd_softc *));
#ifdef DEBUG
-static void printiinfo __P((struct ccdiinfo *));
+void printiinfo __P((struct ccdiinfo *));
#endif
/* Non-private for the benefit of libkvm. */
bzero(ccddevs, num * sizeof(struct ccddevice));
}
-static int
+int
ccdinit(ccd, cpaths, p)
struct ccddevice *ccd;
char **cpaths;
return (0);
}
-static void
+void
ccdinterleave(cs, unit)
register struct ccd_softc *cs;
int unit;
biodone(bp);
}
-static void
+void
ccdstart(cs, bp)
register struct ccd_softc *cs;
register struct buf *bp;
/*
* Build a component buffer header.
*/
-static void
+void
ccdbuffer(cs, bp, bn, addr, bcount, cbpp)
register struct ccd_softc *cs;
struct buf *bp;
}
}
-static void
+void
ccdintr(cs, bp)
register struct ccd_softc *cs;
register struct buf *bp;
* is a valid block device, and isn't being used by anyone else,
* set *vpp to the file's vnode.
*/
-static int
+int
ccdlookup(path, p, vpp)
char *path;
struct proc *p;
* Read the disklabel from the ccd. If one is not present, fake one
* up.
*/
-static void
+void
ccdgetdisklabel(dev)
dev_t dev;
{
* Take care of things one might want to take care of in the event
* that a disklabel isn't present.
*/
-static void
+void
ccdmakedisklabel(cs)
struct ccd_softc *cs;
{
* XXX
* Several drivers do this; it should be abstracted and made MP-safe.
*/
-static int
+int
ccdlock(cs)
struct ccd_softc *cs;
{
/*
* Unlock and wake up any waiters.
*/
-static void
+void
ccdunlock(cs)
struct ccd_softc *cs;
{
}
#ifdef DEBUG
-static void
+void
printiinfo(ii)
struct ccdiinfo *ii;
{