1 /******************************************************************************
2 ** File Name: busmonitor_reg_v0.h *
5 ** Copyright: 2010 Spreatrum, Incoporated. All Rights Reserved. *
6 ** Description: This file define the basic hw interfaces of I2C device. *
7 ******************************************************************************
9 ******************************************************************************
11 ** ------------------------------------------------------------------------- *
12 ** DATE NAME DESCRIPTION *
13 ** 07/29/2010 liuhao Create. *
14 ******************************************************************************/
15 #ifndef _BUSMONITOR_REG_V3_H_
16 #define _BUSMONITOR_REG_V3_H_
17 /*----------------------------------------------------------------------------*
19 **------------------------------------------------------------------------- */
21 /**---------------------------------------------------------------------------*
23 **--------------------------------------------------------------------------*/
29 /**---------------------------------------------------------------------------*
31 **---------------------------------------------------------------------------*/
32 #define BM_ACCESS_BURST_Single 0
33 #define BM_ACCESS_BURST_INCR 1
34 #define BM_ACCESS_BURST_WRAP4 2
35 #define BM_ACCESS_BURST_INCR4 3
36 #define BM_ACCESS_BURST_WRAP8 4
37 #define BM_ACCESS_BURST_INCR8 5
38 #define BM_ACCESS_BURST_WRAP16 6
39 #define BM_ACCESS_BURST_INCR16 7
41 #define BM_CHANEL_ARM_DATA 0
42 #define BM_CHANEL_ARM_INSTRUCTION 1
43 #define BM_CHANEL_LCDC 0
44 #define BM_CHANEL_DCAM 1
45 #define BM_CHANEL_SD_DMA_INTERNAL 0
46 #define BM_CHANEL_SD_DMA_EXTERNAL 1
48 #define CHN_INT(x) (BUS_MONx_CTL_BASE + x*0x1000 + 0x0000)
49 #define CHN_CFG(x) (BUS_MONx_CTL_BASE + x*0x1000 + 0x0004)
50 #define ADDR_MIN(x) (BUS_MONx_CTL_BASE + x*0x1000 + 0x0008)
51 #define ADDR_MAX(x) (BUS_MONx_CTL_BASE + x*0x1000 + 0x000c)
52 #define DATA_MIN(x) (BUS_MONx_CTL_BASE + x*0x1000 + 0x0010)
53 #define DATA_MAX(x) (BUS_MONx_CTL_BASE + x*0x1000 + 0x0014)
54 #define DATA_MASK(x) (BUS_MONx_CTL_BASE + x*0x1000 + 0x0018)
55 #define MATCH_ADDR(x) (BUS_MONx_CTL_BASE + x*0x1000 + 0x001c)
56 #define MATCH_DATA(x) (BUS_MONx_CTL_BASE + x*0x1000 + 0x0020)
57 #define BUSMON_CNT(x) (BUS_MONx_CTL_BASE + x*0x1000 + 0x0024)
59 typedef struct _BM_POINT_REG
61 volatile unsigned long bm_int;
62 volatile unsigned long bm_cfg;
63 volatile unsigned long bm_addr_min;
64 volatile unsigned long bm_addr_max;
65 volatile unsigned long bm_data_min;
66 volatile unsigned long bm_data_max;
67 volatile unsigned long bm_data_mask;
68 volatile unsigned long bm_addr_match;
69 volatile unsigned long bm_data_match;
70 volatile unsigned long bm_cnt;
73 /**----------------------------------------------------------------------------*
75 **----------------------------------------------------------------------------*/
79 /**---------------------------------------------------------------------------*/