7 #define __SIMPLE_DEVICE__
12 #include <soc/addressmap.h>
35 bei = (dw0 >> 4) & 0xf;
42 ret = (h << 32) | (l & ~0xfull);
45 cap_offset += (es + 1) * 4;
54 ret = (h << 32) | (l & ~0xfull);
uint64_t ecam0_get_bar_val(pci_devfn_t dev, u8 bar)
Get PCI BAR address from cavium specific extended capability.
static __always_inline u32 pci_read_config32(const struct device *dev, u16 reg)
static __always_inline u8 pci_read_config8(const struct device *dev, u16 reg)
#define PCI_BASE_ADDRESS_0
u16 pci_s_find_capability(pci_devfn_t dev, u16 cap)
Given a device, and a capability type, return the next matching capability.
unsigned long long uint64_t