Received: from [140.186.70.92] (port=36116 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OVbO9-0007zt-JE for qemu-devel@nongnu.org; Sun, 04 Jul 2010 22:26:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OVbO8-0005LN-Bi for qemu-devel@nongnu.org; Sun, 04 Jul 2010 22:26:29 -0400 Received: from mail.valinux.co.jp ([210.128.90.3]:58273) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OVbO7-0005L2-Tt for qemu-devel@nongnu.org; Sun, 04 Jul 2010 22:26:28 -0400 From: Isaku Yamahata Date: Mon, 5 Jul 2010 11:22:27 +0900 Message-Id: Subject: [Qemu-devel] [PATCH 0/2] seabios: pci: pci initialization clean up List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: seabios@seabios.org Cc: yamahata@valinux.co.jp, qemu-devel@nongnu.org This patch series cleans up pci device initialization by introducing a helper function. This makes it easier to add more device initialization code cleanly as preparation for q35 chipset. Isaku Yamahata (2): seabios: pci: introduce helper function to initialize a given device. seabios: pciinit: use pci device initializer helper function. Makefile | 2 +- src/i440fx.c | 52 ++++++++++++++++++ src/i440fx.h | 17 ++++++ src/pci.c | 20 +++++++ src/pci.h | 34 ++++++++++++ src/pciinit.c | 160 ++++++++++++++++++++++++++------------------------------- 6 files changed, 197 insertions(+), 88 deletions(-) create mode 100644 src/i440fx.c create mode 100644 src/i440fx.h