From patchwork Mon May 31 20:56:47 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Herbszt X-Patchwork-Id: 54133 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 8D2E6B7D16 for ; Tue, 1 Jun 2010 06:58:23 +1000 (EST) Received: from localhost ([127.0.0.1]:38532 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OJC3w-0007gW-2l for incoming@patchwork.ozlabs.org; Mon, 31 May 2010 16:58:20 -0400 Received: from [140.186.70.92] (port=53275 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OJC39-0007gR-61 for qemu-devel@nongnu.org; Mon, 31 May 2010 16:57:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OJC37-0006xg-Pf for qemu-devel@nongnu.org; Mon, 31 May 2010 16:57:31 -0400 Received: from mail.gmx.net ([213.165.64.20]:48894) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1OJC37-0006xN-08 for qemu-devel@nongnu.org; Mon, 31 May 2010 16:57:29 -0400 Received: (qmail invoked by alias); 31 May 2010 20:57:26 -0000 Received: from g225086247.adsl.alicedsl.de (HELO opensuse112) [92.225.86.247] by mail.gmx.net (mp021) with SMTP; 31 May 2010 22:57:26 +0200 X-Authenticated: #310364 X-Provags-ID: V01U2FsdGVkX19MbqZxjVpMYhbgHO0pc8+gRhfpvCrRGWKkbMPz5H WoFZ5BWb0a6dSC X-Mailer: gregkh_patchbomb modified Date: Mon, 31 May 2010 22:56:47 +0200 Message-Id: <1275339407$2802@local> Mime-Version: 1.0 To: qemu-devel@nongnu.org From: Sebastian Herbszt X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. Cc: qemu-ahci-devel@lists.sourceforge.net, Sebastian Herbszt Subject: [Qemu-devel] [PATCH] ahci: drop ATAPI_CMD constants X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Drop not used ATAPI_CMD constants. Signed-off-by: Sebastian Herbszt diff --git a/hw/ahci.c b/hw/ahci.c index 9987459..a024706 100644 --- a/hw/ahci.c +++ b/hw/ahci.c @@ -179,21 +179,6 @@ do { fprintf(stderr,"ahci: " fmt , ## __VA_ARGS__); } while (0) #define ATA_CMD_WRITE_EXT 0x34 /* Write Sectores (with retries) with 48bit addressing */ #define ATA_CMD_VRFY_EXT 0x42 /* Read Verify (with retries) with 48bit addressing */ -/* - * ATAPI Commands - */ -#define ATAPI_CMD_IDENT 0xA1 /* Identify AT Atachment Packed Interface Device */ -#define ATAPI_CMD_PACKET 0xA0 /* Packed Command */ - - -#define ATAPI_CMD_INQUIRY 0x12 -#define ATAPI_CMD_REQ_SENSE 0x03 -#define ATAPI_CMD_READ_CAP 0x25 -#define ATAPI_CMD_START_STOP 0x1B -#define ATAPI_CMD_READ_12 0xA8 - - - typedef struct ahci_control_regs { uint32_t cap; uint32_t ghc;