|
|
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: * Modified by Eric Youngdale [email protected] 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 long mpcd_sector; /* for reading multisession-CD's */ ! 28: char xa_flags; /* some flags for handling XA-CD's */ ! 29: unsigned char sector_bit_size; /* sector size = 2^sector_bit_size */ ! 30: unsigned char sector_bit_shift; /* sectors/FS block = 2^sector_bit_shift*/ ! 31: unsigned needs_sector_size:1; /* needs to get sector size */ ! 32: unsigned ten:1; /* support ten byte commands */ ! 33: unsigned remap:1; /* support remapping */ ! 34: unsigned use:1; /* is this device still supportable */ ! 35: unsigned auto_eject:1; /* auto-eject medium on last release. */ ! 36: } Scsi_CD; ! 37: ! 38: extern Scsi_CD * scsi_CDs; ! 39: ! 40: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.