qcacmn: Support to WIN for split of kernel modules

Add EXPORT_SYMBOLS to support modularization in WIN.

Change-Id: I587fe6f2c5cce4b54756358de5c488b146f61850
CRs-Fixed: 2179854
这个提交包含在:
Pratik Gandhi
2018-01-30 18:57:05 +05:30
提交者 snandini
父节点 6c8fdba41b
当前提交 dc82a77896
修改 24 个文件,包含 132 行新增15 行删除

查看文件

@@ -18,6 +18,7 @@
#include "hal_reo.h"
#include "hal_tx.h"
#include "qdf_module.h"
#define BLOCK_RES_MASK 0xF
static inline uint8_t hal_find_one_bit(uint8_t x)
@@ -118,6 +119,7 @@ inline int hal_reo_cmd_queue_stats(void *reo_ring, struct hal_soc *soc,
return HAL_GET_FIELD(UNIFORM_REO_CMD_HEADER_0, REO_CMD_NUMBER,
val);
}
qdf_export_symbol(hal_reo_cmd_queue_stats);
inline int hal_reo_cmd_flush_queue(void *reo_ring, struct hal_soc *soc,
struct hal_reo_cmd_params *cmd)
@@ -161,6 +163,7 @@ inline int hal_reo_cmd_flush_queue(void *reo_ring, struct hal_soc *soc,
return HAL_GET_FIELD(UNIFORM_REO_CMD_HEADER_0, REO_CMD_NUMBER,
val);
}
qdf_export_symbol(hal_reo_cmd_flush_queue);
inline int hal_reo_cmd_flush_cache(void *reo_ring, struct hal_soc *soc,
struct hal_reo_cmd_params *cmd)
@@ -237,6 +240,7 @@ inline int hal_reo_cmd_flush_cache(void *reo_ring, struct hal_soc *soc,
return HAL_GET_FIELD(UNIFORM_REO_CMD_HEADER_0, REO_CMD_NUMBER,
val);
}
qdf_export_symbol(hal_reo_cmd_flush_cache);
inline int hal_reo_cmd_unblock_cache(void *reo_ring, struct hal_soc *soc,
struct hal_reo_cmd_params *cmd)
@@ -290,6 +294,7 @@ inline int hal_reo_cmd_unblock_cache(void *reo_ring, struct hal_soc *soc,
return HAL_GET_FIELD(UNIFORM_REO_CMD_HEADER_0, REO_CMD_NUMBER,
val);
}
qdf_export_symbol(hal_reo_cmd_unblock_cache);
inline int hal_reo_cmd_flush_timeout_list(void *reo_ring, struct hal_soc *soc,
struct hal_reo_cmd_params *cmd)
@@ -332,6 +337,7 @@ inline int hal_reo_cmd_flush_timeout_list(void *reo_ring, struct hal_soc *soc,
return HAL_GET_FIELD(UNIFORM_REO_CMD_HEADER_0, REO_CMD_NUMBER,
val);
}
qdf_export_symbol(hal_reo_cmd_flush_timeout_list);
inline int hal_reo_cmd_update_rx_queue(void *reo_ring, struct hal_soc *soc,
struct hal_reo_cmd_params *cmd)
@@ -531,6 +537,7 @@ inline int hal_reo_cmd_update_rx_queue(void *reo_ring, struct hal_soc *soc,
return HAL_GET_FIELD(UNIFORM_REO_CMD_HEADER_0, REO_CMD_NUMBER,
val);
}
qdf_export_symbol(hal_reo_cmd_update_rx_queue);
inline void hal_reo_queue_stats_status(uint32_t *reo_desc,
struct hal_reo_queue_status *st)
@@ -721,6 +728,7 @@ inline void hal_reo_queue_stats_status(uint32_t *reo_desc,
HAL_GET_FIELD(REO_GET_QUEUE_STATS_STATUS_23,
HOLE_COUNT, val);
}
qdf_export_symbol(hal_reo_queue_stats_status);
inline void hal_reo_flush_queue_status(uint32_t *reo_desc,
struct hal_reo_flush_queue_status *st)
@@ -740,6 +748,7 @@ inline void hal_reo_flush_queue_status(uint32_t *reo_desc,
st->error = HAL_GET_FIELD(REO_FLUSH_QUEUE_STATUS_2, ERROR_DETECTED,
val);
}
qdf_export_symbol(hal_reo_flush_queue_status);
inline void hal_reo_flush_cache_status(uint32_t *reo_desc, struct hal_soc *soc,
struct hal_reo_flush_cache_status *st)
@@ -792,6 +801,7 @@ inline void hal_reo_flush_cache_status(uint32_t *reo_desc, struct hal_soc *soc,
val);
}
qdf_export_symbol(hal_reo_flush_cache_status);
inline void hal_reo_unblock_cache_status(uint32_t *reo_desc,
struct hal_soc *soc,
@@ -824,6 +834,7 @@ inline void hal_reo_unblock_cache_status(uint32_t *reo_desc,
qdf_clear_bit(soc->index,
(unsigned long *)&soc->reo_res_bitmap);
}
qdf_export_symbol(hal_reo_unblock_cache_status);
inline void hal_reo_flush_timeout_list_status(
uint32_t *reo_desc,
@@ -867,6 +878,7 @@ inline void hal_reo_flush_timeout_list_status(
FORWARD_BUF_COUNT,
val);
}
qdf_export_symbol(hal_reo_flush_timeout_list_status);
inline void hal_reo_desc_thres_reached_status(
uint32_t *reo_desc,
@@ -924,6 +936,7 @@ inline void hal_reo_desc_thres_reached_status(
LINK_DESCRIPTOR_COUNTER_SUM,
val);
}
qdf_export_symbol(hal_reo_desc_thres_reached_status);
inline void hal_reo_rx_update_queue_status(uint32_t *reo_desc,
struct hal_reo_update_rx_queue_status *st)
@@ -936,6 +949,7 @@ inline void hal_reo_rx_update_queue_status(uint32_t *reo_desc,
HAL_REO_STATUS_GET_HEADER(reo_desc,
REO_UPDATE_RX_REO_QUEUE, st->header);
}
qdf_export_symbol(hal_reo_rx_update_queue_status);
/**
* hal_reo_init_cmd_ring() - Initialize descriptors of REO command SRNG
@@ -971,3 +985,4 @@ inline void hal_reo_init_cmd_ring(struct hal_soc *soc, void *hal_srng)
soc->reo_res_bitmap = 0;
}
qdf_export_symbol(hal_reo_init_cmd_ring);

查看文件

@@ -17,6 +17,7 @@
*/
#include "hal_api.h"
#include "qdf_module.h"
/* TODO: See if the following definition is available in HW headers */
#define HAL_REO_OWNED 4
@@ -215,6 +216,7 @@ void hal_reo_qdesc_setup(void *hal_soc, int tid, uint32_t ba_window_size,
}
#endif
}
qdf_export_symbol(hal_reo_qdesc_setup);
/**
@@ -307,4 +309,5 @@ void hal_reo_setup(void *hal_soc,
* GLOBAL_LINK_DESC_COUNT_CTRL
*/
}
qdf_export_symbol(hal_reo_setup);

查看文件

@@ -30,6 +30,7 @@
#include "hal_api.h"
#include "target_type.h"
#include "wcss_version.h"
#include "qdf_module.h"
/**
* Common SRNG register access macros:
@@ -782,6 +783,7 @@ fail1:
fail0:
return NULL;
}
qdf_export_symbol(hal_attach);
/**
* hal_mem_info - Retreive hal memory base address
@@ -800,6 +802,7 @@ void hal_get_meminfo(void *hal_soc, struct hal_mem_info *mem )
hif_read_phy_mem_base(hal->hif_handle, (qdf_dma_addr_t *)&mem->dev_base_paddr);
return;
}
qdf_export_symbol(hal_get_meminfo);
/**
* hal_detach - Detach HAL layer
@@ -826,6 +829,7 @@ extern void hal_detach(void *hal_soc)
return;
}
qdf_export_symbol(hal_detach);
/**
* hal_srng_src_hw_init - Private function to initialize SRNG
@@ -1283,6 +1287,7 @@ void *hal_srng_setup(void *hal_soc, int ring_type, int ring_num,
return (void *)srng;
}
qdf_export_symbol(hal_srng_setup);
/**
* hal_srng_cleanup - Deinitialize HW SRNG ring.
@@ -1295,6 +1300,7 @@ void hal_srng_cleanup(void *hal_soc, void *hal_srng)
SRNG_LOCK_DESTROY(&srng->lock);
srng->initialized = 0;
}
qdf_export_symbol(hal_srng_cleanup);
/**
* hal_srng_get_entrysize - Returns size of ring entry in bytes
@@ -1308,6 +1314,7 @@ uint32_t hal_srng_get_entrysize(void *hal_soc, int ring_type)
HAL_SRNG_CONFIG(hal, ring_type);
return ring_config->entry_size << 2;
}
qdf_export_symbol(hal_srng_get_entrysize);
/**
* hal_srng_max_entries - Returns maximum possible number of ring entries
@@ -1321,6 +1328,7 @@ uint32_t hal_srng_max_entries(void *hal_soc, int ring_type)
struct hal_hw_srng_config *ring_config = HAL_SRNG_CONFIG(hal, ring_type);
return SRNG_MAX_SIZE_DWORDS / ring_config->entry_size;
}
qdf_export_symbol(hal_srng_max_entries);
enum hal_srng_dir hal_srng_get_dir(void *hal_soc, int ring_type)
{
@@ -1383,3 +1391,4 @@ extern void hal_get_srng_params(void *hal_soc, void *hal_ring,
for (i = 0 ; i < MAX_SRNG_REG_GROUPS; i++)
ring_params->hwreg_base[i] = srng->hwreg_base[i];
}
qdf_export_symbol(hal_get_srng_params);

查看文件

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2016-2017 The Linux Foundation. All rights reserved.
* Copyright (c) 2016-2018 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
@@ -17,6 +17,7 @@
*/
#include "hal_api.h"
#include "qdf_module.h"
/**
* hal_setup_link_idle_list - Setup scattered idle list using the
@@ -154,4 +155,4 @@ void hal_setup_link_idle_list(void *hal_soc,
SEQ_WCSS_UMAC_WBM_REG_OFFSET),
0x40);
}
qdf_export_symbol(hal_setup_link_idle_list);