From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755248AbYGXT11 (ORCPT ); Thu, 24 Jul 2008 15:27:27 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753307AbYGXT1L (ORCPT ); Thu, 24 Jul 2008 15:27:11 -0400 Received: from nf-out-0910.google.com ([64.233.182.187]:19769 "EHLO nf-out-0910.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751624AbYGXT1J (ORCPT ); Thu, 24 Jul 2008 15:27:09 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:cc:mime-version:content-disposition :message-id:content-type:content-transfer-encoding; b=Vj0M5A/WLyyrgBRov9ToFc9+i2dg0it97m6w6q5dZ3MPdfBRA7KDjcrW9Vkky6lCT5 TWWPCClhy6sEvPzFQsOfNNzNVvIWHz2p/gmGKfbVmnDru8vEwHi4/qbyD2xRfkQD4eSX mtEB7YyPfVNW3k/S1zcClPZQqsw2QOh/lx5pI= From: Bartlomiej Zolnierkiewicz To: linux-ide@vger.kernel.org Subject: [PATCH 1/4] ata: add missing ATA_* defines Date: Thu, 24 Jul 2008 21:22:39 +0200 User-Agent: KMail/1.9.9 Cc: linux-kernel@vger.kernel.org, Jeff Garzik MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200807242122.39783.bzolnier@gmail.com> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add missing ATA_* defines to . Also add ATAPI_{LFS,EOM,ILI,IO,CODE} defines while at it. Cc: Jeff Garzik Signed-off-by: Bartlomiej Zolnierkiewicz --- * against previous ATA_ID_* and ATA_CMD_* patchsets * patch #1 shouldn't conflict with previous ones include/linux/ata.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) Index: b/include/linux/ata.h =================================================================== --- a/include/linux/ata.h +++ b/include/linux/ata.h @@ -153,13 +153,26 @@ enum { ATA_BUSY = (1 << 7), /* BSY status bit */ ATA_DRDY = (1 << 6), /* device ready */ ATA_DF = (1 << 5), /* device fault */ + ATA_DSC = (1 << 4), /* drive seek complete */ ATA_DRQ = (1 << 3), /* data request i/o */ + ATA_CORR = (1 << 2), /* corrected data error */ + ATA_IDX = (1 << 1), /* index */ ATA_ERR = (1 << 0), /* have an error */ ATA_SRST = (1 << 2), /* software reset */ ATA_ICRC = (1 << 7), /* interface CRC error */ + ATA_BBK = ATA_ICRC, /* pre-EIDE: block marked bad */ ATA_UNC = (1 << 6), /* uncorrectable media error */ + ATA_MC = (1 << 5), /* media changed */ ATA_IDNF = (1 << 4), /* ID not found */ + ATA_MCR = (1 << 3), /* media change requested */ ATA_ABORTED = (1 << 2), /* command aborted */ + ATA_TRK0NF = (1 << 1), /* track 0 not found */ + ATA_AMNF = (1 << 0), /* address mark not found */ + ATAPI_LFS = 0xF0, /* last failed sense */ + ATAPI_EOM = ATA_TRK0NF, /* end of media */ + ATAPI_ILI = ATA_AMNF, /* illegal length indication */ + ATAPI_IO = (1 << 1), + ATAPI_COD = (1 << 0), /* ATA command block registers */ ATA_REG_DATA = 0x00,