Annotation of linux/kernel/blk_drv/scsi/sd.h, revision 1.1.1.2

1.1       root        1: /*
                      2:  *     sd.h Copyright (C) 1992 Drew Eckhardt 
                      3:  *     SCSI disk driver header file by
                      4:  *             Drew Eckhardt 
                      5:  *
                      6:  *     <[email protected]>
                      7:  */
                      8: #ifndef _SD_H
                      9:        #define _SD_H
                     10: /*
1.1.1.2 ! root       11:        $Header: /usr/src/linux/kernel/blk_drv/scsi/RCS/sd.h,v 1.1 1992/07/24 06:27:38 root Exp root $
1.1       root       12: */
                     13: 
                     14: #ifndef _SCSI_H
                     15: #include "scsi.h"
                     16: #endif
                     17: 
1.1.1.2 ! root       18: #ifndef _GENDISK_H
        !            19: #include <linux/genhd.h>
        !            20: #endif
1.1       root       21: 
1.1.1.2 ! root       22: /*
        !            23:        This is an arbitrary constant, and may be changed to whatever
        !            24:        suits your purposes.  Note that smaller will get you a few bytes
        !            25:        more in kernel space if that is your thing.
        !            26: */
1.1       root       27: 
1.1.1.2 ! root       28: #define MAX_SD 4
1.1       root       29: extern int NR_SD;
                     30: 
1.1.1.2 ! root       31: extern struct hd_struct sd[MAX_SD << 4];
1.1       root       32: 
                     33: typedef struct {
                     34:                unsigned capacity;              /* size in blocks */
                     35:                unsigned sector_size;           /* size in bytes */
                     36:                Scsi_Device  *device;           
                     37:                unsigned char sector_bit_size;  /* sector_size = 2 to the  bit size power */
                     38:                unsigned char sector_bit_shift; /* power of 2 sectors per FS block */
                     39:                unsigned ten:1;                 /* support ten byte read / write */
1.1.1.2 ! root       40:                unsigned remap:1;               /* support remapping  */
1.1       root       41:                } Scsi_Disk;
                     42:        
                     43: extern Scsi_Disk rscsi_disks[MAX_SD];
                     44: 
                     45: void sd_init(void);
                     46: 
                     47: #define HOST (rscsi_disks[DEVICE_NR(CURRENT->dev)].device->host_no)
                     48: #define ID (rscsi_disks[DEVICE_NR(CURRENT->dev)].device->id)
                     49: #define LUN (rscsi_disks[DEVICE_NR(CURRENT->dev)].device->lun)
                     50: #endif

unix.superglobalmegacorp.com

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