qcacmn: Add target bus type field in qdf context

Add target bus type field in qdf context, as bus type
needs to accessed at multiple layer.

Change-Id: I62b23d68743fedf205bb3859c0de50568ca09b7a
CRs-Fixed: 1009993
This commit is contained in:
Govind Singh
2016-04-29 14:22:20 +05:30
committed by Vishwajith Upendra
parent 0b58728a33
commit d9615ed1e0
2 changed files with 15 additions and 14 deletions

View File

@@ -40,20 +40,6 @@
#include <sys/queue.h>
#endif
/**
* enum qdf_bus_type - Supported Bus types
* @QDF_BUS_TYPE_PCI: PCI Bus
* @QDF_BUS_TYPE_AHB: AHB Bus
* @QDF_BUS_TYPE_SNOC: SNOC Bus
* @QDF_BUS_TYPE_SIM: Simulator
*/
enum qdf_bus_type {
QDF_BUS_TYPE_PCI,
QDF_BUS_TYPE_AHB,
QDF_BUS_TYPE_SNOC,
QDF_BUS_TYPE_SIM
};
/*
* Byte Order stuff
*/

View File

@@ -147,6 +147,20 @@ struct __qdf_mempool_ctxt;
#define MAX_MEM_POOLS 64
/**
* enum qdf_bus_type - Supported Bus types
* @QDF_BUS_TYPE_PCI: PCI Bus
* @QDF_BUS_TYPE_AHB: AHB Bus
* @QDF_BUS_TYPE_SNOC: SNOC Bus
* @QDF_BUS_TYPE_SIM: Simulator
*/
enum qdf_bus_type {
QDF_BUS_TYPE_PCI,
QDF_BUS_TYPE_AHB,
QDF_BUS_TYPE_SNOC,
QDF_BUS_TYPE_SIM
};
/**
* struct __qdf_device - generic qdf device type
* @drv: Pointer to driver
@@ -167,6 +181,7 @@ struct __qdf_device {
__qdf_resource_t res;
__qdf_os_intr func;
struct __qdf_mempool_ctxt *mem_pool[MAX_MEM_POOLS];
enum qdf_bus_type bus_type;
};
typedef struct __qdf_device *__qdf_device_t;