/* Written 1998-2000 by Donald Becker. This software may be used and distributed according to the terms of the GNU General Public License (GPL), incorporated herein by reference. Drivers based on or derived from this code fall under the GPL and must retain the authorship, copyright and license notice. This file is not a complete program and may only be used when the entire operating system is licensed under the GPL. The author may be reached as becker@scyld.com, or C/O Scyld Computing Corporation 410 Severn Ave., Suite 210 Annapolis MD 21403 Support information and updates available at http://www.scyld.com/network/pci-skeleton.html Linux kernel updates: Version 2.51, Nov 17, 2001 (jgarzik): - Add ethtool support - Replace some MII-related magic numbers with constants*/
ions
* 15: Shall be ZERO * 14: Shall be ONE * 13:6 reserved * 5: General Purpose Logging * 4: Streaming Feature Set * 3: Media Card Pass Through * 2: Media Serial Number Valid * 1: SMART selt-test supported * 0: SMART error logging */unsigned short cfs_enable_1;/* (word 85) * command set-feature enabled * 15: Obsolete * 14: NOP command * 13: READ_BUFFER * 12: WRITE_BUFFER * 11: Obsolete * 10: Host Protected Area * 9: DEVICE Reset * 8: SERVICE Interrupt * 7: Release Interrupt * 6: look-ahead * 5: write cache * 4: PACKET Command * 3: Power Management Feature Set * 2: Removable Feature Set * 1: Security Feature Set * 0: SMART Feature Set */unsigned short cfs_enable_2;/* (word 86) * command set-feature enabled * 15: Shall be ZERO * 14: Shall be ONE * 13: FLUSH CACHE EXT * 12: FLUSH CACHE * 11: Device Configuration Overlay * 10: 48-bit Address Feature Set * 9: Automatic Acoustic Management * 8: SET MAX security * 7: reserved 1407DT PARTIES * 6: SetF sub-command Power-Up * 5: Power-Up in Standby Feature Set * 4: Removable Media Notification * 3: APM Feature Set * 2: CFA Feature Set * 1: READ/WRITE DMA QUEUED * 0: Download MicroCode */unsigned short csf_default;/* (word 87) * command set-feature default * 15: Shall be ZERO * 14: Shall be ONE * 13:6 reserved * 5: General Purpose Logging enabled * 4: Valid CONFIGURE STREAM executed * 3: Media Card Pass Through enabled * 2: Media Serial Number Valid * 1: SMART selt-test supported * 0: SMART error logging */unsigned short dma_ultra;/* (word 88) */unsigned short trseuc;/* time required for security erase */unsigned short trsEuc;/* time required for enhanced erase */unsigned short CurAPMvalues;/* current APM values */unsigned short mprc;/* master password revision code */unsigned short hw_config;/* hardware config (word 93) * 15: Shall be ZERO * 14: Shall be ONE * 13: * 12: * 11: * 10: * 9: * 8: * 7: * 6: * 5: * 4: * 3: * 2: * 1: * 0: Shall be ONE */unsigned short acoustic;/* (word 94) * 15:8 Vendor's recommended value * 7:0 current value */unsigned short msrqs;/* min stream request size */unsigned short sxfert;/* stream transfer time */unsigned short sal;/* stream access latency */unsigned int spg;/* stream performance granularity */unsigned long long lba_capacity_2;/* 48-bit total number of sectors */unsigned short words104_125[22];/* reserved words 104-125 */unsigned short last_lun;/* (word 126) */unsigned short word127;/* (word 127) Feature Set * Removable Media Notification * 15:2 reserved * 1:0 00 = not supported * 01 = supported * 10 = reserved * 11 = reserved */unsigned short dlf;/* (word 128) * device lock function * 15:9 reserved * 8 security level 1:max 0:high * 7:6 reserved * 5 enhanced erase * 4 expire * 3 frozen * 2 locked * 1 en/disabled * 0 capability */unsigned short csfo;/* (word 129) * current set features options * 15:4 reserved * 3: auto reassign * 2: reverting * 1: read-look-ahead * 0: write cache */unsigned short words130_155[26];/* reserved vendor words 130-155 */unsigned short word156;/* reserved vendor word 156 */unsigned short words157_159[3];/* reserved vendor words 157-159 */unsigned short cfa_power;/* (word 160) CFA Power Mode * 15 word 160 supported * 14 reserved * 13 * 12 * 11:0 */unsigned short words161_175[15];/* Reserved for CFA */unsigned short words176_205[30];/* Current Media Serial Number */unsigned short words206_254[49];/* reserved words 206-254 */unsigned short integrity_word;/* (word 255) * 15:8 Checksum * 7:0 Signature */};#endif/* __KERNEL__ *//* * IDE "nice" flags. These are used on a per drive basis to determine * when to be nice and give more bandwidth to the other devices which * share the same IDE bus. */#define IDE_NICE_DSC_OVERLAP (0)/* per the DSC overlap protocol */#define IDE_NICE_ATAPI_OVERLAP (1)/* not supported yet */#define IDE_NICE_1 (3)/* when probably won't affect us much */#ifndef __KERNEL__#define IDE_NICE_0 (2)/* when sure that it won't affect us */#define IDE_NICE_2 (4)/* when we know it's on our expense */#endif#endif/* _LINUX_HDREG_H */