diff options
author | bde <bde@FreeBSD.org> | 1995-12-10 01:47:34 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1995-12-10 01:47:34 +0000 |
commit | 7c400f9c2b837036e34b796ee3aee421dbf760e2 (patch) | |
tree | 1dfdbfa4cd9a5bb1ed336998e89cac9509d787ad /sys/scsi/sd.c | |
parent | 3f53450677f3027cccce2533e8611a21220604a7 (diff) | |
download | FreeBSD-src-7c400f9c2b837036e34b796ee3aee421dbf760e2.zip FreeBSD-src-7c400f9c2b837036e34b796ee3aee421dbf760e2.tar.gz |
Restored used variable `name[32]' (used by DEVFS).
Completed function declarations and/or added prototypes.
Diffstat (limited to 'sys/scsi/sd.c')
-rw-r--r-- | sys/scsi/sd.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/sys/scsi/sd.c b/sys/scsi/sd.c index dd92861..a86a2cb 100644 --- a/sys/scsi/sd.c +++ b/sys/scsi/sd.c @@ -14,7 +14,7 @@ * * Ported to run under 386BSD by Julian Elischer (julian@dialix.oz.au) Sept 1992 * - * $Id: sd.c,v 1.77 1995/12/08 23:22:25 phk Exp $ + * $Id: sd.c,v 1.78 1995/12/09 20:42:35 phk Exp $ */ #define SPLSD splbio @@ -45,6 +45,8 @@ #include <machine/md_var.h> #include <i386/i386/cons.h> /* XXX *//* for aborting dump */ +extern int SCSI_DEVICE_ENTRIES __P((int sd)); + static u_int32 sdstrats, sdqueues; #define SECSIZE 512 @@ -60,6 +62,8 @@ static u_int32 sdstrats, sdqueues; makedev(major(DEV), dkmakeminor((U), dkslice(DEV), dkpart(DEV))) static errval sd_get_parms __P((int unit, int flags)); +static errval sd_reassign_blocks __P((int unit, int block)); +static u_int32 sd_size __P((int unit, int flags)); static void sdstrategy1 __P((struct buf *)); static int sd_sense_handler __P((struct scsi_xfer *)); @@ -183,11 +187,14 @@ sd_registerdev(int unit) * The routine called by the low level scsi routine when it discovers * a device suitable for this driver. */ -errval +static errval sdattach(struct scsi_link *sc_link) { u_int32 unit; struct disk_parms *dp; +#ifdef DEVFS + char name[32]; +#endif struct scsi_data *sd = sc_link->sd; |