comparison src/g23m-gprs/cci/cci.h @ 183:219afcfc6250

src/g23m-gprs: initial import from TCS3.2/LoCosto
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 13 Oct 2016 04:24:13 +0000
parents
children
comparison
equal deleted inserted replaced
182:f02d0a0e1849 183:219afcfc6250
1 /*
2 +-----------------------------------------------------------------------------
3 | Project :
4 | Modul :
5 +-----------------------------------------------------------------------------
6 | Copyright 2002 Texas Instruments Berlin, AG
7 | All rights reserved.
8 |
9 | This file is confidential and a trade secret of Texas
10 | Instruments Berlin, AG
11 | The receipt of or possession of this file does not convey
12 | any rights to reproduce or disclose its contents or to
13 | manufacture, use, or sell anything it may describe, in
14 | whole, or in part, without the specific written consent of
15 | Texas Instruments Berlin, AG.
16 +-----------------------------------------------------------------------------
17 | Purpose : Definitions for entity CCI.
18 +-----------------------------------------------------------------------------
19 */
20
21
22 #ifndef CCI_H
23 #define CCI_H
24
25 #ifndef TI_PS_OP_CIPH_DRIVER
26
27 #if !defined(_GEA_SIMULATION_) && !defined(LL_2to1)
28 #include "config/board.cfg"
29 #endif /* !_GEA_SIMULATION_ && !LL_2to1 */
30
31 /*
32 * GEA-HW related constants
33 */
34 #if (BOARD == 0 || BOARD == 50 || BOARD == 51 || BOARD == 52 || BOARD == 53) /* Dolo1-equipped boards, e.g. F-Sample/Dolo1 */
35 #define START_ADRESS 0xFFFE6800 /* address independent from bit mapping */
36 #else
37
38 #if (BOARD == 61) /* G-Sample */
39 #define START_ADRESS 0xFFFB6800 /* address independent from bit mapping */
40 #else /* D-Sample, also in I-Sample */
41 #define START_ADRESS 0xFFFFC000 /* address independent from bit mapping */
42 #endif
43
44 #endif
45
46 /*
47 * Macros
48 */
49
50 /* CNTL_REG R/W flags */
51 #define RESET_UL 0x0001 /* check bit to get UL reset in progress */
52 #define RESET_DL 0x0002 /* check bit to get DL reset in progress */
53
54 #define NRESET_UL ~(RESET_UL) /* mask to init HW reset in UL direction */
55 #define NRESET_DL ~(RESET_DL) /* mask to init HW reset in DL direction */
56
57 #define START 0x0004 /* set bit to start HW module */
58
59 #define CL_ENABLE 0x0008 /* set bit to enable internal clock */
60 #define CL_DISABLE ~(CL_ENABLE) /* mask to disable internal clock */
61
62 #define UL_DL_DOWN 0x0010 /* set bit to select downlink direction */
63 #define UL_DL_UP ~(UL_DL_DOWN) /* mask to set uplink direktion */
64
65 #define IT_ENABLE 0x0020 /* set bit to enable HW interrupt */
66 #define IT_DISABLE ~(IT_ENABLE) /* mask to disable HW interrupt */
67
68 /* CONF_UL_REG1 and CONF_DL_REG1 R/W flags */
69 #define INPUT_SHIFT 0x0001 /* set bit to set ignore byte one flag */
70 #define NO_INPUT_SHIFT ~(INPUT_SHIFT) /* mask to clear ignore byte one flag */
71
72 #define ENCRYPT 0x0008 /* set bit to enable encryption */
73 #define NO_ENCRYPT ~(ENCRYPT) /* mask to disable encryption */
74
75 #define PROTECTED 0x0010 /* set bit to enable protection mode */
76 #define NON_PROTECTED ~(PROTECTED) /* mask to disable protection mode */
77
78 #define FCS_COMPUTED 0x0020 /* set bit to enable FCS computation */
79 #define FCS_NOT_COMPUTED ~(FCS_COMPUTED) /* mask to disable FCS computation */
80
81 #define D_DL 0x0040 /* set bit to enable HW in DL direction */
82 #define D_UL ~(D_DL) /* mask to enable HW in UL direction */
83
84 #define GEA_SECOND 0x0080 /* set bit to enable Second GEA algorithm */
85 #define GEA_FIRST ~(GEA_SECOND) /* mask to enable First GEA algorithm */
86
87 /* STATUS_REQ read only flags (R/W if _GEA_SIMULATION_ is set) */
88 #define CHECK_WORKING 0x0001 /* check bit to get TRUE if HW is working */
89 #define NOT_WORKING ~(CHECK_WORKING) /* mask to simulate HW is not working */
90
91 #define FCS_FALSE_BIT 0x0002 /* check bit to get TRUE if FSC is bad */
92
93 #endif /* TI_PS_OP_CIPH_DRIVER */
94
95 /*==== TYPES ======================================================*/
96
97
98 /*
99 * CCI is embedded in LLC thus use llc_data instead of cci_data.
100 * the CCI services must then be defined in llc_data, of course.
101 */
102 #define cci_data llc_data
103
104
105
106 /*==== EXPORT =====================================================*/
107
108
109 #endif /* CCI_H */