root/kernel/blk_drv/scsi/sr.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   1 /*
   2  *      sr.h by David Giller
   3  *      CD-ROM disk driver header file
   4  *      
   5  *      adapted from:
   6  *      sd.h Copyright (C) 1992 Drew Eckhardt 
   7  *      SCSI disk driver header file by
   8  *              Drew Eckhardt 
   9  *
  10  *      <drew@colorado.edu>
  11  *
  12  *       Modified by Eric Youngdale eric@tantalus.nrl.navy.mil to
  13  *       add scatter-gather, multiple outstanding request, and other
  14  *       enhancements.
  15  */
  16 
  17 #ifndef _SR_H
  18 #define _SR_H
  19 
  20 #include "scsi.h"
  21 
  22 typedef struct
  23         {
  24         unsigned        capacity;               /* size in blocks                       */
  25         unsigned        sector_size;            /* size in bytes                        */
  26         Scsi_Device     *device;                
  27         unsigned char   sector_bit_size;        /* sector size = 2^sector_bit_size      */
  28         unsigned char   sector_bit_shift;       /* sectors/FS block = 2^sector_bit_shift*/
  29         unsigned        ten:1;                  /* support ten byte commands            */
  30         unsigned        remap:1;                /* support remapping                    */
  31         unsigned        use:1;                  /* is this device still supportable     */
  32         } Scsi_CD;
  33         
  34 extern Scsi_CD * scsi_CDs;
  35 
  36 #endif

/* [previous][next][first][last][top][bottom][index][help] */