pci: add helper functions for mmio bar access from real mode.
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 29 Nov 2010 08:42:10 +0000 (09:42 +0100)
committerKevin O'Connor <kevin@koconnor.net>
Sun, 5 Dec 2010 17:23:22 +0000 (12:23 -0500)
commitf1f18ebd0336f8e7920bf70b2b20afacfe9265d9
treef1694a4856288ef13755a0cdbd62b3d8f5ef0a3f
parentaf9629be3aeb3952ff432cf009394f10727ee0e8
pci: add helper functions for mmio bar access from real mode.

This patch adds helper pci_readl and pci_writel which can be used
to access pci mmio bars from real mode.  They work in 32bit mode
too.  ahci support needs this, also ohci for bulk transfers, and
probably more devices in the future.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
src/pci.c
src/pci.h