From 8a204d2dcba5bf68e64a9bfdf8ac44ac60efacf1 Mon Sep 17 00:00:00 2001 From: Manoj Ekbote Date: Fri, 14 Apr 2017 11:04:00 -0700 Subject: [PATCH] qcacmn: Add a qdf type for net device Create a type for struct net device so that lower layers in WIN can have access to the device handle. Change-Id: I5f5469ea3fc65c64c4382c2dfbcf455bd96294a8 --- qdf/inc/qdf_types.h | 5 +++++ qdf/linux/src/i_qdf_types.h | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/qdf/inc/qdf_types.h b/qdf/inc/qdf_types.h index ca1ee495cbf5..10304506de33 100644 --- a/qdf/inc/qdf_types.h +++ b/qdf/inc/qdf_types.h @@ -143,6 +143,11 @@ typedef __qdf_dma_size_t qdf_dma_size_t; */ typedef __qdf_dma_context_t qdf_dma_context_t; +/** + * pointer to net device + */ +typedef __qdf_netdev_t qdf_netdev_t; + /** * struct qdf_dma_map_info - Information inside a DMA map. * @nsegs: total number mapped segments diff --git a/qdf/linux/src/i_qdf_types.h b/qdf/linux/src/i_qdf_types.h index f915d0a9bcf2..b7bcc77c490b 100644 --- a/qdf/linux/src/i_qdf_types.h +++ b/qdf/linux/src/i_qdf_types.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014-2016 The Linux Foundation. All rights reserved. + * Copyright (c) 2014-2017 The Linux Foundation. All rights reserved. * * Previously licensed under the ISC license by Qualcomm Atheros, Inc. * @@ -127,6 +127,7 @@ typedef int (*__qdf_os_intr)(void *); typedef dma_addr_t __qdf_dma_addr_t; typedef size_t __qdf_dma_size_t; typedef dma_addr_t __qdf_dma_context_t; +typedef struct net_device *__qdf_netdev_t; #define qdf_dma_mem_context(context) dma_addr_t context #define qdf_get_dma_mem_context(var, field) ((qdf_dma_context_t)(var->field))