On Wed, Nov 23, 2016 at 06:57:33PM +0800, Peter Xu wrote: > pci_cap_walk() is provided to allow walk through all the capability bits > for a specific PCI device. If a cap handler is provided, it'll be > triggered if the cap is detected along the cap walk. > > MSI cap handler is the first one supported. We can add more cap handler > in the future. > > Meanwhile, pci_setup_msi() API is provided to support basic 32/64 bit > address MSI setup. > > Signed-off-by: Peter Xu <peterx@xxxxxxxxxx> > --- > lib/pci.c | 69 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > lib/pci.h | 4 ++++ > 2 files changed, 73 insertions(+) Reviewed-by: Andrew Jones <drjones@xxxxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html