X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=drivers%2Fscsi%2Fsr.h;h=81fbc0b78a5235cd5fe770e914c2eed60baa58cc;hb=a1c9eea9e56a7196c6891f6426b799c4598b38e2;hp=d65de9621b276acdbcf6a9b1f114130ebfeab93c;hpb=7d14f145f839b5d0d221ea209b4998f93267e2ec;p=powerpc.git diff --git a/drivers/scsi/sr.h b/drivers/scsi/sr.h index d65de9621b..81fbc0b78a 100644 --- a/drivers/scsi/sr.h +++ b/drivers/scsi/sr.h @@ -20,6 +20,9 @@ #include #include +#define MAX_RETRIES 3 +#define SR_TIMEOUT (30 * HZ) + struct scsi_device; /* The CDROM is fairly slow, so we need a little extra time */ @@ -37,6 +40,7 @@ typedef struct scsi_cd { unsigned xa_flag:1; /* CD has XA sectors ? */ unsigned readcd_known:1; /* drive supports READ_CD (0xbe) */ unsigned readcd_cdda:1; /* reading audio data using READ_CD */ + unsigned previous_state:1; /* media has changed */ struct cdrom_device_info cdi; /* We hold gendisk and scsi_device references on probe and use * the refs on this kref to decide when to release them */