qcacmn: Support IPCI bus type in QDF
Add newly added IPCI bus type support in QDF. CRs-Fixed: 2597341 Change-Id: I476556e831d41be9ee71f8083a95d8d9da6ceb85
This commit is contained in:
@@ -453,7 +453,7 @@ static inline uint32_t qdf_mem_map_nbytes_single(qdf_device_t osdev, void *buf,
|
||||
qdf_dma_dir_t dir, int nbytes,
|
||||
qdf_dma_addr_t *phy_addr)
|
||||
{
|
||||
#if defined(HIF_PCI)
|
||||
#if defined(HIF_PCI) || defined(HIF_IPCI)
|
||||
return __qdf_mem_map_nbytes_single(osdev, buf, dir, nbytes, phy_addr);
|
||||
#else
|
||||
return 0;
|
||||
@@ -482,7 +482,7 @@ static inline void qdf_mem_unmap_nbytes_single(qdf_device_t osdev,
|
||||
qdf_dma_dir_t dir,
|
||||
int nbytes)
|
||||
{
|
||||
#if defined(HIF_PCI)
|
||||
#if defined(HIF_PCI) || defined(HIF_IPCI)
|
||||
__qdf_mem_unmap_nbytes_single(osdev, phy_addr, dir, nbytes);
|
||||
#endif
|
||||
}
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2014-2019 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2014-2020 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
@@ -224,6 +224,7 @@ struct __qdf_mempool_ctxt;
|
||||
* @QDF_BUS_TYPE_SNOC: SNOC Bus
|
||||
* @QDF_BUS_TYPE_SIM: Simulator
|
||||
* @QDF_BUS_TYPE_USB: USB Bus
|
||||
* @QDF_BUS_TYPE_IPCI: IPCI Bus
|
||||
*/
|
||||
enum qdf_bus_type {
|
||||
QDF_BUS_TYPE_NONE = -1,
|
||||
@@ -232,7 +233,8 @@ enum qdf_bus_type {
|
||||
QDF_BUS_TYPE_SNOC,
|
||||
QDF_BUS_TYPE_SIM,
|
||||
QDF_BUS_TYPE_SDIO,
|
||||
QDF_BUS_TYPE_USB
|
||||
QDF_BUS_TYPE_USB,
|
||||
QDF_BUS_TYPE_IPCI
|
||||
};
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user