From patchwork Thu Jun 15 11:29:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Minwoo Im X-Patchwork-Id: 9788689 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C60C360384 for ; Thu, 15 Jun 2017 11:29:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BCBBA284A6 for ; Thu, 15 Jun 2017 11:29:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B12A9284DB; Thu, 15 Jun 2017 11:29:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 66AEB284A6 for ; Thu, 15 Jun 2017 11:29:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752396AbdFOL3d (ORCPT ); Thu, 15 Jun 2017 07:29:33 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:34021 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752381AbdFOL3c (ORCPT ); Thu, 15 Jun 2017 07:29:32 -0400 Received: by mail-pf0-f196.google.com with SMTP id d5so1437483pfe.1 for ; Thu, 15 Jun 2017 04:29:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=wo3NJso5GvCv+2GMjTx59hATrzjsSYXCzMAtNiwTOGQ=; b=tZkENSYBYJTfYDOYPXrTaU08RkYFll6DsCbfaBxDnj3zBNs+FeqAL/wNSXkrN+QLtb QTenHNeJ9c2axiUIyMrKNkgYB0X0avGCYYsnFFTvhdczjSAes+nv5aLpJLAqzGYlxkbq 9Pxju4Zp8rd4A0jarMi/s19utGCjVcg26HNridUVI9qC4YB4oXRM3A1qhqqoUjDvbOd8 QRhilf1Tyv9OBJUP94AKiKD8DsiSttC00MfkBaKFZpyrpMoHcPNucCYM6ZRQbC2S11Kw BbAJVpf6PTgAoLPbXj5zQpYkryJ0F4Fy+U1AF0Cogklja3Fiy5Elsz1skOtLwaL9IjJa EKEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=wo3NJso5GvCv+2GMjTx59hATrzjsSYXCzMAtNiwTOGQ=; b=Ko7zMaD4W8I8gasI7xhAy6DXKNR856PUlRC6/Aob4/neJaxws3iaH1MmwngPlL0Xci 2aR9sdbB288xe2YyXse/u1eCtyDV1bcHJ15p6V1D7whEbcgHXN7ldEF21GP5rNUJKWiD Oc0dUn8i7ViWRgwaDQGLB3S8g7TlskNvN9EG8D1v7rBDisHsuakJIjAfVnuNhzbZRkkH 0AH+ZfHZffjeg+ZMlEvD+WY9hW98IhlDf5xhf3pumnSzRLKugtkzqlDw1kKKCaXCH4va F8AlHO12lQqeW83Tx1ItBVI8TeyWAx/nV+iTbLaZFZCsdv4/3ilcK3D0LRTLfjuqBE6D qXTg== X-Gm-Message-State: AKS2vOzfpQ69Edqk46oivUjCoYSJ+mP2zPEgiOk1sfYZfpBjdvONKNM+ Cqqcrmv+P2vmxw== X-Received: by 10.98.210.199 with SMTP id c190mr4799882pfg.157.1497526172257; Thu, 15 Jun 2017 04:29:32 -0700 (PDT) Received: from Lim-localhost.skbroadband ([211.49.14.198]) by smtp.gmail.com with ESMTPSA id c4sm5959987pfg.31.2017.06.15.04.29.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Jun 2017 04:29:31 -0700 (PDT) From: Minwoo Im To: "James E.J. Bottomley" , "Martin K. Petersen" Cc: linux-scsi@vger.kernel.org, Minwoo Im Subject: [PATCH] scsi_proto.h: ATA_32 added for ata pass-thru(32). Date: Thu, 15 Jun 2017 20:29:24 +0900 Message-Id: <1497526164-7432-1-git-send-email-dn3108@gmail.com> X-Mailer: git-send-email 1.7.9.5 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP SAT-4(SCSI/ATA Translation Standard) supports a ATA PASS-THROUGH(32) SCSI command. It uses 7Fh as a operation code which means variable-length CDB. It would be great if kernel supports an ata pass-thru(32) command. Prior to development of ata pass-through in libata level, the definition of it should be added first. Signed-off-by: Minwoo Im --- include/scsi/scsi_proto.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/scsi/scsi_proto.h b/include/scsi/scsi_proto.h index ce78ec8..1eb4efd 100644 --- a/include/scsi/scsi_proto.h +++ b/include/scsi/scsi_proto.h @@ -164,6 +164,7 @@ #define WRITE_SAME_32 0x0d /* Values for T10/04-262r7 */ +#define ATA_32 0x7F /* 32-byte pass-thru */ #define ATA_16 0x85 /* 16-byte pass-thru */ #define ATA_12 0xa1 /* 12-byte pass-thru */