From 374e7c25dcb73ddf818a34e2a30aac08194cf6fa Mon Sep 17 00:00:00 2001 From: Rakesh Pillai Date: Sun, 5 Jan 2020 00:59:51 +0530 Subject: [PATCH] qcacmn: Support IPCI bus type in QDF Add newly added IPCI bus type support in QDF. CRs-Fixed: 2597341 Change-Id: I476556e831d41be9ee71f8083a95d8d9da6ceb85 --- qdf/inc/qdf_mem.h | 4 ++-- qdf/linux/src/i_qdf_types.h | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/qdf/inc/qdf_mem.h b/qdf/inc/qdf_mem.h index 63eba7193f8f..c4bfcddf7b14 100644 --- a/qdf/inc/qdf_mem.h +++ b/qdf/inc/qdf_mem.h @@ -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 } diff --git a/qdf/linux/src/i_qdf_types.h b/qdf/linux/src/i_qdf_types.h index cb2a352a325b..b43f6c0ccb42 100644 --- a/qdf/linux/src/i_qdf_types.h +++ b/qdf/linux/src/i_qdf_types.h @@ -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 }; /**