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
This commit is contained in:
Manoj Ekbote 2017-04-14 11:04:00 -07:00 • committed by Sandeep Puligilla
commit 8a204d2dcb
2 changed files with 7 additions and 1 deletions

View file

@ -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

View file

@ -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))