patch-2.3.48 linux/include/linux/hdreg.h

Next file: linux/include/linux/hfs_fs.h
Previous file: linux/include/linux/fs.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.47/linux/include/linux/hdreg.h linux/include/linux/hdreg.h
@@ -86,6 +86,7 @@
 #define WIN_SRST		0x08	/* ATAPI soft reset command */
 #define WIN_PACKETCMD		0xA0	/* Send a packet command. */
 
+#define DISABLE_SEAGATE		0xFB
 #define EXABYTE_ENABLE_NEST	0xF0
 
 /* WIN_SMART sub-commands */
@@ -104,6 +105,7 @@
 
 #define SETFEATURES_EN_WCACHE	0x02	/* Enable write cache */
 #define SETFEATURES_XFER	0x03	/* Set transfer mode */
+#	define XFER_UDMA_7	0x47	/* 0100|0111 */
 #	define XFER_UDMA_6	0x46	/* 0100|0110 */
 #	define XFER_UDMA_5	0x45	/* 0100|0101 */
 #	define XFER_UDMA_4	0x44	/* 0100|0100 */
@@ -123,6 +125,7 @@
 #	define XFER_PIO_1	0x09	/* 0000|1001 */
 #	define XFER_PIO_0	0x08	/* 0000|1000 */
 #	define XFER_PIO_SLOW	0x00	/* 0000|0000 */
+#define SETFEATURES_DIS_DEFECT	0x04	/* Disable Defect Management */
 #define SETFEATURES_EN_APM	0x05	/* Enable advanced power management */
 #define SETFEATURES_DIS_MSN	0x31	/* Disable Media Status Notification */
 #define SETFEATURES_DIS_RLA	0x55	/* Disable read look-ahead feature */
@@ -130,9 +133,11 @@
 #define SETFEATURES_EN_SI	0x5E	/* Enable SERVICE interrupt */
 #define SETFEATURES_DIS_RPOD	0x66	/* Disable reverting to power on defaults */
 #define SETFEATURES_DIS_WCACHE	0x82	/* Disable write cache */
+#define SETFEATURES_EN_DEFECT	0x84	/* Enable Defect Management */
 #define SETFEATURES_DIS_APM	0x85	/* Disable advanced power management */
 #define SETFEATURES_EN_MSN	0x95	/* Enable Media Status Notification */
 #define SETFEATURES_EN_RLA	0xAA	/* Enable read look-ahead feature */
+#define SETFEATURES_PREFETCH	0xAB	/* Sets drive prefetch value */
 #define SETFEATURES_EN_RPOD	0xCC	/* Enable reverting to power on defaults */
 #define SETFEATURES_DIS_RI	0xDD	/* Disable release interrupt */
 #define SETFEATURES_DIS_SI	0xDE	/* Disable SERVICE interrupt */
@@ -232,26 +237,11 @@
 	unsigned short  eide_dma_time;	/* recommended mword dma cycle time (ns) */
 	unsigned short  eide_pio;       /* min cycle time (ns), no IORDY  */
 	unsigned short  eide_pio_iordy; /* min cycle time (ns), with IORDY */
-#if 0
-	unsigned short  words69_74[6];	/* reserved words 69-74 */
-#else
-	unsigned short  word69;		/* reserved (word 69) */
-	unsigned short  word70;		/* reserved (word 70) */
+	unsigned short	words69_70[2];	/* reserved words 69-70 */
 	/* HDIO_GET_IDENTITY currently returns only words 0 through 70 */
-	unsigned short  word71;		/* reserved (word 71) */
-	unsigned short  word72;		/* reserved (word 72) */
-	unsigned short  word73;		/* reserved (word 73) */
-	unsigned short  word74;		/* reserved (word 74) */
-#endif
+	unsigned short	words71_74[4];	/* reserved words 71-74 */
 	unsigned short  queue_depth;	/*  */
-#if 0
 	unsigned short  words76_79[4];	/* reserved words 76-79 */
-#else
-	unsigned short  word76;		/* reserved (word 76) */
-	unsigned short  word77;		/* reserved (word 77) */
-	unsigned short  word78;		/* reserved (word 78) */
-	unsigned short  word79;		/* reserved (word 79) */
-#endif
 	unsigned short  major_rev_num;	/*  */
 	unsigned short  minor_rev_num;	/*  */
 	unsigned short  command_set_1;	/* bits 0:Smart 1:Security 2:Removable 3:PM */
@@ -266,43 +256,8 @@
 	unsigned short	CurAPMvalues;	/* current APM values */
 	unsigned short	word92;		/* reserved (word 92) */
 	unsigned short	hw_config;	/* hardware config */
-#if 0
-	unsigned short  words94_126[34];/* reserved words 94-126 */
-#else
-	unsigned short	word94;		/* reserved (word 94) */
-	unsigned short	word95;		/* reserved (word 95) */
-	unsigned short	word96;		/* reserved (word 96) */
-	unsigned short	word97;		/* reserved (word 97) */
-	unsigned short	word98;		/* reserved (word 98) */
-	unsigned short	word99;		/* reserved (word 99) */
-	unsigned short	word100;	/* reserved (word 100) */
-	unsigned short	word101;	/* reserved (word 101) */
-	unsigned short	word102;	/* reserved (word 102) */
-	unsigned short	word103;	/* reserved (word 103) */
-	unsigned short	word104;	/* reserved (word 104) */
-	unsigned short	word105;	/* reserved (word 105) */
-	unsigned short	word106;	/* reserved (word 106) */
-	unsigned short	word107;	/* reserved (word 107) */
-	unsigned short	word108;	/* reserved (word 108) */
-	unsigned short	word109;	/* reserved (word 109) */
-	unsigned short	word110;	/* reserved (word 110) */
-	unsigned short	word111;	/* reserved (word 111) */
-	unsigned short	word112;	/* reserved (word 112) */
-	unsigned short	word113;	/* reserved (word 113) */
-	unsigned short	word114;	/* reserved (word 114) */
-	unsigned short	word115;	/* reserved (word 115) */
-	unsigned short	word116;	/* reserved (word 116) */
-	unsigned short	word117;	/* reserved (word 117) */
-	unsigned short	word118;	/* reserved (word 118) */
-	unsigned short	word119;	/* reserved (word 119) */
-	unsigned short	word120;	/* reserved (word 120) */
-	unsigned short	word121;	/* reserved (word 121) */
-	unsigned short	word122;	/* reserved (word 122) */
-	unsigned short	word123;	/* reserved (word 123) */
-	unsigned short	word124;	/* reserved (word 124) */
-	unsigned short	word125;	/* reserved (word 125) */
-	unsigned short	word126;	/* reserved (word 126) */
-#endif
+	unsigned short  words94_125[33];/* reserved words 94-125 */
+	unsigned short	last_lun;	/* reserved (word 126) */
 	unsigned short	word127;	/* reserved (word 127) */
 	unsigned short	dlf;		/* device lock function
 					 * 15:9	reserved
@@ -322,7 +277,8 @@
 					 * 1	read-look-ahead
 					 * 0	write cache
 					 */
-	unsigned short	reserved[126];
+	unsigned short	words130_159[30];/* reserved vendor words 130-159 */
+	unsigned short	words160_255[96];/* reserved words 160-255 */
 };
 
 /*

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)