diff options
Diffstat (limited to 'sys/arch/atari/dev/hdfd.c')
| -rw-r--r-- | sys/arch/atari/dev/hdfd.c | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/sys/arch/atari/dev/hdfd.c b/sys/arch/atari/dev/hdfd.c index fddb5596147..cdf2f873b20 100644 --- a/sys/arch/atari/dev/hdfd.c +++ b/sys/arch/atari/dev/hdfd.c @@ -1,4 +1,4 @@ -/* $NetBSD: hdfd.c,v 1.65 2009/01/13 13:35:51 yamt Exp $ */ +/* $NetBSD: hdfd.c,v 1.66 2009/03/14 14:45:56 dsl Exp $ */ /*- * Copyright (c) 1996 Leo Weppelman @@ -91,7 +91,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: hdfd.c,v 1.65 2009/01/13 13:35:51 yamt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: hdfd.c,v 1.66 2009/03/14 14:45:56 dsl Exp $"); #include "opt_ddb.h" @@ -151,7 +151,7 @@ void fddma_intr(void); void * fddmaaddr = NULL; int fddmalen = 0; -extern void mfp_hdfd_nf __P((void)), mfp_hdfd_fifo __P((void)); +extern void mfp_hdfd_nf(void)), mfp_hdfd_fifo(void); /* * Argument to fdcintr..... @@ -201,9 +201,9 @@ struct fdc_softc { }; /* controller driver configuration */ -int fdcprobe __P((struct device *, struct cfdata *, void *)); -int fdprint __P((void *, const char *)); -void fdcattach __P((struct device *, struct device *, void *)); +int fdcprobe(struct device *, struct cfdata *, void *); +int fdprint(void *, const char *); +void fdcattach(struct device *, struct device *, void *); CFATTACH_DECL(fdc, sizeof(struct fdc_softc), fdcprobe, fdcattach, NULL, NULL); @@ -278,8 +278,8 @@ struct fd_softc { }; /* floppy driver configuration */ -int fdprobe __P((struct device *, struct cfdata *, void *)); -void fdattach __P((struct device *, struct device *, void *)); +int fdprobe(struct device *, struct cfdata *, void *); +void fdattach(struct device *, struct device *, void *); CFATTACH_DECL(hdfd, sizeof(struct fd_softc), fdprobe, fdattach, NULL, NULL); @@ -295,30 +295,30 @@ const struct cdevsw fd_cdevsw = { nostop, notty, nopoll, nommap, nokqfilter, D_DISK }; -void fdstart __P((struct fd_softc *)); +void fdstart(struct fd_softc *); struct dkdriver fddkdriver = { fdstrategy }; -void fd_set_motor __P((struct fdc_softc *fdc, int reset)); -void fd_motor_off __P((void *arg)); -void fd_motor_on __P((void *arg)); -int fdcresult __P((struct fdc_softc *fdc)); -int out_fdc __P((u_char x)); -void fdc_ctrl_intr __P((struct clockframe)); -void fdcstart __P((struct fdc_softc *fdc)); -void fdcstatus __P((struct device *dv, int n, const char *s)); -void fdctimeout __P((void *arg)); -void fdcpseudointr __P((void *arg)); -int fdcintr __P((void *)); -void fdcretry __P((struct fdc_softc *fdc)); -void fdfinish __P((struct fd_softc *fd, struct buf *bp)); -int fdformat __P((dev_t, struct ne7_fd_formb *, struct proc *)); - -static void fdgetdisklabel __P((struct fd_softc *, dev_t)); -static void fdgetdefaultlabel __P((struct fd_softc *, struct disklabel *, - int)); - -inline struct fd_type *fd_dev_to_type __P((struct fd_softc *, dev_t)); +void fd_set_motor(struct fdc_softc *fdc, int reset); +void fd_motor_off(void *arg); +void fd_motor_on(void *arg); +int fdcresult(struct fdc_softc *fdc); +int out_fdc(u_char x); +void fdc_ctrl_intr(struct clockframe); +void fdcstart(struct fdc_softc *fdc); +void fdcstatus(struct device *dv, int n, const char *s); +void fdctimeout(void *arg); +void fdcpseudointr(void *arg); +int fdcintr(void *); +void fdcretry(struct fdc_softc *fdc); +void fdfinish(struct fd_softc *fd, struct buf *bp); +int fdformat(dev_t, struct ne7_fd_formb *, struct proc *); + +static void fdgetdisklabel(struct fd_softc *, dev_t); +static void fdgetdefaultlabel(struct fd_softc *, struct disklabel *, + int); + +inline struct fd_type *fd_dev_to_type(struct fd_softc *, dev_t); int fdcprobe(parent, cfp, aux) @@ -337,7 +337,7 @@ fdcprobe(parent, cfp, aux) if (!atari_realconfig) return 0; - if ((mb_tag = mb_alloc_bus_space_tag()) == NULL) + if ((mb_tag = mb_alloc_bus_space_tag() == NULL) return 0; if (bus_space_map(mb_tag, FD_IOBASE, FD_IOSIZE, 0, &handle)) { |
