diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1994-11-28 11:59:19 +0000 |
---|---|---|
committer | <ralf@linux-mips.org> | 1994-11-28 11:59:19 +0000 |
commit | 1513ff9b7899ab588401c89db0e99903dbf5f886 (patch) | |
tree | f69cc81a940a502ea23d664c3ffb2d215a479667 /drivers/scsi/sd.h |
Import of Linus's Linux 1.1.68
Diffstat (limited to 'drivers/scsi/sd.h')
-rw-r--r-- | drivers/scsi/sd.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/drivers/scsi/sd.h b/drivers/scsi/sd.h new file mode 100644 index 000000000..e35079f76 --- /dev/null +++ b/drivers/scsi/sd.h @@ -0,0 +1,47 @@ +/* + * sd.h Copyright (C) 1992 Drew Eckhardt + * SCSI disk driver header file by + * Drew Eckhardt + * + * <drew@colorado.edu> + * + * Modified by Eric Youngdale eric@tantalus.nrl.navy.mil to + * add scatter-gather, multiple outstanding request, and other + * enhancements. + */ +#ifndef _SD_H + #define _SD_H +/* + $Header: /usr/src/linux/kernel/blk_drv/scsi/RCS/sd.h,v 1.1 1992/07/24 06:27:38 root Exp root $ +*/ + +#ifndef _SCSI_H +#include "scsi.h" +#endif + +#ifndef _GENDISK_H +#include <linux/genhd.h> +#endif + +/* + This is an arbitrary constant, and may be changed to whatever + suits your purposes. Note that smaller will get you a few bytes + more in kernel space if that is your thing. +*/ + +extern struct hd_struct * sd; + +typedef struct scsi_disk { + unsigned capacity; /* size in blocks */ + unsigned sector_size; /* size in bytes */ + Scsi_Device *device; + unsigned char sector_bit_size; /* sector_size = 2 to the bit size power */ + unsigned char sector_bit_shift; /* power of 2 sectors per FS block */ + unsigned ten:1; /* support ten byte read / write */ + unsigned remap:1; /* support remapping */ + unsigned has_part_table:1; /* has partition table */ + } Scsi_Disk; + +extern Scsi_Disk * rscsi_disks; + +#endif |