{"id":817908,"url":"http://patchwork.ozlabs.org/api/covers/817908/?format=json","web_url":"http://patchwork.ozlabs.org/project/qemu-devel/cover/1506264466-28252-1-git-send-email-mark.cave-ayland@ilande.co.uk/","project":{"id":14,"url":"http://patchwork.ozlabs.org/api/projects/14/?format=json","name":"QEMU Development","link_name":"qemu-devel","list_id":"qemu-devel.nongnu.org","list_email":"qemu-devel@nongnu.org","web_url":"","scm_url":"","webscm_url":"","list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<1506264466-28252-1-git-send-email-mark.cave-ayland@ilande.co.uk>","list_archive_url":null,"date":"2017-09-24T14:47:39","name":"[0/7] mac_dbdma: tidy-up and QOMify","submitter":{"id":12451,"url":"http://patchwork.ozlabs.org/api/people/12451/?format=json","name":"Mark Cave-Ayland","email":"mark.cave-ayland@ilande.co.uk"},"mbox":"http://patchwork.ozlabs.org/project/qemu-devel/cover/1506264466-28252-1-git-send-email-mark.cave-ayland@ilande.co.uk/mbox/","series":[{"id":4817,"url":"http://patchwork.ozlabs.org/api/series/4817/?format=json","web_url":"http://patchwork.ozlabs.org/project/qemu-devel/list/?series=4817","date":"2017-09-24T14:47:39","name":"mac_dbdma: tidy-up and QOMify","version":1,"mbox":"http://patchwork.ozlabs.org/series/4817/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/covers/817908/comments/","headers":{"Return-Path":"<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":"ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=nongnu.org\n\t(client-ip=2001:4830:134:3::11; helo=lists.gnu.org;\n\tenvelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n\treceiver=<UNKNOWN>)","Received":["from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11])\n\t(using TLSv1 with cipher AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3y0VVC3nqkz9sDB\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 25 Sep 2017 00:49:23 +1000 (AEST)","from localhost ([::1]:38417 helo=lists.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.71) (envelope-from\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>)\n\tid 1dw8Dh-000341-CD\n\tfor incoming@patchwork.ozlabs.org; Sun, 24 Sep 2017 10:49:21 -0400","from eggs.gnu.org ([2001:4830:134:3::10]:57155)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <mark.cave-ayland@ilande.co.uk>) id 1dw8Cb-0002gu-LQ\n\tfor qemu-devel@nongnu.org; Sun, 24 Sep 2017 10:48:14 -0400","from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <mark.cave-ayland@ilande.co.uk>) id 1dw8Ca-0002Hb-NY\n\tfor qemu-devel@nongnu.org; Sun, 24 Sep 2017 10:48:13 -0400","from chuckie.co.uk ([82.165.15.123]:49760\n\thelo=s16892447.onlinehome-server.info)\n\tby eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)\n\t(Exim 4.71) (envelope-from <mark.cave-ayland@ilande.co.uk>)\n\tid 1dw8CV-00027z-RV; Sun, 24 Sep 2017 10:48:07 -0400","from host86-191-82-173.range86-191.btcentralplus.com\n\t([86.191.82.173] helo=kentang.home)\n\tby s16892447.onlinehome-server.info with esmtpsa\n\t(TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76)\n\t(envelope-from <mark.cave-ayland@ilande.co.uk>)\n\tid 1dw8CQ-0006gI-5f; Sun, 24 Sep 2017 15:48:03 +0100"],"From":"Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>","To":"qemu-ppc@nongnu.org, qemu-devel@nongnu.org, david@gibson.dropbear.id.au","Date":"Sun, 24 Sep 2017 15:47:39 +0100","Message-Id":"<1506264466-28252-1-git-send-email-mark.cave-ayland@ilande.co.uk>","X-Mailer":"git-send-email 1.7.10.4","X-SA-Exim-Connect-IP":"86.191.82.173","X-SA-Exim-Mail-From":"mark.cave-ayland@ilande.co.uk","X-SA-Exim-Version":"4.2.1 (built Sun, 08 Jan 2012 02:45:44 +0000)","X-SA-Exim-Scanned":"Yes (on s16892447.onlinehome-server.info)","X-detected-operating-system":"by eggs.gnu.org: GNU/Linux 3.x [fuzzy]","X-Received-From":"82.165.15.123","Subject":"[Qemu-devel] [PATCH 0/7] mac_dbdma: tidy-up and QOMify","X-BeenThere":"qemu-devel@nongnu.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Id":"<qemu-devel.nongnu.org>","List-Unsubscribe":"<https://lists.nongnu.org/mailman/options/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>","List-Archive":"<http://lists.nongnu.org/archive/html/qemu-devel/>","List-Post":"<mailto:qemu-devel@nongnu.org>","List-Help":"<mailto:qemu-devel-request@nongnu.org?subject=help>","List-Subscribe":"<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=subscribe>","Errors-To":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org","Sender":"\"Qemu-devel\"\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>"},"content":"Whilst looking at implementing another DBDMA device for the Mac machines\nI noticed a couple of things: firstly there were some unused fields still\nin DBDMAState, and secondly the existing code still used global functions\nto register DMA channels and handle the relationship between macio IDE and\nDBDMA.\n\nThis patchset removes the now-unused fields from DBDMA state, QOMifys the\nDBDMA device, uses a QOM object link to allow the macio IDE object to\nreference the DBDMA device, and then finally removes the global DBDMA_*\nfunctions substituting them instead for QOM methods.\n\nNote: this patchset does not apply to master but on top of David's\nppc-for-2.11 branch since there are merge conflicts with my previous\npatchset. Hopefully the Based-On line below is enough to keep patchew\nhappy, even though it wasn't the final version applied to the ppc-for-2.11\nbranch.\n\nSigned-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>\nBased-on: 1505668548-16616-1-git-send-email-mark.cave-ayland@ilande.co.uk (ppc: more Mac-related fixups)\n\n\nMark Cave-Ayland (7):\n  mac_dbdma: remove unused IO fields from DBDMAState\n  mac_dbdma: QOMify\n  mac_dbdma: remove DBDMA_init() function\n  macio: pass channel into MACIOIDEState via qdev property\n  macio: use object link between MACIO_IDE and MAC_DBDMA object\n  mac_dbdma: change DBDMA_register_channel to a MAC_DBDMA type method\n  mac_dbdma: change DBDMA_kick to a MAC_DBDMA type method\n\n hw/ide/macio.c             |   26 ++++++++++-----\n hw/misc/macio/mac_dbdma.c  |   79 +++++++++++++++++++++++++++++---------------\n hw/misc/macio/macio.c      |   20 ++++++++---\n hw/ppc/mac.h               |    4 +--\n include/hw/ppc/mac_dbdma.h |   22 ++++++------\n 5 files changed, 97 insertions(+), 54 deletions(-)"}