mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
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:
parent
99f07621b4
commit
8a204d2dcb
2 changed files with 7 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in a new issue