#
672386c1 |
| 11-Mar-2021 |
Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru> |
common/sfc_efx: update copyright year
Bump copyright year to 2021.
Signed-off-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
|
#
07999984 |
| 24-Sep-2020 |
Igor Romanov <igor.romanov@oktetlabs.ru> |
common/sfc_efx/base: replace PCI efsys macros with functions
efsys macros that manipulate PCI devices cannot be defined in common sfc_efx DPDK driver since in DPDK build the bus drivers that provide
common/sfc_efx/base: replace PCI efsys macros with functions
efsys macros that manipulate PCI devices cannot be defined in common sfc_efx DPDK driver since in DPDK build the bus drivers that provide required functionality are built after common drivers.
Replace the macros with function callbacks to remove that build dependency. Drivers now should pass the callbacks directly to efx function instead of defining implementation in efsys.
Signed-off-by: Igor Romanov <igor.romanov@oktetlabs.ru> Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com> Reviewed-by: Andy Moreton <amoreton@xilinx.com>
show more ...
|
#
da9d411e |
| 24-Sep-2020 |
Igor Romanov <igor.romanov@oktetlabs.ru> |
common/sfc_efx/base: add NIC magic check on BAR lookup
Check that BAR lookup was successful by looking at the content of signature register.
Signed-off-by: Igor Romanov <igor.romanov@oktetlabs.ru>
common/sfc_efx/base: add NIC magic check on BAR lookup
Check that BAR lookup was successful by looking at the content of signature register.
Signed-off-by: Igor Romanov <igor.romanov@oktetlabs.ru> Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com> Reviewed-by: Andy Moreton <amoreton@xilinx.com>
show more ...
|
#
ba9568b8 |
| 24-Sep-2020 |
Igor Romanov <igor.romanov@oktetlabs.ru> |
common/sfc_efx/base: add Xilinx capabilities table lookup
APIs for searching a capability in a Xilinx capabilities table and reading table entries are needed for function control window lookup to ge
common/sfc_efx/base: add Xilinx capabilities table lookup
APIs for searching a capability in a Xilinx capabilities table and reading table entries are needed for function control window lookup to get the bar index and offset of the window.
Signed-off-by: Igor Romanov <igor.romanov@oktetlabs.ru> Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com> Reviewed-by: Andy Moreton <amoreton@xilinx.com>
show more ...
|
#
0e168725 |
| 24-Sep-2020 |
Igor Romanov <igor.romanov@oktetlabs.ru> |
common/sfc_efx/base: add efsys API to find a memory BAR
Function control window lookup needs memory BARs handles to search Xilinx capabilities tables.
Define an API to get a memory BAR handle by a
common/sfc_efx/base: add efsys API to find a memory BAR
Function control window lookup needs memory BARs handles to search Xilinx capabilities tables.
Define an API to get a memory BAR handle by a PCIe device handle and BAR index.
Signed-off-by: Igor Romanov <igor.romanov@oktetlabs.ru> Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com> Reviewed-by: Andy Moreton <amoreton@xilinx.com>
show more ...
|
#
a45edfce |
| 24-Sep-2020 |
Igor Romanov <igor.romanov@oktetlabs.ru> |
common/sfc_efx/base: add function control window lookup API
Riverhead NIC may provide a locator of function control window (EF100 resource locator). The locator may be present in a Xilinx capabiliti
common/sfc_efx/base: add function control window lookup API
Riverhead NIC may provide a locator of function control window (EF100 resource locator). The locator may be present in a Xilinx capabilities table which itself is located by looking into extended PCI capabilities.
PCI capabilities are made possible to access by adding PCI config space interface to efsys.
APIs are implemented to facilitate function control window lookup: - API to find an extended PCI capability given a capability ID; - API to read Xilinx PCI capability;
Signed-off-by: Igor Romanov <igor.romanov@oktetlabs.ru> Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com> Reviewed-by: Andy Moreton <amoreton@xilinx.com>
show more ...
|