home *** CD-ROM | disk | FTP | other *** search
/ Whiteline: Alpha / Whiteline Alpha.iso / linux / atari / source / source.lzh / atari-linux-0.01pl3 / drivers / scsi / sr.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-06-05  |  996 b   |  38 lines

  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     needs_sector_size:1;       /* needs to get sector size */
  30.     unsigned     ten:1;            /* support ten byte commands        */
  31.     unsigned     remap:1;        /* support remapping            */
  32.     unsigned     use:1;            /* is this device still supportable    */
  33.     } Scsi_CD;
  34.     
  35. extern Scsi_CD * scsi_CDs;
  36.  
  37. #endif
  38.