Messages in this thread | | | Date | Sat, 06 Nov 2004 11:48:38 -0500 | From | Jeff Garzik <> | Subject | Re: [PATCH 1/3] WIN_* -> ATA_CMD_* conversion: add new entries to ata.h |
| |
Chris Wedgwood wrote: > ===== include/linux/ata.h 1.19 vs edited ===== > --- 1.19/include/linux/ata.h 2004-11-02 11:32:44 -08:00 > +++ edited/include/linux/ata.h 2004-11-05 19:04:41 -08:00 > @@ -122,6 +122,27 @@ > ATA_CMD_SET_FEATURES = 0xEF, > ATA_CMD_PACKET = 0xA0, > > + /* ATA devices commands (used by legacy IDE code) */ > + ATA_CMD_NOP = 0x00, > + ATA_CMD_SRST = 0x08, > + ATA_CMD_RESTORE = 0x10, > + ATA_CMD_MULTREAD_EXT = 0x29, > + ATA_CMD_READ_NATIVE_MAX_EXT = 0x27, > + ATA_CMD_MULTWRITE_EXT = 0x39, > + ATA_CMD_SPECIFY = 0x91, /* set geom */ > + ATA_CMD_SMART = 0xB0, > + ATA_CMD_MULTREAD = 0xC4, > + ATA_CMD_MULTWRITE = 0xC5, > + ATA_CMD_MULTSET = 0xC6, > + ATA_CMD_DOORLOCK = 0xDE, > + ATA_CMD_DOORUNLOCK = 0xDF, > + ATA_CMD_STANDBYNOW1 = 0xE0, > + ATA_CMD_IDLEIMMEDIATE = 0xE1, > + ATA_CMD_ID_ATA_DMA = 0xEE, > + ATA_CMD_READ_NATIVE_MAX = 0xF8, > + ATA_CMD_SET_MAX = 0xF9, > + ATA_CMD_SET_MAX_EXT = 0x37,
No need for a separate "section" for ATA_CMD_xxx used by libata versus IDE driver. ATA_CMD_xxx are just constants, available for any user. There is no discernible order in current linux/ata.h, so feel free to alphabetize or order by opcode (or just leave as-is).
Jeff
- 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/
| |