Received: from [140.186.70.92] (port=56235 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OWL9A-0008FE-6S for qemu-devel@nongnu.org; Tue, 06 Jul 2010 23:18:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OWL99-0007kw-3L for qemu-devel@nongnu.org; Tue, 06 Jul 2010 23:18:04 -0400 Received: from mail.valinux.co.jp ([210.128.90.3]:58437) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OWL98-0007kU-PY for qemu-devel@nongnu.org; Tue, 06 Jul 2010 23:18:03 -0400 From: Isaku Yamahata Date: Wed, 7 Jul 2010 12:14:00 +0900 Message-Id: Subject: [Qemu-devel] [PATCH v2 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 Changes from v1 -> v2 - renamed files i440fx -> dev->i440fx. - dropped copyright notice from dev-i440fx.h 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/dev-i440fx.c | 52 ++++++++++++++++++ src/dev-i440fx.h | 8 +++ src/pci.c | 20 +++++++ src/pci.h | 34 ++++++++++++ src/pciinit.c | 160 +++++++++++++++++++++++++----------------------------- 6 files changed, 188 insertions(+), 88 deletions(-) create mode 100644 src/dev-i440fx.c create mode 100644 src/dev-i440fx.h