aboutsummaryrefslogtreecommitdiff
path: root/include/pci.h
diff options
context:
space:
mode:
authorSuneel Garapati <sgarapati@marvell.com>2019-10-19 16:34:16 -0700
committerStefan Roese <sr@denx.de>2020-08-25 08:01:16 +0200
commit51eeae91c5e7b8f7c1bdf46aa6d6bb1675fd2ebc (patch)
tree0a4fa3a1a1d4ac386720420ee816fdc32cd33af0 /include/pci.h
parentb8852dcfcb0facb37839a8cf9b01cb549153fba8 (diff)
downloadu-boot-51eeae91c5e7b8f7c1bdf46aa6d6bb1675fd2ebc.zip
u-boot-51eeae91c5e7b8f7c1bdf46aa6d6bb1675fd2ebc.tar.gz
u-boot-51eeae91c5e7b8f7c1bdf46aa6d6bb1675fd2ebc.tar.bz2
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 <sgarapati@marvell.com> Cc: Simon Glass <sjg@chromium.org> Cc: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'include/pci.h')
-rw-r--r--include/pci.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/pci.h b/include/pci.h
index 115d331..1c5b366 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 */