fw-api: Update QCA8074 hw header files to wcss_v1_r19

Update QCA8074 hardware header files to wcss_v1_r19
Only files which are changed from original version are only
updated.

CRs-Fixed: 2091297
Change-Id: Ib5e26f29c4b0833c0aefa3851ef51d0416f2d336
This commit is contained in:
Chaitanya Kiran Godavarthi 2017-08-11 14:55:37 +05:30 • committed by snandini
commit ae85353f94
12 changed files with 4726 additions and 4032 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2016 The Linux Foundation. All rights reserved.
* Copyright (c) 2016-2017 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
@ -22,10 +22,10 @@
===========================================================================
*/
/**
@file HALhwio.h
@file HALhwio.h
Public interface include file for accessing the HWIO HAL definitions.
The HALhwio.h file is the public API interface to the HW I/O (HWIO)
register access definitions.
*/
@ -46,10 +46,10 @@
** Macros
** ----------------------------------------------------------------------- */
/**
/**
@addtogroup macros
@{
*/
@{
*/
/**
* Map a base name to the pointer to access the base.
@ -61,6 +61,8 @@
#define HWIO_BASE_PTR(base) base##_BASE_PTR
/**
* Declare a HWIO base pointer.
*
@ -79,10 +81,10 @@
*/
/**
/**
@addtogroup hwio_macros
@{
*/
@{
*/
/**
* @name Address Macros
@ -282,7 +284,7 @@
/**
* @name Shadow Register Macros
*
* These macros are used for directly reading the value stored in a
* These macros are used for directly reading the value stored in a
* shadow register.
* Shadow registers are defined for write-only registers. Generally these
* macros should not be necessary as HWIO_OUTM* macros will automatically use
@ -294,7 +296,7 @@
#define HWIO_SHDWI(hwiosym, index) __msmhwio_shdwi(hwiosym, index)
/** @} */
/**
/**
@}
*/ /* end_group */
@ -302,7 +304,7 @@
/** @cond */
/*
* Map to final symbols. This remapping is done to allow register
* Map to final symbols. This remapping is done to allow register
* redefinitions. If we just define HWIO_IN(xreg) as HWIO_##xreg##_IN
* then remappings like "#define xreg xregnew" do not work as expected.
*/
@ -330,7 +332,7 @@
#define __msmhwio_physi(hwiosym, index) HWIO_##hwiosym##_PHYS(index)
#define __msmhwio_physi2(hwiosym, idx1, idx2) HWIO_##hwiosym##_PHYS(idx1, idx2)
#define __msmhwio_physi3(hwiosym, idx1, idx2, idx3) HWIO_##hwiosym##_PHYS(idx1, idx2, idx3)
#define __msmhwio_offs(hwiosym) HWIO_##hwiosym##_OFFS
#define __msmhwio_offs(hwiosym) HWIO_##hwiosym##_OFFS
#define __msmhwio_offsi(hwiosym, index) HWIO_##hwiosym##_OFFS(index)
#define __msmhwio_offsi2(hwiosym, idx1, idx2) HWIO_##hwiosym##_OFFS(idx1, idx2)
#define __msmhwio_offsi3(hwiosym, idx1, idx2, idx3) HWIO_##hwiosym##_OFFS(idx1, idx2, idx3)
@ -364,13 +366,13 @@
HWIO_##hwiosym##_OUTM(base, mask1, val1); \
HWIO_##hwiosym##_OUTM(base, mask2, val2); \
HWIO_##hwiosym##_OUTM(base, mask3, val3); \
}
}
#define __msmhwio_outxm4(base, hwiosym, mask1, mask2, mask3, mask4, val1, val2, val3, val4) { \
HWIO_##hwiosym##_OUTM(base, mask1, val1); \
HWIO_##hwiosym##_OUTM(base, mask2, val2); \
HWIO_##hwiosym##_OUTM(base, mask3, val3); \
HWIO_##hwiosym##_OUTM(base, mask4, val4); \
}
}
#define __msmhwio_outxmi(base, hwiosym, index, mask, val) HWIO_##hwiosym##_OUTMI(base, index, mask, val)
@ -397,16 +399,82 @@
#define HWIO_INTFREE()
#if defined(VISUAL_STUDIO) || defined(TEST_FRAMEWORK)
extern unsigned int registerRead(unsigned int port);
extern void registerWrite(unsigned int port, unsigned int val);
#define __inp(port) registerRead(port)
#define __inpw(port) registerRead(port)
#define __inpdw(port) registerRead(port)
#define __outp(port, val) registerWrite(port, val)
#define __outpw(port, val) registerWrite(port, val)
#define __outpdw(port, val) registerWrite(port, val)
#else
#if defined(CONFIG_SIMHW)
extern unsigned char * simhw_get_mac_addr(void);
extern uint8 __sim_inp(uint32 addr);
extern uint16 __sim_inpw(uint32 addr);
extern uint32 __sim_inpdw(uint32 addr);
extern void __sim_outp(uint32 addr, uint8 data);
extern void __sim_outpw(uint32 addr, uint16 data);
extern void __sim_outpdw(uint32 addr, uint32 data);
#define __inp(port) __sim_inp((unsigned int)port)
#define __inpw(port) __sim_inpw((unsigned int)port)
#define __inpdw(port) __sim_inpdw((unsigned int)port)
#define __outp(port, val) __sim_outp((unsigned int)port, val)
#define __outpw(port, val) __sim_outpw((unsigned int)port, val)
#define __outpdw(port, val) __sim_outpdw((unsigned int)port, val)
#define registerRead(port) __sim_inpdw(port)
#define registerWrite(port, val) __sim_outpdw(port, val)
#else // CONFIG_SIMHW
#ifdef FPGA
#define MAC_ADDRESS_POWER_CHECK
#else
#undef MAC_ADDRESS_POWER_CHECK
#endif
#ifdef MAC_ADDRESS_POWER_CHECK
extern void whal_pwr_debug_register_address_check(uint32 addr, int is_write);
#endif
/*
* Input/output port macros for memory mapped IO.
*/
#define __inp(port) (*((volatile uint8 *) (port)))
#define __inpw(port) (*((volatile uint16 *) (port)))
#define __inpdw(port) (*((volatile uint32 *) (port)))
#define __outp(port, val) (*((volatile uint8 *) (port)) = ((uint8) (val)))
#define __outpw(port, val) (*((volatile uint16 *) (port)) = ((uint16) (val)))
#define __outpdw(port, val) (*((volatile uint32 *) (port)) = ((uint32) (val)))
#define __inp(port) (*((volatile uint8 *) ((uint32)(port))))
#define __inpw(port) (*((volatile uint16 *) ((uint32)(port))))
#ifdef MAC_ADDRESS_POWER_CHECK
static inline uint32 __inpdw(uint32 port){
whal_pwr_debug_register_address_check(port, FALSE);
return (*((volatile uint32 *) (port)));
}
#else
#define __inpdw(port) (*((volatile uint32 *) ((uint32)(port))))
#endif
extern void busywait(uint32 pause_time_us);
#define __outp(port, val) (*((volatile uint8 *) ((uint32)(port))) = ((uint8) (val)))
#define __outpw(port, val) (*((volatile uint16 *) ((uint32)(port))) = ((uint16) (val)))
#ifdef MAC_ADDRESS_POWER_CHECK
static inline void __outpdw(uint32 port ,uint32 val){
whal_pwr_debug_register_address_check(port, TRUE);
(*((volatile uint32 *) (port)) = ((uint32) (val)));
}
#else
static inline void __outpdw(uint32 port ,uint32 val){
(*((volatile uint32 *) (port)) = ((uint32) (val)));
busywait(1);
}
#endif
#define registerRead(port) (*((volatile uint32 *) ((uint32)(port) )))
#define registerWrite(port, val) (*((volatile uint32 *) ((uint32)(port) )) = ((uint32) (val)))
#endif // CONFIG_SIMHW
#endif
#ifdef HAL_HWIO_EXTERNAL
@ -420,7 +488,7 @@
#undef __outpw
#undef __outpdw
#define __inp(port) __inp_extern(port)
#define __inp(port) __inp_extern(port)
#define __inpw(port) __inpw_extern(port)
#define __inpdw(port) __inpdw_extern(port)
#define __outp(port, val) __outp_extern(port, val)
@ -441,7 +509,7 @@ extern void __outpdw_extern ( uint32 nAddr, uint32 nData );
* Base 8-bit byte accessing macros.
*/
#define in_byte(addr) (__inp(addr))
#define in_byte_masked(addr, mask) (__inp(addr) & (mask))
#define in_byte_masked(addr, mask) (__inp(addr) & (mask))
#define out_byte(addr, val) __outp(addr,val)
#define out_byte_masked(io, mask, val, shadow) \
HWIO_INTLOCK(); \
@ -472,9 +540,15 @@ extern void __outpdw_extern ( uint32 nAddr, uint32 nData );
/*
* Base 32-bit double-word accessing macros.
*/
#ifdef MAC_ADDRESS_POWER_CHECK
#define in_dword(addr) (__inpdw((uint32)addr))
#define in_dword_masked(addr, mask) (__inpdw((uint32)addr) & (mask))
#define out_dword(addr, val) __outpdw((uint32)addr,val)
#else
#define in_dword(addr) (__inpdw(addr))
#define in_dword_masked(addr, mask) (__inpdw(addr) & (mask))
#define out_dword(addr, val) __outpdw(addr,val)
#define out_dword(addr, val) __outpdw((uint32)addr,val)
#endif
#define out_dword_masked(io, mask, val, shadow) \
HWIO_INTLOCK(); \
shadow = (shadow & (uint32)(~(mask))) | ((uint32)((val) & (mask))); \
@ -484,6 +558,9 @@ extern void __outpdw_extern ( uint32 nAddr, uint32 nData );
out_dword( io, ((current_reg_content & (uint32)(~(mask))) | \
((uint32)((val) & (mask)))) )
#define out_dword_masked_ns_shift(io, mask, val, current_reg_content, shift) \
out_dword( io, ((current_reg_content & (uint32)(~(mask))) | \
(((uint32)((val) & (mask))) << shift )) )
/** @endcond */
#endif /* HAL_HWIO_H */

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2016 The Linux Foundation. All rights reserved.
* Copyright (c) 2016-2017 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
@ -21,28 +21,28 @@
/**
@file com_dtypes.h
@brief This header file contains general data types that are of use to all
modules.
@brief This header file contains general data types that are of use to all
modules.
*/
/*===========================================================================
NOTE: The @brief description and any detailed descriptions above do not appear
in the PDF.
NOTE: The @brief description and any detailed descriptions above do not appear
in the PDF.
The Utility_Services_API_mainpage.dox file contains all file/group
descriptions that are in the output PDF generated using Doxygen and
Latex. To edit or update any of the file/group text in the PDF, edit
The Utility_Services_API_mainpage.dox file contains all file/group
descriptions that are in the output PDF generated using Doxygen and
Latex. To edit or update any of the file/group text in the PDF, edit
the Utility_Services_API_mainpage.dox file or contact Tech Pubs.
The above description for this file is part of the "utils_services"
group description in the Utility_Services_API_mainpage.dox file.
The above description for this file is part of the "utils_services"
group description in the Utility_Services_API_mainpage.dox file.
===========================================================================*/
/*===========================================================================
S T A N D A R D D E C L A R A T I O N S
DESCRIPTION
This header file contains general data types that are of use to all modules.
This header file contains general data types that are of use to all modules.
The values or definitions are dependent on the specified
target. T_WINNT specifies Windows NT based targets, otherwise the
default is for ARM targets.
@ -61,7 +61,7 @@ DESCRIPTION
This section contains comments describing changes made to this file.
Notice that changes are listed in reverse chronological order.
$Header: /prj/iceng/SCALe/repository/cvs/scale/source/data/com_dtypes.h,v 1.1.1.1 2012/09/19 22:33:30 rjindal Exp $
$Header: //depot/prj/qca/lithium/ip/wmac/wmac_recipes/xml/autoseq/com_dtypes.h#2 $
when who what, where, why
-------- --- ----------------------------------------------------------
@ -91,7 +91,7 @@ extern "C" {
#endif
#include <stdlib.h>
#endif
#include <stdint.h>
/* ------------------------------------------------------------------------
** Constants
** ------------------------------------------------------------------------ */
@ -116,7 +116,7 @@ extern "C" {
#define OFF 0 /**< OFF value. */
#ifndef NULL
#define NULL 0 /**< NULL value. */
#define NULL 0 /**< NULL value. */
#endif
/** @} */ /* end_name_group Macros for Common Data Types */
@ -134,15 +134,15 @@ extern "C" {
/** @addtogroup utils_services
@{ */
/** Boolean value type.
/** Boolean value type.
*/
typedef unsigned char boolean;
typedef unsigned char boolean;
#define _BOOLEAN_DEFINED
#endif
/** @cond
/** @cond
*/
#if defined(DALSTDDEF_H) /* guards against a known re-definer */
//#if defined(DALSTDDEF_H) /* guards against a known re-definer */
#define _BOOLEAN_DEFINED
#define _UINT32_DEFINED
#define _UINT16_DEFINED
@ -153,48 +153,48 @@ typedef unsigned char boolean;
#define _UINT64_DEFINED
#define _INT64_DEFINED
#define _BYTE_DEFINED
#endif /* #if !defined(DALSTDDEF_H) */
//#endif /* #if !defined(DALSTDDEF_H) */
/** @endcond */
#ifndef _UINT32_DEFINED
/** Unsigned 32-bit value.
*/
typedef unsigned long int uint32;
typedef unsigned int uint32_t;
#define _UINT32_DEFINED
#endif
#ifndef _UINT16_DEFINED
/** Unsigned 16-bit value.
*/
typedef unsigned short uint16;
typedef unsigned short uint16_t;
#define _UINT16_DEFINED
#endif
#ifndef _UINT8_DEFINED
/** Unsigned 8-bit value.
/** Unsigned 8-bit value.
*/
typedef unsigned char uint8;
typedef unsigned char uint8_t;
#define _UINT8_DEFINED
#endif
#ifndef _INT32_DEFINED
/** Signed 32-bit value.
*/
typedef signed long int int32;
typedef signed int int32_t;
#define _INT32_DEFINED
#endif
#ifndef _INT16_DEFINED
/** Signed 16-bit value.
*/
typedef signed short int16;
typedef signed short int16_t;
#define _INT16_DEFINED
#endif
#ifndef _INT8_DEFINED
/** Signed 8-bit value.
*/
typedef signed char int8;
typedef signed char int8_t;
#define _INT8_DEFINED
#endif
@ -206,7 +206,7 @@ typedef signed char int8;
#ifndef _BYTE_DEFINED
/** DEPRECATED: Unsigned 8 bit value type.
*/
typedef unsigned char byte;
typedef unsigned char byte;
#define _BYTE_DEFINED
#endif
@ -215,7 +215,7 @@ typedef unsigned char byte;
typedef unsigned short word;
/** DEPRECATED: Unsigned 32 bit value type.
*/
typedef unsigned long dword;
typedef unsigned int dword;
/** DEPRECATED: Unsigned 8 bit value type.
*/
@ -225,35 +225,35 @@ typedef unsigned char uint1;
typedef unsigned short uint2;
/** DEPRECATED: Unsigned 32 bit value type.
*/
typedef unsigned long uint4;
typedef unsigned int uint4;
/** DEPRECATED: Signed 8 bit value type.
/** DEPRECATED: Signed 8 bit value type.
*/
typedef signed char int1;
/** DEPRECATED: Signed 16 bit value type.
*/
*/
typedef signed short int2;
/** DEPRECATED: Signed 32 bit value type.
*/
typedef long int int4;
/** DEPRECATED: Signed 32 bit value type.
*/
typedef long int int4;
/** DEPRECATED: Signed 32 bit value.
*/
typedef signed long sint31;
/** DEPRECATED: Signed 16 bit value.
*/
/** DEPRECATED: Signed 16 bit value.
*/
typedef signed short sint15;
/** DEPRECATED: Signed 8 bit value.
*/
typedef signed char sint7;
*/
typedef signed char sint7;
typedef uint16 UWord16 ;
typedef uint32 UWord32 ;
typedef int32 Word32 ;
typedef int16 Word16 ;
typedef uint8 UWord8 ;
typedef int8 Word8 ;
typedef int32 Vect32 ;
typedef uint16_t UWord16 ;
typedef uint32_t UWord32 ;
typedef int32_t Word32 ;
typedef int16_t Word16 ;
typedef uint8_t UWord8 ;
typedef int8_t Word8 ;
typedef int32_t Vect32 ;
/** @endcond */
#if (! defined T_WINNT) && (! defined __GNUC__)
@ -261,18 +261,18 @@ typedef int32 Vect32 ;
#ifndef _INT64_DEFINED
/** Signed 64-bit value.
*/
typedef long long int64;
typedef long long int64;
#define _INT64_DEFINED
#endif
#ifndef _UINT64_DEFINED
/** Unsigned 64-bit value.
*/
typedef unsigned long long uint64;
typedef unsigned long long uint64;
#define _UINT64_DEFINED
#endif
#else /* T_WINNT || TARGET_OS_SOLARIS || __GNUC__ */
/* WINNT or SOLARIS based targets */
#if (defined __GNUC__)
#if (defined __GNUC__)
#ifndef _INT64_DEFINED
typedef long long int64;
#define _INT64_DEFINED

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2016 The Linux Foundation. All rights reserved.
* Copyright (c) 2016-2017 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
@ -22,7 +22,7 @@
* - This is an extension of standard msmhwio.h to support relative addressing
* scheme used in SCALe auto-generated sequences.
* - The objective of this new addressing scheme is enable the same C function
* definition to be applicable to multiple baseances of the same block.
* definition to be applicable to multiple baseances of the same block.
* - Such code reuse is not feasible with the standard HWIO macros that use a
* absolute addressing scheme.
* - Compared to the standard HWIO macros, the new macros defined here take an
@ -93,11 +93,11 @@ typedef enum {
NS
} SEQ_TimeUnit;
extern void seq_wait(uint32 time_value, SEQ_TimeUnit time_unit);
void seq_wait(uint32 time_value, SEQ_TimeUnit time_unit);
/************ seq_poll() ************/
extern uint32 seq_poll(uint32 reg_offset, uint32 expect_value, uint32 value_mask, uint32 value_shift, uint32 max_poll_cnt);
uint32 seq_poll(uint32 reg_offset, uint32 expect_value, uint32 value_mask, uint32 value_shift, uint32 max_poll_cnt);
#endif /* __SEQ_H__ */

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2016 The Linux Foundation. All rights reserved.
* Copyright (c) 2016-2017 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
@ -16,7 +16,6 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
//
// DO NOT EDIT! This file is automatically generated
// These definitions are tied to a particular hardware layout
@ -28,7 +27,9 @@
#include "addr_search_entry.h"
#include "buffer_addr_info.h"
#include "cce_rule.h"
#include "ce_dst_desc.h"
#include "ce_src_desc.h"
#include "ce_stat_desc.h"
#include "he_sig_a_mu_dl_info.h"
#include "he_sig_a_mu_ul_info.h"
#include "he_sig_a_su_info.h"
@ -125,7 +126,6 @@
#include "who_classify_info.h"
#include "macrx_abort_request_info.h"
#include "phytx_abort_request_info.h"
#include "ce_stat_desc.h"
#include "coex_mac_nap.h"
#include "coex_rx_status.h"
#include "coex_status_broadcast.h"
@ -139,6 +139,7 @@
#include "mactx_bf_params_common.h"
#include "mactx_coex_phy_ctrl.h"
#include "mactx_delete_cv.h"
#include "mactx_expect_cbf_common.h"
#include "mactx_he_sig_a_mu_dl.h"
#include "mactx_he_sig_a_mu_ul.h"
#include "mactx_he_sig_a_su.h"
@ -275,7 +276,6 @@
#include "who_terminate.h"
#include "data_to_time_config.h"
#include "mactx_bf_params_per_user.h"
#include "mactx_expect_cbf_common.h"
#include "mactx_expect_cbf_per_user.h"
#include "mactx_mu_uplink_user_setup.h"
#include "mactx_service.h"
@ -312,7 +312,6 @@
#include "tqm_acked_mpdu.h"
#include "tqm_update_tx_mpdu_count.h"
#include "tx_11ah_setup.h"
#include "tx_cv_start.h"
#include "tx_fes_status_ack_or_ba.h"
#include "tx_fes_status_user_ppdu.h"
#include "tx_fes_status_user_response.h"

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2016 The Linux Foundation. All rights reserved.
* Copyright (c) 2016-2017 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
@ -178,7 +178,7 @@ typedef enum {
WIFIMPDU_INFO_E = 150 /* 0x96 */,
WIFIPDG_USER_SETUP_E = 151 /* 0x97 */,
WIFITX_11AH_SETUP_E = 152 /* 0x98 */,
WIFITX_CV_START_E = 153 /* 0x99 */,
WIFIREO_UPDATE_RX_REO_QUEUE_STATUS_E = 153 /* 0x99 */,
WIFITX_PEER_ENTRY_E = 154 /* 0x9a */,
WIFITX_RAW_OR_NATIVE_FRAME_SETUP_E = 155 /* 0x9b */,
WIFIEXAMPLE_STRUCT_NAME_E = 156 /* 0x9c */,
@ -445,7 +445,7 @@ typedef enum {
WIFITQM_UPDATE_TX_MSDU_FLOW_STATUS_E = 417 /* 0x1a1 */,
WIFITQM_UPDATE_TX_MPDU_QUEUE_HEAD_STATUS_E = 418 /* 0x1a2 */,
WIFIREO_UPDATE_RX_REO_QUEUE_E = 419 /* 0x1a3 */,
WIFIREO_UPDATE_RX_REO_QUEUE_STATUS_E = 420 /* 0x1a4 */,
WIFICE_DST_DESC_E = 420 /* 0x1a4 */,
WIFITLV_BASE_E = 511 /* 0x1ff */
} tlv_tag_def__e; ///< tlv_tag_def Enum Type

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff