aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2006-06-11 09:59:27 -0400
committerJeff Garzik <jeff@garzik.org>2006-08-10 06:49:45 -0400
commit8b881b0410de0f72a43e814393abf3a4cb29ebb4 (patch)
tree4ee2da79e3e069226bb7824019f81e25fa5c3622
parent2b8ae728a8bada0cca10f30d3e7c52d384e8d5ad (diff)
[ATA] Increase lba48 max-sectors from 200 to 256.
Also, moved ATA_MAX_SECTORS and ATA_MAX_SECTORS_LBA48 from linux/libata.h to linux/ata.h, now that they truly reflect the standard (well... mostly; note TODO comment). This changes the performance profile (and potential bug profile) for a bunch of drivers, so be wary.
-rw-r--r--include/linux/ata.h2
-rw-r--r--include/linux/libata.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/ata.h b/include/linux/ata.h
index 3671af869696..8d708a3d505b 100644
--- a/include/linux/ata.h
+++ b/include/linux/ata.h
@@ -40,6 +40,8 @@ enum {
40 ATA_MAX_DEVICES = 2, /* per bus/port */ 40 ATA_MAX_DEVICES = 2, /* per bus/port */
41 ATA_MAX_PRD = 256, /* we could make these 256/256 */ 41 ATA_MAX_PRD = 256, /* we could make these 256/256 */
42 ATA_SECT_SIZE = 512, 42 ATA_SECT_SIZE = 512,
43 ATA_MAX_SECTORS = 256,
44 ATA_MAX_SECTORS_LBA48 = 65535,/* TODO: 65536? */
43 45
44 ATA_ID_WORDS = 256, 46 ATA_ID_WORDS = 256,
45 ATA_ID_SERNO_OFS = 10, 47 ATA_ID_SERNO_OFS = 10,
diff --git a/include/linux/libata.h b/include/linux/libata.h
index ed749f778697..060da736b3a8 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -114,8 +114,6 @@ enum {
114 /* tag ATA_MAX_QUEUE - 1 is reserved for internal commands */ 114 /* tag ATA_MAX_QUEUE - 1 is reserved for internal commands */
115 ATA_MAX_QUEUE = 32, 115 ATA_MAX_QUEUE = 32,
116 ATA_TAG_INTERNAL = ATA_MAX_QUEUE - 1, 116 ATA_TAG_INTERNAL = ATA_MAX_QUEUE - 1,
117 ATA_MAX_SECTORS = 200, /* FIXME */
118 ATA_MAX_SECTORS_LBA48 = 65535,
119 ATA_MAX_BUS = 2, 117 ATA_MAX_BUS = 2,
120 ATA_DEF_BUSY_WAIT = 10000, 118 ATA_DEF_BUSY_WAIT = 10000,
121 ATA_SHORT_PAUSE = (HZ >> 6) + 1, 119 ATA_SHORT_PAUSE = (HZ >> 6) + 1,