|
|
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: * Modified by Eric Youngdale [email protected] to
9: * add scatter-gather, multiple outstanding request, and other
10: * enhancements.
11: */
12: #ifndef _SD_H
13: #define _SD_H
14: /*
1.1.1.2 ! root 15: $Header: /cvs/gnumach/linux/src/drivers/scsi/sd.h,v 1.1 1999/04/26 05:55:03 tb Exp $
1.1 root 16: */
17:
18: #ifndef _SCSI_H
19: #include "scsi.h"
20: #endif
21:
22: #ifndef _GENDISK_H
23: #include <linux/genhd.h>
24: #endif
25:
26: extern struct hd_struct * sd;
27:
28: typedef struct scsi_disk {
29: unsigned capacity; /* size in blocks */
30: unsigned sector_size; /* size in bytes */
31: Scsi_Device *device;
32: unsigned char ready; /* flag ready for FLOPTICAL */
33: unsigned char write_prot; /* flag write_protect for rmvable dev */
34: unsigned char sector_bit_size; /* sector_size = 2 to the bit size power */
35: unsigned char sector_bit_shift; /* power of 2 sectors per FS block */
36: unsigned ten:1; /* support ten byte read / write */
37: unsigned remap:1; /* support remapping */
38: unsigned has_part_table:1; /* has partition table */
39: } Scsi_Disk;
40:
41: extern Scsi_Disk * rscsi_disks;
42:
43: extern int revalidate_scsidisk(kdev_t dev, int maxusage);
44:
45: #endif
46:
47: /*
48: * Overrides for Emacs so that we follow Linus's tabbing style.
49: * Emacs will notice this stuff at the end of the file and automatically
50: * adjust the settings for this buffer only. This must remain at the end
51: * of the file.
52: * ---------------------------------------------------------------------------
53: * Local variables:
54: * c-indent-level: 4
55: * c-brace-imaginary-offset: 0
56: * c-brace-offset: -4
57: * c-argdecl-indent: 4
58: * c-label-offset: -4
59: * c-continued-statement-offset: 4
60: * c-continued-brace-offset: 0
61: * indent-tabs-mode: nil
62: * tab-width: 8
63: * End:
64: */
65:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.