qcacmn: Replace Linux Fix-Width data-type with C-99 stdints

Datapath supposed to be HLOS-agnostic, but there is some use of
Linux fixed-width types u8, u16, and u32. These should be replaced with
C99 fixed-width types uint8_t, uint16_t, and uint32_t so that they will
correctly be HLOS-agnostic and work on non-Linux targets.

CRs-Fixed: 2326406
Change-Id: I8f9099a0170e4f94a54cdd6cc6c2e321a29af717
This commit is contained in:
Krunal Soni
2018-10-03 11:20:20 -07:00
committed by nshrivas
szülő 83fb60c843
commit be43d55622
5 fájl változott, egészen pontosan 13 új sor hozzáadva és 12 régi sor törölve

Fájl megtekintése

@@ -54,7 +54,7 @@ cdp_hl_fc_register(ol_txrx_soc_handle soc, tx_pause_callback flowcontrol)
}
static inline int cdp_hl_fc_set_td_limit(ol_txrx_soc_handle soc,
u8 vdev_id, u8 chan)
uint8_t vdev_id, uint8_t chan)
{
if (!soc->ops->l_flowctl_ops->set_vdev_tx_desc_limit)
return 0;
@@ -63,7 +63,7 @@ static inline int cdp_hl_fc_set_td_limit(ol_txrx_soc_handle soc,
}
static inline int cdp_hl_fc_set_os_queue_status(ol_txrx_soc_handle soc,
u8 vdev_id,
uint8_t vdev_id,
enum netif_action_type action)
{
if (!soc->ops->l_flowctl_ops->set_vdev_os_queue_status)
@@ -80,13 +80,13 @@ cdp_hl_fc_register(ol_txrx_soc_handle soc, tx_pause_callback flowcontrol)
}
static inline int cdp_hl_fc_set_td_limit(ol_txrx_soc_handle soc,
u8 vdev_id, u8 chan)
uint8_t vdev_id, uint8_t chan)
{
return 0;
}
static inline int cdp_hl_fc_set_os_queue_status(ol_txrx_soc_handle soc,
u8 vdev_id,
uint8_t vdev_id,
enum netif_action_type action)
{
return 0;

Fájl megtekintése

@@ -985,8 +985,8 @@ struct cdp_lflowctl_ops {
#ifdef QCA_HL_NETDEV_FLOW_CONTROL
int (*register_tx_flow_control)(struct cdp_soc_t *soc,
tx_pause_callback flowcontrol);
int (*set_vdev_tx_desc_limit)(u8 vdev_id, u8 chan);
int (*set_vdev_os_queue_status)(u8 vdev_id,
int (*set_vdev_tx_desc_limit)(uint8_t vdev_id, uint8_t chan);
int (*set_vdev_os_queue_status)(uint8_t vdev_id,
enum netif_action_type action);
#else
int (*register_tx_flow_control)(uint8_t vdev_id,
@@ -1116,7 +1116,7 @@ struct cdp_peer_ops {
enum ol_txrx_peer_state sta_state,
bool roam_synch_in_progress);
void * (*peer_get_ref_by_addr)(struct cdp_pdev *pdev,
u8 *peer_addr, uint8_t *peer_id,
uint8_t *peer_addr, uint8_t *peer_id,
enum peer_debug_id_type debug_id);
void (*peer_release_ref)(void *peer, enum peer_debug_id_type debug_id);
void * (*find_peer_by_addr)(struct cdp_pdev *pdev,

Fájl megtekintése

@@ -180,7 +180,7 @@ cdp_peer_remove_for_vdev_no_lock(ol_txrx_soc_handle soc,
*/
static inline void
*cdp_peer_get_ref_by_addr(ol_txrx_soc_handle soc, struct cdp_pdev *pdev,
u8 *peer_addr, u8 *peer_id,
uint8_t *peer_addr, uint8_t *peer_id,
enum peer_debug_id_type debug_id)
{
if (!soc || !soc->ops || !soc->ops->peer_ops) {

Fájl megtekintése

@@ -162,8 +162,8 @@ static int dp_tx_ipa_uc_attach(struct dp_soc *soc, struct dp_pdev *pdev)
QDF_DMA_BIDIRECTIONAL);
buffer_paddr = qdf_nbuf_get_frag_paddr(nbuf, 0);
paddr_lo = ((u64)buffer_paddr & 0x00000000ffffffff);
paddr_hi = ((u64)buffer_paddr & 0x0000001f00000000) >> 32;
paddr_lo = ((uint64_t)buffer_paddr & 0x00000000ffffffff);
paddr_hi = ((uint64_t)buffer_paddr & 0x0000001f00000000) >> 32;
HAL_RXDMA_PADDR_LO_SET(ring_entry, paddr_lo);
HAL_RXDMA_PADDR_HI_SET(ring_entry, paddr_hi);
HAL_RXDMA_MANAGER_SET(ring_entry, (IPA_TCL_DATA_RING_IDX +

Fájl megtekintése

@@ -7936,8 +7936,9 @@ static struct cdp_cfg_ops dp_ops_cfg = {
* Return: peer instance pointer
*/
static inline void *
dp_peer_get_ref_find_by_addr(struct cdp_pdev *dev, u8 *peer_mac_addr,
u8 *local_id, enum peer_debug_id_type debug_id)
dp_peer_get_ref_find_by_addr(struct cdp_pdev *dev, uint8_t *peer_mac_addr,
uint8_t *local_id,
enum peer_debug_id_type debug_id)
{
struct dp_pdev *pdev = (struct dp_pdev *)dev;
struct dp_peer *peer;