Annotation of linux/kernel/blk_drv/scsi/sr.h, revision 1.1

1.1     ! root        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:  *     <[email protected]>
        !            11:  */
        !            12: 
        !            13: #ifndef _SR_H
        !            14: #define _SR_H
        !            15: 
        !            16: #include "scsi.h"
        !            17: 
        !            18: #define MAX_SR 2
        !            19: extern int NR_SR;
        !            20: 
        !            21: typedef struct
        !            22:        {
        !            23:        unsigned        capacity;               /* size in blocks                       */
        !            24:        unsigned        sector_size;            /* size in bytes                        */
        !            25:        Scsi_Device     *device;                
        !            26:        unsigned char   sector_bit_size;        /* sector size = 2^sector_bit_size      */
        !            27:        unsigned char   sector_bit_shift;       /* sectors/FS block = 2^sector_bit_shift*/
        !            28:        unsigned        ten:1;                  /* support ten byte commands            */
        !            29:        unsigned        remap:1;                /* support remapping                    */
        !            30:        unsigned        use:1;                  /* is this device still supportable     */
        !            31:        unsigned        changed:1;              /* disk changed flag                    */
        !            32:        } Scsi_CD;
        !            33:        
        !            34: extern Scsi_CD scsi_CDs[MAX_SR];
        !            35: 
        !            36: void sr_init(void);
        !            37: 
        !            38: #define SR_HOST (scsi_CDs[DEVICE_NR(CURRENT->dev)].device->host_no)
        !            39: #define SR_ID (scsi_CDs[DEVICE_NR(CURRENT->dev)].device->id)
        !            40: #define SR_LUN (scsi_CDs[DEVICE_NR(CURRENT->dev)].device->lun)
        !            41: #endif

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.