]> git.ipfire.org Git - people/ms/u-boot.git/commit - include/pci.h
pci: Add functions to read and write a BAR address
authorSimon Glass <sjg@chromium.org>
Sat, 15 Nov 2014 01:18:30 +0000 (18:18 -0700)
committerSimon Glass <sjg@chromium.org>
Tue, 25 Nov 2014 13:34:00 +0000 (06:34 -0700)
commite8a552eb625f0b2d7a778d151af25a17c6d33b7b
tree07c3af027137623dbb431e2b913d64e11cfc2fdd
parentb6b4a0ec5550cf5e45e9b0b3527db63464e4c3d8
pci: Add functions to read and write a BAR address

Some PCI functions cannot be auto-configured. Add a function to set up a
fixed BAR which can be used in these situations. Also add a function to read
the current address of a BAR.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/pci/pci.c
include/pci.h