From 51eeae91c5e7b8f7c1bdf46aa6d6bb1675fd2ebc Mon Sep 17 00:00:00 2001 From: Suneel Garapati Date: Sat, 19 Oct 2019 16:34:16 -0700 Subject: pci: pci-uclass: Add VF BAR map support for Enhanced Allocation Makes dm_pci_map_bar API available to map BAR for Virtual function PCI devices which support Enhanced Allocation. Signed-off-by: Suneel Garapati Cc: Simon Glass Cc: Bin Meng --- include/pci.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/pci.h') diff --git a/include/pci.h b/include/pci.h index 115d3312a4a..1c5b36617e3 100644 --- a/include/pci.h +++ b/include/pci.h @@ -465,6 +465,9 @@ #define PCI_EA_FIRST_ENT 4 /* First EA Entry in List */ #define PCI_EA_ES 0x00000007 /* Entry Size */ #define PCI_EA_BEI 0x000000f0 /* BAR Equivalent Indicator */ +/* 9-14 map to VF BARs 0-5 respectively */ +#define PCI_EA_BEI_VF_BAR0 9 +#define PCI_EA_BEI_VF_BAR5 14 /* Base, MaxOffset registers */ /* bit 0 is reserved */ #define PCI_EA_IS_64 0x00000002 /* 64-bit field flag */ -- cgit v1.2.3