zephyr/drivers/ethernet
Tomasz Bursztyka f70ecc1099 drivers/pcie: Improve and fix MBAR retrieval depending on use cases
So far pcie_get_mbar() has been the only way to retrieve a MBAR. But
it's logic does not fit all uses cases as we will see further.
The meaning of its parameter "index" is not about BAR index but about
a valid Base Address count instead. It's an arbitrary way to index
MBARs unrelated to the actual BAR index.

While this has proven to be just the function we needed so far, this has
not been the case for MSI-X, which one (through BIR info) needs to
access the BAR by their actual index. Same as ivshmem in fact, though
that one did not generate any bug since it never has IO BARs nor 64bits
BARs (so far?).

So:

- renaming existing pcie_get_mbar() to pcie_probe_mbar(), which is a
  more relevant name as it indeed probes the BARs to find the nth valid
  one.
- Introducing a new pcie_get_mbar() which this time really asks for the
  BAR index.
- Applying the change where relevant. So all use pcie_probe_mbar() now
  but MSI-X and ivshmem.

Fixes #37444

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
2021-08-20 06:30:20 -04:00
..
CMakeLists.txt drivers: ethernet: build as static library 2021-08-17 06:06:03 -04:00
dsa_ksz8xxx.c dsa: updated api to use net_if 2021-07-26 19:37:22 -04:00
dsa_ksz8794.h dts: ksz8974: add support for ksz8863 2021-07-26 19:37:22 -04:00
dsa_ksz8863.h dts: ksz8974: add support for ksz8863 2021-07-26 19:37:22 -04:00
eth_e1000_priv.h drivers: eth: e1000: Add simulated PTP clock device 2021-04-27 12:02:19 +03:00
eth_e1000.c drivers/pcie: Improve and fix MBAR retrieval depending on use cases 2021-08-20 06:30:20 -04:00
eth_enc28j60_priv.h ethernet: enc28j60: convert to _dt_spec 2021-08-09 19:50:53 -04:00
eth_enc28j60.c ethernet: enc28j60: convert to _dt_spec 2021-08-09 19:50:53 -04:00
eth_enc424j600_priv.h ethernet: enc424j600: convert to _dt_spec 2021-08-09 19:50:53 -04:00
eth_enc424j600.c ethernet: enc424j600: convert to _dt_spec 2021-08-09 19:50:53 -04:00
eth_gecko_priv.h
eth_gecko.c drivers: ethernet: remove usage of device_pm_control_nop 2021-04-28 10:55:22 -04:00
eth_liteeth.c drivers: ethernet: remove usage of device_pm_control_nop 2021-04-28 10:55:22 -04:00
eth_mcux.c hal: nxp: Update to SDK 2.10.0 2021-08-13 15:37:48 -05:00
eth_native_posix_adapt.c
eth_native_posix_priv.h
eth_native_posix.c drivers: eth: Enable TXTIME and PTP clock properly 2021-06-14 07:00:10 -04:00
eth_sam0_gmac.h
eth_sam_gmac_priv.h drivers: eth: sam: Replace constants by devicetree values 2021-07-16 21:34:43 -04:00
eth_sam_gmac.c drivers: eth: sam: Replace constants by devicetree values 2021-07-16 21:34:43 -04:00
eth_smsc911x_priv.h
eth_smsc911x.c drivers: ethernet: remove usage of device_pm_control_nop 2021-04-28 10:55:22 -04:00
eth_stellaris_priv.h
eth_stellaris.c drivers: ethernet: remove usage of device_pm_control_nop 2021-04-28 10:55:22 -04:00
eth_stm32_hal_priv.h
eth_stm32_hal.c drivers: ethernet: eth_stm32_hal.c: add wait time for buffer allocation 2021-08-05 11:32:42 -04:00
eth_w5500_priv.h ethernet: w5500: convert to _dt_spec 2021-08-09 19:50:53 -04:00
eth_w5500.c ethernet: w5500: convert to _dt_spec 2021-08-09 19:50:53 -04:00
eth_xlnx_gem_priv.h drivers: ethernet: add support for Xilinx GEM controller 2021-06-21 20:11:00 -04:00
eth_xlnx_gem.c drivers: ethernet: add support for Xilinx GEM controller 2021-06-21 20:11:00 -04:00
eth.h
Kconfig drivers: ethernet: add support for Xilinx GEM controller 2021-06-21 20:11:00 -04:00
Kconfig.dsa dts: ksz8974: rename driver to ksz8xxxx 2021-07-26 19:37:22 -04:00
Kconfig.e1000 drivers: eth: e1000: Add simulated PTP clock device 2021-04-27 12:02:19 +03:00
Kconfig.enc28j60
Kconfig.enc424j600
Kconfig.gecko
Kconfig.liteeth
Kconfig.mcux drivers: eth: mcux: Separate PTP clock from gPTP support 2021-04-27 12:02:19 +03:00
Kconfig.native_posix
Kconfig.sam_gmac drivers: eth: gmac: Separate PTP clock from gPTP support 2021-04-27 12:02:19 +03:00
Kconfig.smsc911x
Kconfig.stellaris
Kconfig.stm32_hal drivers: ethernet: stm32: add support for disabling auto-negotiation 2021-07-14 07:28:57 -04:00
Kconfig.w5500
Kconfig.xlnx_gem drivers: ethernet: add support for Xilinx GEM controller 2021-06-21 20:11:00 -04:00
phy_gecko.c
phy_gecko.h
phy_sam_gmac.c
phy_sam_gmac.h
phy_xlnx_gem.c drivers: ethernet: add support for Xilinx GEM controller 2021-06-21 20:11:00 -04:00
phy_xlnx_gem.h drivers: ethernet: add support for Xilinx GEM controller 2021-06-21 20:11:00 -04:00