From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=33150 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q6lha-0001wn-MU for qemu-devel@nongnu.org; Mon, 04 Apr 2011 11:28:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q6lhV-0001lx-1T for qemu-devel@nongnu.org; Mon, 04 Apr 2011 11:28:22 -0400 Received: from mx1.redhat.com ([209.132.183.28]:31665) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q6lhU-0001lf-Nk for qemu-devel@nongnu.org; Mon, 04 Apr 2011 11:28:21 -0400 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p34FSJQ8007462 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 4 Apr 2011 11:28:19 -0400 Received: from cleopatra.tlv.redhat.com (cleopatra.tlv.redhat.com [10.35.255.11]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p34FSIGs016055 for ; Mon, 4 Apr 2011 11:28:19 -0400 From: Avi Kivity Date: Mon, 4 Apr 2011 18:27:57 +0300 Message-Id: <1301930887-20705-1-git-send-email-avi@redhat.com> Subject: [Qemu-devel] [PATCH 00/10] pci: pci_register_bar_simple 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 Many PCI BARs that use the memory address space map a single MMIO region into the entire BAR range. Introduce an API pci_register_bar_simple() for that use case, and convert all users where this can be done trivially. This will reduce the work required to introduce a PCI memory API; it's also a nice code reduction in its own right. Avi Kivity (10): pci: add pci_register_bar_simple() API rtl8139: convert to pci_register_bar_simple() cirrus-vga: convert to pci_register_bar_simple() eepro100: convert to pci_register_bar_simple() ich/ahci: convert to pci_register_bar_simple() hda-intel: convert to pci_register_bar_simple() hda-intel: convert to pci_register_bar_simple() (partial) pcnet-pci: convert to pci_register_bar_simple() usb-ohci: convert to pci_register_bar_simple() wdt_i6300esb: convert to pci_register_bar_simple() hw/cirrus_vga.c | 13 ++----------- hw/eepro100.c | 43 +++++++++++++------------------------------ hw/ide/ahci.c | 9 --------- hw/ide/ahci.h | 3 --- hw/ide/ich.c | 3 +-- hw/intel-hda.c | 11 +---------- hw/lsi53c895a.c | 12 +----------- hw/pci.c | 17 +++++++++++++++++ hw/pci.h | 3 +++ hw/pcnet-pci.c | 16 +--------------- hw/rtl8139.c | 11 +---------- hw/usb-ohci.c | 10 +--------- hw/wdt_i6300esb.c | 42 +++++++++++++++--------------------------- 13 files changed, 56 insertions(+), 137 deletions(-)