• 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  */
15 
16 #ifndef __HI3861_PLATFORM_H
17 #define __HI3861_PLATFORM_H
18 
19 #include <hi_types.h>
20 #include <hi3861_platform_base.h>
21 
22 #ifdef HI_BOARD_FPGA
23 #define PKT_H_START_ADDR    (0x03100000 + 0x4000) /* 16K use for MAC data collect */
24 #define PKT_H_LEN           0x2000 /* PKT_H:8K MIN:7K */
25 #define PKT_B_START_ADDR    (0x03100000 + 0x2000 + 0x4000)
26 #define PKT_B_LEN           0x8000 /* PKT_B:32K MIN:32K */
27 
28 #else
29 
30 #define PKT_H_START_ADDR    0x02400000
31 #define PKT_H_LEN           0x2000 /* PKT_H:8K MIN:7K */
32 #define PKT_B_START_ADDR    (0x03100000)
33 #ifdef CONFIG_CHIP_PKT_48K
34 #define PKT_B_LEN           0xC000 /* PKT_B:48K */
35 #else
36 #define PKT_B_LEN           0x8000 /* PKT_B:32K */
37 #endif
38 
39 #endif
40 
41 #define HI_CHIP_ID_1131SV200    0xFF
42 #define HI_CHIP_VER_HI3861L     0x0
43 #define HI_CHIP_VER_HI3861      0x1
44 #define HI_CHIP_VER_HI3881      0x2
45 
46 hi_void app_io_init(hi_void);
47 hi_void app_main(hi_void);
48 
49 #endif /* __HI3861_PLATFORM_H */
50 
51