lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | /*******************************************************************************
|
| 2 | * Copyright (C) 2007, ZTE Corporation.
|
| 3 | *
|
| 4 | * File Name:
|
| 5 | * File Mark:
|
| 6 | * Description: include all pubilc head file
|
| 7 | * Others:
|
| 8 | * Version: v0.1
|
| 9 | * Author: weizhigang
|
| 10 | * Date: 2009-7-3
|
| 11 | * History 1:
|
| 12 | * Date:
|
| 13 | * Version:
|
| 14 | * Author:
|
| 15 | * Modification:
|
| 16 | * History 2:
|
| 17 | ********************************************************************************/
|
| 18 |
|
| 19 | #ifndef _DRVS_GENERAL_H
|
| 20 | #define _DRVS_GENERAL_H
|
| 21 |
|
| 22 |
|
| 23 | /****************************************************************************
|
| 24 | * Include files
|
| 25 | ****************************************************************************/
|
| 26 | #include "pub.h" /* for basic type */
|
| 27 | #include "oss_api.h" /* for oss function */
|
| 28 | #include "ThreadPriority.h" /* for threadpriority */
|
| 29 |
|
| 30 | #include "pub/drvs_bits.h" /* for bits define */
|
| 31 | #include "pub/drvs_bitops.h" /* for bit operations*/
|
| 32 | #include "pub/drvs_regio.h" /* for register io read/write*/
|
| 33 | #include "pub/drvs_ret.h" /* for driver return value define */
|
| 34 | #include "pub/drvs_assert.h" /* for driver assert function */
|
| 35 | #include "pub/drvs_hisr.h" /* for hisr*/
|
| 36 | #include "pub/drvs_ring.h" /* for ring function */
|
| 37 | #include "pub/drvs_debug.h" /* for ring function */
|
| 38 | #include "pub/drvs_config.h" /* for drv configure */
|
| 39 | #include "pub/drvs_list.h" /* for drv list */
|
| 40 | #include "pub/drvs_ramlog.h" /* for ramlog*/
|
| 41 |
|
| 42 |
|
| 43 | #include "io/drvs_io.h" /* for io function*/
|
| 44 | #include "io/drvs_io_names.h" /* for io device names*/
|
| 45 | #include "io/drvs_io_dev.h" /* for io devices used function*/
|
| 46 | #include "io/drvs_io_keys.h" /* for io control keys*/
|
| 47 | #include "io/drvs_io_sio.h" /* for sio devices*/
|
| 48 |
|
| 49 | #include "misc/drvs_int.h" /* for isr function */
|
| 50 | #include "misc/drvs_gpio.h" /* for ring function */
|
| 51 | /*to be continue...*/
|
| 52 |
|
| 53 | /****************************************************************************
|
| 54 | * code section definition
|
| 55 | ****************************************************************************/
|
| 56 | #ifdef _OS_OSE
|
| 57 | /*macro about TCM
|
| 58 | *it can be used to place code and data to specific section in TCM
|
| 59 | */
|
| 60 | #define PRAGMA(X) _Pragma(#X)
|
| 61 | #define RODATA_BEGIN(X) PRAGMA(arm section rodata=#X)
|
| 62 | #define RWDATA_BEGIN(X) PRAGMA(arm section rwdata=#X)
|
| 63 | #define ZIDATA_BEGIN(X) PRAGMA(arm section zidata=#X)
|
| 64 | #define CODE_BEGIN(X) PRAGMA(arm section code=#X)
|
| 65 |
|
| 66 | #define RODATA_END _Pragma("arm section rodata")
|
| 67 | #define RWDATA_END _Pragma("arm section rwdata")
|
| 68 | #define ZIDATA_END _Pragma("arm section zidata")
|
| 69 | #define CODE_END _Pragma("arm section code")
|
| 70 | #endif
|
| 71 |
|
| 72 |
|
| 73 |
|
| 74 | /****************************************************************************
|
| 75 | * general type
|
| 76 | ****************************************************************************/
|
| 77 | typedef enum _T_ZDrv_CoreId
|
| 78 | {
|
| 79 | CORE_ID_ARM0=0,
|
| 80 | CORE_ID_ARM1=1,
|
| 81 | CORE_ID_ZSP0=2,
|
| 82 | CORE_ID_ZSP1=3,
|
| 83 | CORE_NUM
|
| 84 | } T_ZDrv_CoreId;
|
| 85 |
|
| 86 |
|
| 87 | #endif/*_DRVS_GENERAL_H*/
|
| 88 |
|