From patchwork Fri Jan 11 00:36:00 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: BALATON Zoltan X-Patchwork-Id: 10757191 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 969E514E5 for ; Fri, 11 Jan 2019 01:28:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8BAD129B51 for ; Fri, 11 Jan 2019 01:28:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8074929B6B; Fri, 11 Jan 2019 01:28:27 +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=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3DC7829B51 for ; Fri, 11 Jan 2019 01:28:27 +0000 (UTC) Received: from localhost ([127.0.0.1]:50272 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ghlcY-0000nX-Ct for patchwork-qemu-devel@patchwork.kernel.org; Thu, 10 Jan 2019 20:28:26 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38030) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ghlYr-0006R4-Sp for qemu-devel@nongnu.org; Thu, 10 Jan 2019 20:24:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ghlYq-0000t0-2D for qemu-devel@nongnu.org; Thu, 10 Jan 2019 20:24:37 -0500 Received: from zero.eik.bme.hu ([152.66.115.2]:50521) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ghlYo-0000lH-Bd for qemu-devel@nongnu.org; Thu, 10 Jan 2019 20:24:35 -0500 Received: from zero.eik.bme.hu (blah.eik.bme.hu [152.66.115.182]) by localhost (Postfix) with SMTP id 163417456CF; Fri, 11 Jan 2019 02:24:25 +0100 (CET) Received: by zero.eik.bme.hu (Postfix, from userid 432) id 8ACEE7456B3; Fri, 11 Jan 2019 02:24:24 +0100 (CET) Message-Id: From: BALATON Zoltan Date: Fri, 11 Jan 2019 01:36:00 +0100 To: qemu-devel@nongnu.org X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-Received-From: 152.66.115.2 Subject: [Qemu-devel] [PATCH 0/5] Refactor common PCI IDE functions from CMD646 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Cave-Ayland , John Snow , Richard Henderson Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Hello, This series is a small refactoring that moves some common PCI IDE io mem ops functions from the CMD646 model to the PCI IDE model so a CMD646 specific type can be dropped from PCIIDEState, removes code duplication from SiI3112 model (also fixing a bug) and allows these functions to be used by future PCI IDE implementations. Also cc'd Mark and Richard because the CMD646 seems to be used by Sparc, HPPA and Alpha machines. Regards, BALATON Zoltan BALATON Zoltan (5): cmd646: Remove unused variable cmd646: Remove IDEBus from CMD646BAR cmd646: Move PCI IDE specific functions to ide/pci.c ide: Get rid of CMD646BAR struct sii3112: Remove duplicated code and use PCI IDE ops instead hw/ide/cmd646.c | 102 ++++++++------------------------------------------- hw/ide/pci.c | 65 ++++++++++++++++++++++++++++++++ hw/ide/sii3112.c | 52 ++++---------------------- include/hw/ide/pci.h | 14 ++----- 4 files changed, 93 insertions(+), 140 deletions(-) Tested-by: Mark Cave-Ayland