login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
August
»
5
Re: [PATCH] ata: Define new commands from ATA8
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Greg Freemyer
Subject:
Re: [PATCH] ata: Define new commands from ATA8
Date: Tuesday, August 5, 2008 - 1:10 pm
Updated comment below. On Tue, Aug 5, 2008 at 1:26 PM, Matthew Wilcox <matthew@wil.cx> wrote:
quoted text
> From: Matthew Wilcox <willy@linux.intel.com> > > Later patches require knowledge of some commands which aren't currently > defined. While I'm at it, add all the commands that are in ATA8 and > reorder the existing commands to be in the same order as ATA8. > > Signed-off-by: Matthew Wilcox <willy@linux.intel.com> > --- > include/linux/ata.h | 97 ++++++++++++++++++++++++++++++++++---------------- > 1 files changed, 66 insertions(+), 31 deletions(-) > > diff --git a/include/linux/ata.h b/include/linux/ata.h > index 1c622e2..3815431 100644 > --- a/include/linux/ata.h > +++ b/include/linux/ata.h > @@ -149,58 +149,93 @@ enum { > ATA_REG_IRQ = ATA_REG_NSECT, > > /* ATA device commands */ > - ATA_CMD_DEV_RESET = 0x08, /* ATAPI device reset */ > + ATA_CMD_CFA_ERASE_SECTORS = 0xC0, > + ATA_CMD_CFA_REQUEST_EXT_ERROR = 0x03, > + ATA_CMD_CFA_TRANSLATE_SECTOR = 0x87, > + ATA_CMD_CFA_WRITE_MULTI_WITHOUT_ERASE = 0xCD, > + ATA_CMD_CFA_WRITE_SECTORS_WITHOUT_ERASE = 0x38, > + ATA_CMD_CHK_MEDIA_CARD_TYPE = 0xD1, > ATA_CMD_CHK_POWER = 0xE5, /* check power mode */ > - ATA_CMD_STANDBY = 0xE2, /* place in standby power mode */ > - ATA_CMD_IDLE = 0xE3, /* place in idle power mode */ > + ATA_CMD_CONFIG_STREAM = 0x51, > + ATA_CMD_CONF_OVERLAY = 0xB1, > + ATA_CMD_DEV_RESET = 0x08, /* ATAPI device reset */ > + ATA_CMD_DLOAD_MCODE = 0x92, > ATA_CMD_EDD = 0x90, /* execute device diagnostic */ > ATA_CMD_FLUSH = 0xE7, > ATA_CMD_FLUSH_EXT = 0xEA, > ATA_CMD_ID_ATA = 0xEC, > ATA_CMD_ID_ATAPI = 0xA1, > - ATA_CMD_READ = 0xC8, > - ATA_CMD_READ_EXT = 0x25, > - ATA_CMD_WRITE = 0xCA, > - ATA_CMD_WRITE_EXT = 0x35, > - ATA_CMD_WRITE_FUA_EXT = 0x3D, > + ATA_CMD_IDLE = 0xE3, /* place in idle power mode */ > + ATA_CMD_IDLEIMMEDIATE = 0xE1, > + ATA_CMD_NVCACHE = 0xB6, > + ATA_CMD_NOP = 0x00, > + ATA_CMD_PACKET = 0xA0, > + ATA_CMD_PMP_READ = 0xE4, /* aka READ BUFFER */ > + ATA_CMD_READ = 0xC8, /* aka READ DMA */ > + ATA_CMD_READ_EXT = 0x25, /* aka READ DMA EXT */ > + ATA_CMD_READ_QUEUED = 0xC7, > + ATA_CMD_READ_QUEUED_EXT = 0x26, > ATA_CMD_FPDMA_READ = 0x60, > - ATA_CMD_FPDMA_WRITE = 0x61, > - ATA_CMD_PIO_READ = 0x20, > - ATA_CMD_PIO_READ_EXT = 0x24, > - ATA_CMD_PIO_WRITE = 0x30, > - ATA_CMD_PIO_WRITE_EXT = 0x34, > + ATA_CMD_READ_LOG_EXT = 0x2F, > + ATA_CMD_READ_LOG_DMA_EXT= 0x47, > ATA_CMD_READ_MULTI = 0xC4, > ATA_CMD_READ_MULTI_EXT = 0x29, > - ATA_CMD_WRITE_MULTI = 0xC5, > - ATA_CMD_WRITE_MULTI_EXT = 0x39, > - ATA_CMD_WRITE_MULTI_FUA_EXT = 0xCE, > - ATA_CMD_SET_FEATURES = 0xEF, > - ATA_CMD_SET_MULTI = 0xC6, > - ATA_CMD_PACKET = 0xA0, > - ATA_CMD_VERIFY = 0x40, > - ATA_CMD_VERIFY_EXT = 0x42, > - ATA_CMD_STANDBYNOW1 = 0xE0, > - ATA_CMD_IDLEIMMEDIATE = 0xE1, > - ATA_CMD_SLEEP = 0xE6, > - ATA_CMD_INIT_DEV_PARAMS = 0x91, > ATA_CMD_READ_NATIVE_MAX = 0xF8, > ATA_CMD_READ_NATIVE_MAX_EXT = 0x27, > + ATA_CMD_PIO_READ = 0x20, /* aka READ SECTOR(S) */ > + ATA_CMD_PIO_READ_EXT = 0x24, /* aka READ SECTOR(S) EXT */ > + ATA_CMD_READ_STREAM_DMA_EXT = 0x2A, > + ATA_CMD_READ_STREAM_EXT = 0x2B, > + ATA_CMD_VERIFY = 0x40, /* aka READ VERIFY SECTOR(S) */ > + ATA_CMD_VERIFY_EXT = 0x42, /* aka READ VERIFY SECTOR(S) EXT */ > + ATA_CMD_SEC_DISABLE_PASSWORD = 0xF6, > + ATA_CMD_SEC_ERASE_PREPARE = 0xF3, > + ATA_CMD_SEC_ERASE_UNIT = 0xF4, > + ATA_CMD_SEC_FREEZE_LOCK = 0xF5, > + ATA_CMD_SEC_SET_PASSWORD = 0xF1, > + ATA_CMD_SEC_UNLOCK = 0xF2, > + ATA_CMD_SERVICE = 0xA2, > + ATA_CMD_SET_FEATURES = 0xEF, > ATA_CMD_SET_MAX = 0xF9, > ATA_CMD_SET_MAX_EXT = 0x37, > - ATA_CMD_READ_LOG_EXT = 0x2f, > - ATA_CMD_PMP_READ = 0xE4, > - ATA_CMD_PMP_WRITE = 0xE8, > - ATA_CMD_CONF_OVERLAY = 0xB1, > - ATA_CMD_SEC_FREEZE_LOCK = 0xF5, > + ATA_CMD_SET_MULTI = 0xC6, > + ATA_CMD_SLEEP = 0xE6, > + ATA_CMD_SMART = 0xB0, > + ATA_CMD_STANDBY = 0xE2, /* place in standby power mode */ > + ATA_CMD_STANDBYNOW1 = 0xE0, > + ATA_CMD_TRUSTED_NON_DATA = 0x5B, > + ATA_CMD_TRUSTED_RECEIVE = 0x5C, > + ATA_CMD_TRUSTED_RECEIVE_DMA = 0x5D, > + ATA_CMD_TRUSTED_SEND = 0x5E, > + ATA_CMD_TRUSTED_SEND_DMA = 0x5F, > + ATA_CMD_PMP_WRITE = 0xE8, /* aka WRITE BUFFER */ > + ATA_CMD_WRITE = 0xCA, /* aka WRITE DMA */ > + ATA_CMD_WRITE_EXT = 0x35, /* aka WRITE DMA EXT */ > + ATA_CMD_WRITE_FUA_EXT = 0x3D, /* aka WRITE DMA FUA EXT */ > + ATA_CMD_WRITE_DMA_QUEUED = 0xCC, > + ATA_CMD_WRITE_DMA_QUEUED_EXT = 0x36, > + ATA_CMD_WRITE_DMA_QUEUED_FUA_EXT = 0x3E, > + ATA_CMD_FPDMA_WRITE = 0x61, /* aka WRITE FPDMA QUEUED */ > + ATA_CMD_WRITE_LOG_EXT = 0x3F, > + ATA_CMD_WRITE_LOG_DMA_EXT = 0x57, > + ATA_CMD_WRITE_MULTI = 0xC5, > + ATA_CMD_WRITE_MULTI_EXT = 0x39, > + ATA_CMD_WRITE_MULTI_FUA_EXT = 0xCE, > + ATA_CMD_PIO_WRITE = 0x30, /* aka WRITE SECTOR(S) */ > + ATA_CMD_PIO_WRITE_EXT = 0x34, /* aka WRITE SECTOR(S) EXT */ > + ATA_CMD_WRITE_STREAM_DMA_EXT = 0x3A, > + ATA_CMD_WRITE_STREAM_EXT = 0x3B, > + ATA_CMD_WRITE_UNCORRECTABLE_EXT = 0x45, > > /* READ_LOG_EXT pages */ > ATA_LOG_SATA_NCQ = 0x10, > > - /* READ/WRITE LONG (obsolete) */ > + /* Obsolete */
Since these diagnostic commands could be confused with the new "long sector" commands, should the comment say: /* Obsolete LBA28 diagnostic commands, in LBA48 replaced by ATA_WRITE_UNC_EXT, etc. */
quoted text
> ATA_CMD_READ_LONG = 0x22, > ATA_CMD_READ_LONG_ONCE = 0x23, > ATA_CMD_WRITE_LONG = 0x32, > ATA_CMD_WRITE_LONG_ONCE = 0x33, > + ATA_CMD_INIT_DEV_PARAMS = 0x91, > > /* SETFEATURES stuff */ > SETFEATURES_XFER = 0x03, > -- > 1.5.6.3 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-ide" in > the body of a message to
majordomo@vger.kernel.org
> More majordomo info at
http://vger.kernel.org/majordomo-info.html
>
-- Greg Freemyer Litigation Triage Solutions Specialist
http://www.linkedin.com/in/gregfreemyer
First 99 Days Litigation White Paper -
http://www.norcrossgroup.com/forms/whitepapers/99%20Days%20whitepaper.pdf
The Norcross Group The Intersection of Evidence & Technology
http://www.norcrossgroup.com
--
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
LibATA support for long sectors
, Matthew Wilcox
, (Tue Aug 5, 10:26 am)
[PATCH] ata: Define new commands from ATA8
, Matthew Wilcox
, (Tue Aug 5, 10:26 am)
[PATCH] ata: Add support for Long Logical Sectors and Long ...
, Matthew Wilcox
, (Tue Aug 5, 10:26 am)
Re: [PATCH] ata: Define new commands from ATA8
, Greg Freemyer
, (Tue Aug 5, 1:10 pm)
Re: [PATCH] ata: Add support for Long Logical Sectors and ...
, Alan Cox
, (Tue Aug 5, 1:46 pm)
Re: [PATCH] ata: Add support for Long Logical Sectors and ...
, Matthew Wilcox
, (Tue Aug 5, 7:22 pm)
Re: [PATCH] ata: Add support for Long Logical Sectors and ...
, Alan Cox
, (Wed Aug 6, 2:06 am)
Re: [PATCH] ata: Add support for Long Logical Sectors and ...
, Matthew Wilcox
, (Wed Aug 6, 6:11 am)
Re: [PATCH] ata: Add support for Long Logical Sectors and ...
, Alan Cox
, (Wed Aug 6, 7:13 am)
Re: [PATCH] ata: Add support for Long Logical Sectors and ...
, Alan Cox
, (Wed Aug 6, 8:06 am)
Re: [PATCH] ata: Add support for Long Logical Sectors and ...
, Matthew Wilcox
, (Wed Aug 6, 8:13 am)
Re: [PATCH] ata: Add support for Long Logical Sectors and ...
, Jeff Garzik
, (Sun Aug 17, 4:19 pm)
Re: [PATCH] ata: Add support for Long Logical Sectors and ...
, Alan Cox
, (Mon Aug 18, 11:06 am)
Re: [PATCH] ata: Add support for Long Logical Sectors and ...
, Matthew Wilcox
, (Mon Aug 18, 11:15 am)
Re: [PATCH] ata: Add support for Long Logical Sectors and ...
, Matthew Wilcox
, (Mon Aug 18, 11:42 am)
Re: [PATCH] ata: Add support for Long Logical Sectors and ...
, Alan Cox
, (Mon Aug 18, 11:49 am)
Re: [PATCH] ata: Add support for Long Logical Sectors and ...
, Matthew Wilcox
, (Mon Aug 18, 12:04 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Mel Gorman
Re: [PATCH 1/4] vmstat: remove zone->lock from walk_zones_in_node
Guenter Roeck
Re: [lm-sensors] Location for thermal drivers
David Woodhouse
Re: RFC: Moving firmware blobs out of the kernel.
Siddha, Suresh B
Re: [PATCH 2.6.21 review I] [11/25] x86: default to physical mode on hotplug CPU k...
Peter Zijlstra
Re: [patch 4/6] mm: merge populate and nopage into fault (fixes nonlinear)
git-commits-head
:
Linux Kernel Mailing List
[MIPS] Fix potential latency problem due to non-atomic cpu_wait.
Linux Kernel Mailing List
USB: rename USB_SPEED_VARIABLE to USB_SPEED_WIRELESS
Linux Kernel Mailing List
lib/vsprintf.c: fix bug omitting minus sign of numbers (module_param)
Linux Kernel Mailing List
[Bluetooth] Initiate authentication during connection establishment
Linux Kernel Mailing List
[POWERPC] 4xx: Add ppc40x_defconfig
linux-netdev
:
MERCEDES
Your mail id has won 950,000.00 in the MERCEDES Benz Online Promo.for claims send:
David Miller
Re: [PATCH] xen/netfront: do not mark packets of length < MSS as GSO
David Miller
Re: skb_segment() questions
Shan Wei
[RFC PATCH net-next 2/5]IPv6:netfilter: Send an ICMPv6 "Fragment Reassembly Timeou...
Stanislaw Gruszka
[PATCH 1/4] bnx2x: use smp_mb() to keep ordering of read write operations
git
:
Nicolas Sebrecht
git-svn died of signal 11 (was "3 failures on test t9100 (svn)")
Junio C Hamano
Re: [PATCH 2/2] Add url.<base>.pushInsteadOf: URL rewriting for push only
Martin Langhoff
Re: [PATCH] GIT commit statistics.
Alexandre Julliard
[PATCH] gitweb: Put back shortlog instead of graphiclog in the project list.
Josh Triplett
[PATCH 2/2] Add url.<base>.pushInsteadOf: URL rewriting for push only
openbsd-misc
:
Taisto Qvist XX
Re: AMD GEODE LX-800 just works with kernel from install42.iso and kernelpanics wi...
Nico Meijer
Re: gOS Develop Kit with VIA pc-1 Processor Platform VIA C7-D
Andreas Bihlmaier
Re: jetway board sensors (Fintek F71805F)
admin
Drive a 2009 car from R799p/m
Antti Harri
Re: how to create a sha256 hash
Colocation donated by:
Syndicate