diff options
author | jmz <jmz@FreeBSD.org> | 1997-05-19 17:32:10 +0000 |
---|---|---|
committer | jmz <jmz@FreeBSD.org> | 1997-05-19 17:32:10 +0000 |
commit | 1b34c46597e43fb0798108525511ce3e61412246 (patch) | |
tree | 8969b77e7e4a179c7abb6306e37cd51bb9f931a0 /sys/scsi | |
parent | 14ab45bc6e05fd54691432802eac1df52ca86f4e (diff) | |
download | FreeBSD-src-1b34c46597e43fb0798108525511ce3e61412246.zip FreeBSD-src-1b34c46597e43fb0798108525511ce3e61412246.tar.gz |
Set the quirks for the worm drives.
Diffstat (limited to 'sys/scsi')
-rw-r--r-- | sys/scsi/scsiconf.c | 15 | ||||
-rw-r--r-- | sys/scsi/scsiconf.h | 5 |
2 files changed, 13 insertions, 7 deletions
diff --git a/sys/scsi/scsiconf.c b/sys/scsi/scsiconf.c index 21ee239..b1b882d 100644 --- a/sys/scsi/scsiconf.c +++ b/sys/scsi/scsiconf.c @@ -16,7 +16,7 @@ * * New configuration setup: dufault@hda.com * - * $Id: scsiconf.c,v 1.84 1997/04/02 09:05:41 jmg Exp $ + * $Id: scsiconf.c,v 1.85 1997/05/03 22:23:13 joerg Exp $ */ #include "opt_scsi.h" @@ -238,6 +238,9 @@ static st_modes mode_unktape = {0, ST_Q_FORCE_VAR_MODE, HALFINCH_6250} /* minor 12,13,14,15 */ }; +static int worm_mode_philips = WORM_Q_PHILIPS; +static int worm_mode_plasmon = WORM_Q_PLASMON; + /*********************************************************************** * A list of known devices and their "quirks". Matching is based * first on device type, then on the manufacturer, model, and revision @@ -392,21 +395,21 @@ static struct scsidevs knowndevs[] = #if NWORM > 0 { T_READONLY, T_WORM, T_REMOV, "HP", "C4324/C4325", "*", - "worm", SC_ONE_LU + "worm", SC_ONE_LU, 0, &worm_mode_philips }, { T_READONLY, T_WORM, T_REMOV, "HP", "CD-Writer 6020", "*", - "worm", SC_ONE_LU + "worm", SC_ONE_LU, 0, &worm_mode_philips }, { /* That's the Philips drive, in case anybody wonders... */ T_READONLY, T_WORM, T_REMOV, "IMS", "CDD2000*", "*", - "worm", SC_ONE_LU + "worm", SC_ONE_LU, 0, &worm_mode_philips }, { /* Here's another Philips drive... */ T_READONLY, T_WORM, T_REMOV, "PHILIPS", "CDD2*", "*", - "worm", SC_ONE_LU + "worm", SC_ONE_LU, 0, &worm_mode_philips }, /* * The Plasmon's are dual-faced: they appear as T_WORM if the @@ -418,7 +421,7 @@ static struct scsidevs knowndevs[] = */ { T_READONLY, T_WORM, T_REMOV, "PLASMON", "RF41*", "*", - "worm", SC_ONE_LU + "worm", SC_ONE_LU, 0, &worm_mode_plasmon }, #endif /* NWORM */ diff --git a/sys/scsi/scsiconf.h b/sys/scsi/scsiconf.h index ca4eeaf..563645f 100644 --- a/sys/scsi/scsiconf.h +++ b/sys/scsi/scsiconf.h @@ -14,7 +14,7 @@ * * Ported to run under 386BSD by Julian Elischer (julian@tfs.com) Sept 1992 * - * $Id: scsiconf.h,v 1.52 1997/04/02 09:05:43 jmg Exp $ + * $Id: scsiconf.h,v 1.53 1997/04/03 10:09:29 kato Exp $ */ #ifndef SCSI_SCSICONF_H #define SCSI_SCSICONF_H 1 @@ -276,6 +276,9 @@ typedef struct st_mode st_modes[4]; #define CD_Q_BCD_TRACKS 0x0002 +/* worm specific WORM_Q_* */ +#define WORM_Q_PLASMON 0x0001 +#define WORM_Q_PHILIPS 0x0002 /* * This structure describes the connection between an adapter driver and * a device driver, and is used by each to call services provided by |