• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2020 HiSilicon (Shanghai) Technologies CO., LIMITED.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  * Description: general purpose register header file.
15  */
16 
17 #ifndef HAL_GP_REG_H
18 #define HAL_GP_REG_H
19 
20 /*****************************************************************************
21   1 其他头文件包含
22 *****************************************************************************/
23 #include "osal_types.h"
24 #ifdef BUILD_UT
25 #include "wifi_ut_stub.h"
26 #endif
27 #ifdef __cplusplus
28 #if __cplusplus
29 extern "C" {
30 #endif
31 #endif
32 /*****************************************************************************
33   2 宏定义
34 *****************************************************************************/
35 #ifndef BUILD_UT
36 #define GLB_CTRL_RB_BASE_ADDR   (0x40000000)
37 #else
38 #define GLB_CTRL_RB_BASE_ADDR   (osal_u32)g_glb_ctrl_rb_addr
39 #endif
40 
41 #define GLB_COMMON_REG0_ADDR    (GLB_CTRL_RB_BASE_ADDR + 0x4)
42 #define GLB_COMMON_REG1_ADDR    (GLB_CTRL_RB_BASE_ADDR + 0x8)
43 #define GLB_COMMON_REG2_ADDR    (GLB_CTRL_RB_BASE_ADDR + 0xC)
44 #define GLB_COMMON_REG3_ADDR    (GLB_CTRL_RB_BASE_ADDR + 0x10)
45 
46 #define GLB_COMMON_REG_NUM      4
47 #define GLB_COMMON_REG_ADDR_MIN (GLB_COMMON_REG0_ADDR)
48 #define GLB_COMMON_REG_ADDR_MAX (GLB_COMMON_REG3_ADDR)
49 
50 /*****************************************************************************
51   3 函数声明
52 *****************************************************************************/
53 osal_void hal_gp_set_btcoex_wifi_status(osal_u32 val);
54 osal_u32 hal_gp_get_btcoex_wifi_status(osal_void);
55 osal_u32 hal_gp_get_btcoex_bt_status(osal_void);
56 #ifdef __cplusplus
57 #if __cplusplus
58 }
59 #endif
60 #endif
61 #endif /* end of hal_gp_reg_rom.h */