From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NWpKp-0001do-I7 for qemu-devel@nongnu.org; Mon, 18 Jan 2010 05:59:51 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NWpKk-0001by-Mp for qemu-devel@nongnu.org; Mon, 18 Jan 2010 05:59:51 -0500 Received: from [199.232.76.173] (port=51048 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NWpKk-0001bp-Ee for qemu-devel@nongnu.org; Mon, 18 Jan 2010 05:59:46 -0500 Received: from mx1.redhat.com ([209.132.183.28]:19607) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NWpKk-0002FY-03 for qemu-devel@nongnu.org; Mon, 18 Jan 2010 05:59:46 -0500 Date: Mon, 18 Jan 2010 12:56:15 +0200 From: "Michael S. Tsirkin" Message-ID: <20100118105615.GA8277@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] [PATCHv2 0/3] rwhandler: introduce and switch pci_host to it List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: qemu-devel@nongnu.org, agraf@suse.de, Blue Swirl , Isaku Yamahata , paul@codesourcery.com, Aurelien Jarno Alexander, so I assume the following patchset should be enough for you to implement u3 support, simply by creating your own rwhandler, and using pci_data_read/write directly there. I have pushed it to a temporary branch in my tree: git://git.kernel.org/pub/scm/linux/kernel/git/mst/qemu.git rwhandler Paul, any comments on this approach? I'll push this to my pci tree if this turns out to be helpful. Hope this helps, and sorry about the churn. Michael S. Tsirkin (3): bwap: add qemu_bswap helper rwhandler: simplified way to register for mem/io pci_host: rewrite using rwhandler Makefile.target | 1 + bswap.h | 6 ++ hw/pci_host.c | 172 +++++++++++++++++++---------------------------- hw/pci_host.h | 4 + hw/pci_host_template.h | 109 ------------------------------ rwhandler.c | 91 +++++++++++++++++++++++++ rwhandler.h | 27 ++++++++ 7 files changed, 199 insertions(+), 211 deletions(-) delete mode 100644 hw/pci_host_template.h create mode 100644 rwhandler.c create mode 100644 rwhandler.h