pci: use helper functions to access pci config space.
authorIsaku Yamahata <yamahata@valinux.co.jp>
Fri, 30 Oct 2009 12:21:00 +0000 (21:21 +0900)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 9 Nov 2009 14:43:05 +0000 (08:43 -0600)
commitb0ff8eb2d0c1b22b65a6c11b864dd85eb0294cdb
treed6f204f042e8d192cc00ade0f0089eeaeb7a1032
parentfb5ce7d289f8e34c6f8a025e55e0d96e9a496cd9
pci: use helper functions to access pci config space.

use pci_[gs]et_{byte, word, long}() to access pci configuration
space.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/pci.c