summaryrefslogtreecommitdiff
path: root/backport/backport-include/linux/pci.h
AgeCommit message (Collapse)Author
2019-02-22backports: support 3.1 and 3.10 tegra kernelsDominik Sliwa
Changes specific to vendor kernels Signed-off-by: Dominik Sliwa <dominik.sliwa@toradex.com>
2018-12-03backports: Fix pci_alloc_irq_vectors() backportHauke Mehrtens
This copies the pci_alloc_irq_vectors() function from kernel 4.9 and replaces the __pci_enable_msi{x}_range() calls with calls to pci_enable_msi{x}_range(), these were backported to kernel versions < 3.14, so no need to handle the older kernels specially here. This also adds support for MSIx IRQs and adds the PCI_IRQ_* defines. Fixes: 162a6b312f1b ("add support for pci_alloc_irq_vectors") Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Cc: Omer Dagan <omer.dagan@tandemg.com>
2018-11-05add support for pci_alloc_irq_vectorsOmer Dagan
add support for function in kernels under 4.8 function is a wrapper around 'pci_enable_msi_block' or 'pci_enable_msi_range' depending on the kernel version the min\max number of interrupts was overridden to always use the max number of interrupts which seems correct since it was not supported in the old APIs Signed-off-by: Omer Dagan <omer.dagan@tandemg.com> [use GPL expert as everything in backports, remove unused ifdef] Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2018-02-23backport: add pcie_find_root_port()Luca Coelho
This function was introduced in v4.9 and added to 3.12.69, 4.4.37 and 4.8.13. Signed-off-by: Luca Coelho <luciano.coelho@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-02-09backports: always use new version compare macrosJohannes Berg
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2016-04-30header: add pci_enable_msix_exact()Hauke Mehrtens
This was added in upstream commit f7fc32cb20 "PCI/MSI: Add pci_enable_msi_exact() and pci_enable_msix_exact()" and is used by the mwifiex driver. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2014-12-20backport: add pci_device_is_present()Hauke Mehrtens
This is needed by igb driver. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2014-05-01backports: remove more old ifdef/compat codeJohannes Berg
Since support for kernels < 3.0 was removed, there's now a bunch of dead code that can be removed - do it. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
2014-04-08backports: ifdef some pci functionsEliad Peller
struct msix_entry entry is defined only when CONFIG_PCI is defined, resulting in warnings like: backport-include/linux/pci.h:256:16: warning: 'struct msix_entry' declared inside parameter list [enabled by default] backport-include/linux/pci.h:256:16: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default] wrap (also the mock function) with appropriate ifdef CONFIG_PCI. Signed-off-by: Eliad Peller <eliad@wizery.com> Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
2014-02-24backports: add pci_enable_msix_range()Hauke Mehrtens
This is needed by drivers/net/ethernet/intel/igb/igb_main.c Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2014-02-24backports: add pci_enable_msi_range()Hauke Mehrtens
This is needed by drivers/net/wireless/ath/wil6210/pcie_bus.c pci_enable_msi_block() was added in kernel 2.6.30, so this does not work on older kernel versions. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2014-02-01backports: igb fixes for linux-3.1Stefan Assmann
- add IFF_UNICAST_FLT define - add PCI_DEV_FLAGS_ASSIGNED define - add skb_frag_size_sub() - add skb_frag_address() - add patches/collateral-evolutions/network/84-ethernet/0011-igb_ethtool_ops.patch - add patches/collateral-evolutions/network/84-ethernet/0012-igb_ndo_set_vf_spoofchk.patch Signed-off-by: Stefan Assmann <sassmann@kpanic.de> Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2014-01-31backports: igb fixes for linux-3.7Stefan Assmann
- add pci_sriov_set_totalvfs() - add patches/collateral-evolutions/network/84-ethernet/0002-igb_pci_sriov_configure.patch Several ifdefs in igb_main.c to avoid compiler warnings. Signed-off-by: Stefan Assmann <sassmann@kpanic.de> Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2014-01-31backports: igb fixes for linux-3.9Stefan Assmann
- add struct pci_sriov - add pci_vfs_assigned() - add PCI_SRIOV defines - add patches/collateral-evolutions/network/84-ethernet/0001-igb_net_device_ops.patch Signed-off-by: Stefan Assmann <sassmann@kpanic.de> Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2013-12-08backports: add LINUX_BACKPORT infront of functionsHauke Mehrtens
This is needed to add support for SLES 11 SP3 support. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
2013-12-02backports: check for define in module_driver and not kernel versionHauke Mehrtens
In some places backports checked for the kernel version on weather to add a own define for module_driver or not. This patch makes it check if there is already one or not. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
2013-10-23backports: remove pci_platform_rom()Hauke Mehrtens
This was only used by the DRM drivers Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2013-08-27remove support for kernel 2.6.24Johannes Berg
By requiring 2.6.25 we can get rid of quite a lot of backport work. 2.6.25 was released more than five years ago (April 2011) and wasn't a long-term kernel either, so there's little point in supporting it now. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
2013-06-19backports: add PCI_DEVICE_SUBHauke Mehrtens
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2013-04-15backports: fix pci_platform_rom backportJohannes Berg
pci_platform_rom() actually made it into 3.9, so only provide it for kernels before that. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2013-04-15backports: dissolve compat-2.6.27.hJohannes Berg
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2013-04-15backports: dissolve compat-2.6.28.hJohannes Berg
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2013-04-15backports: dissolve compat-2.6.29.hJohannes Berg
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2013-04-15backports: dissolve compat-2.6.33.hJohannes Berg
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2013-04-15backports: dissolve compat-3.4.hJohannes Berg
This also requires some changes around kconfig.h. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2013-04-15backports: dissolve compat-3.7.hJohannes Berg
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2013-04-15backports: dissolve compat-2.6.25.hJohannes Berg
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2013-04-15backports: dissolve compat-3.10.hJohannes Berg
Signed-off-by: Johannes Berg <johannes.berg@intel.com>