cnss2: Add code to separate MSM PCIe APIs to pci_qcom.c file
Add code to move the platform related apis mainly defined under CONFIG_ARCH_QCOM and CONFIG_PCI_MSM flags to separate file, named pci_qcom.c. This change facilitates easy code upgrade for customer. Change-Id: Ic81e633829ccfdeb3fc3f123013708e6d712c5c2
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
037264e406
commit
29e96e5173
@@ -7,6 +7,7 @@
|
||||
#ifndef _CNSS_PCI_H
|
||||
#define _CNSS_PCI_H
|
||||
|
||||
#include <linux/cma.h>
|
||||
#include <linux/iommu.h>
|
||||
#include <linux/mhi.h>
|
||||
#if IS_ENABLED(CONFIG_MHI_BUS_MISC)
|
||||
@@ -15,10 +16,16 @@
|
||||
#if IS_ENABLED(CONFIG_PCI_MSM)
|
||||
#include <linux/msm_pcie.h>
|
||||
#endif
|
||||
#include <linux/of_reserved_mem.h>
|
||||
#include <linux/pci.h>
|
||||
|
||||
#include "main.h"
|
||||
|
||||
#define PM_OPTIONS_DEFAULT 0
|
||||
#define PCI_LINK_DOWN 0
|
||||
#define LINK_TRAINING_RETRY_MAX_TIMES 3
|
||||
#define LINK_TRAINING_RETRY_DELAY_MS 500
|
||||
|
||||
enum cnss_mhi_state {
|
||||
CNSS_MHI_INIT,
|
||||
CNSS_MHI_DEINIT,
|
||||
@@ -263,5 +270,6 @@ int cnss_pci_debug_reg_write(struct cnss_pci_data *pci_priv, u32 offset,
|
||||
int cnss_pci_get_iova(struct cnss_pci_data *pci_priv, u64 *addr, u64 *size);
|
||||
int cnss_pci_get_iova_ipa(struct cnss_pci_data *pci_priv, u64 *addr,
|
||||
u64 *size);
|
||||
void cnss_pci_handle_linkdown(struct cnss_pci_data *pci_priv);
|
||||
|
||||
#endif /* _CNSS_PCI_H */
|
||||
|
Reference in New Issue
Block a user