?? davincihd_mcasp.h
字號:
/*
* Copyright 2007 by Spectrum Digital Incorporated.
* All rights reserved. Property of Spectrum Digital Incorporated.
*/
/*
* MCASP header file
*
*/
#ifndef MCASP_
#define MCASP_
#ifdef __cplusplus
extern "C" {
#endif
#include "davincihd.h"
/* ------------------------------------------------------------------------ *
* MCASP IDs *
* ------------------------------------------------------------------------ */
#define MCASP_0 ( 0 )
#define MCASP_1 ( 1 )
#define SERIALIZER_0 ( 0 )
#define SERIALIZER_1 ( 1 )
#define SERIALIZER_2 ( 2 )
#define SERIALIZER_3 ( 3 )
/* ------------------------------------------------------------------------ *
* MCASP0 Controller *
* ------------------------------------------------------------------------ */
#define MCASP0_BASE 0x01d01000
#define MCASP0_DATA 0x01d01400
#define MCASP0_DATA_SIZE 0x00000400
#define MCASP0_PID *( volatile Uint32* )( MCASP0_BASE + 0x0 )
#define MCASP0_PWRDEMU *( volatile Uint32* )( MCASP0_BASE + 0x4 )
#define MCASP0_PFUNC *( volatile Uint32* )( MCASP0_BASE + 0x10 )
#define MCASP0_PDIR *( volatile Uint32* )( MCASP0_BASE + 0x14 )
#define MCASP0_PDOUT *( volatile Uint32* )( MCASP0_BASE + 0x18 )
#define MCASP0_PDIN *( volatile Uint32* )( MCASP0_BASE + 0x1c )
#define MCASP0_PDCLR *( volatile Uint32* )( MCASP0_BASE + 0x20 )
#define MCASP0_GBLCTL *( volatile Uint32* )( MCASP0_BASE + 0x44 )
#define MCASP0_AMUTE *( volatile Uint32* )( MCASP0_BASE + 0x48 )
#define MCASP0_DLBCTL *( volatile Uint32* )( MCASP0_BASE + 0x4c )
#define MCASP0_DITCTL *( volatile Uint32* )( MCASP0_BASE + 0x50 )
#define MCASP0_RGBLCTL *( volatile Uint32* )( MCASP0_BASE + 0x60 )
#define MCASP0_RMASK *( volatile Uint32* )( MCASP0_BASE + 0x64 )
#define MCASP0_RFMT *( volatile Uint32* )( MCASP0_BASE + 0x68 )
#define MCASP0_AFSRCTL *( volatile Uint32* )( MCASP0_BASE + 0x6c )
#define MCASP0_ACLKRCTL *( volatile Uint32* )( MCASP0_BASE + 0x70 )
#define MCASP0_AHCLKRCTL *( volatile Uint32* )( MCASP0_BASE + 0x74 )
#define MCASP0_RTDM *( volatile Uint32* )( MCASP0_BASE + 0x78 )
#define MCASP0_RINTCTL *( volatile Uint32* )( MCASP0_BASE + 0x7c )
#define MCASP0_RSTAT *( volatile Uint32* )( MCASP0_BASE + 0x80 )
#define MCASP0_RSLOT *( volatile Uint32* )( MCASP0_BASE + 0x84 )
#define MCASP0_RCLKCHK *( volatile Uint32* )( MCASP0_BASE + 0x88 )
#define MCASP0_XGBLCTL *( volatile Uint32* )( MCASP0_BASE + 0xa0 )
#define MCASP0_XMASK *( volatile Uint32* )( MCASP0_BASE + 0xa4 )
#define MCASP0_XFMT *( volatile Uint32* )( MCASP0_BASE + 0xa8 )
#define MCASP0_AFSXCTL *( volatile Uint32* )( MCASP0_BASE + 0xac )
#define MCASP0_ACLKXCTL *( volatile Uint32* )( MCASP0_BASE + 0xb0 )
#define MCASP0_AHCLKXCTL *( volatile Uint32* )( MCASP0_BASE + 0xb4 )
#define MCASP0_XTDM *( volatile Uint32* )( MCASP0_BASE + 0xb8 )
#define MCASP0_XINTCTL *( volatile Uint32* )( MCASP0_BASE + 0xbc )
#define MCASP0_XSTAT *( volatile Uint32* )( MCASP0_BASE + 0xc0 )
#define MCASP0_XSLOT *( volatile Uint32* )( MCASP0_BASE + 0xc4 )
#define MCASP0_XCLKCHK *( volatile Uint32* )( MCASP0_BASE + 0xc8 )
#define MCASP0_DITCSRA0 *( volatile Uint32* )( MCASP0_BASE + 0x100 )
#define MCASP0_DITCSRA1 *( volatile Uint32* )( MCASP0_BASE + 0x104 )
#define MCASP0_DITCSRA2 *( volatile Uint32* )( MCASP0_BASE + 0x108 )
#define MCASP0_DITCSRA3 *( volatile Uint32* )( MCASP0_BASE + 0x10c )
#define MCASP0_DITCSRA4 *( volatile Uint32* )( MCASP0_BASE + 0x110 )
#define MCASP0_DITCSRA5 *( volatile Uint32* )( MCASP0_BASE + 0x114 )
#define MCASP0_DITCSRB0 *( volatile Uint32* )( MCASP0_BASE + 0x118 )
#define MCASP0_DITCSRB1 *( volatile Uint32* )( MCASP0_BASE + 0x11c )
#define MCASP0_DITCSRB2 *( volatile Uint32* )( MCASP0_BASE + 0x120 )
#define MCASP0_DITCSRB3 *( volatile Uint32* )( MCASP0_BASE + 0x124 )
#define MCASP0_DITCSRB4 *( volatile Uint32* )( MCASP0_BASE + 0x128 )
#define MCASP0_DITCSRB5 *( volatile Uint32* )( MCASP0_BASE + 0x12c )
#define MCASP0_DITUDRA0 *( volatile Uint32* )( MCASP0_BASE + 0x130 )
#define MCASP0_DITUDRA1 *( volatile Uint32* )( MCASP0_BASE + 0x134 )
#define MCASP0_DITUDRA2 *( volatile Uint32* )( MCASP0_BASE + 0x138 )
#define MCASP0_DITUDRA3 *( volatile Uint32* )( MCASP0_BASE + 0x13c )
#define MCASP0_DITUDRA4 *( volatile Uint32* )( MCASP0_BASE + 0x140 )
#define MCASP0_DITUDRA5 *( volatile Uint32* )( MCASP0_BASE + 0x144 )
#define MCASP0_DITUDRB0 *( volatile Uint32* )( MCASP0_BASE + 0x148 )
#define MCASP0_DITUDRB1 *( volatile Uint32* )( MCASP0_BASE + 0x14c )
#define MCASP0_DITUDRB2 *( volatile Uint32* )( MCASP0_BASE + 0x150 )
#define MCASP0_DITUDRB3 *( volatile Uint32* )( MCASP0_BASE + 0x154 )
#define MCASP0_DITUDRB4 *( volatile Uint32* )( MCASP0_BASE + 0x158 )
#define MCASP0_DITUDRB5 *( volatile Uint32* )( MCASP0_BASE + 0x15c )
#define MCASP0_SRCTL0 *( volatile Uint32* )( MCASP0_BASE + 0x180 )
#define MCASP0_SRCTL1 *( volatile Uint32* )( MCASP0_BASE + 0x184 )
#define MCASP0_SRCTL2 *( volatile Uint32* )( MCASP0_BASE + 0x188 )
#define MCASP0_SRCTL3 *( volatile Uint32* )( MCASP0_BASE + 0x18c )
#define MCASP0_XBUF0 *( volatile Uint32* )( MCASP0_BASE + 0x200 )
#define MCASP0_XBUF0_16BIT *( volatile Uint16* )( MCASP0_BASE + 0x200 )
#define MCASP0_XBUF0_32BIT *( volatile Uint32* )( MCASP0_BASE + 0x200 )
#define MCASP0_XBUF1 *( volatile Uint32* )( MCASP0_BASE + 0x204 )
#define MCASP0_XBUF1_16BIT *( volatile Uint16* )( MCASP0_BASE + 0x204 )
#define MCASP0_XBUF1_32BIT *( volatile Uint32* )( MCASP0_BASE + 0x204 )
#define MCASP0_XBUF2 *( volatile Uint32* )( MCASP0_BASE + 0x208 )
#define MCASP0_XBUF2_16BIT *( volatile Uint16* )( MCASP0_BASE + 0x208 )
#define MCASP0_XBUF2_32BIT *( volatile Uint32* )( MCASP0_BASE + 0x208 )
#define MCASP0_XBUF3 *( volatile Uint32* )( MCASP0_BASE + 0x20c )
#define MCASP0_XBUF3_16BIT *( volatile Uint16* )( MCASP0_BASE + 0x20c )
#define MCASP0_XBUF3_32BIT *( volatile Uint32* )( MCASP0_BASE + 0x20c )
#define MCASP0_RBUF0 *( volatile Uint32* )( MCASP0_BASE + 0x280 )
#define MCASP0_RBUF0_16BIT *( volatile Uint16* )( MCASP0_BASE + 0x280 )
#define MCASP0_RBUF0_32BIT *( volatile Uint32* )( MCASP0_BASE + 0x280 )
#define MCASP0_RBUF1 *( volatile Uint32* )( MCASP0_BASE + 0x284 )
#define MCASP0_RBUF1_16BIT *( volatile Uint16* )( MCASP0_BASE + 0x284 )
#define MCASP0_RBUF1_32BIT *( volatile Uint32* )( MCASP0_BASE + 0x284 )
#define MCASP0_RBUF2 *( volatile Uint32* )( MCASP0_BASE + 0x288 )
#define MCASP0_RBUF2_16BIT *( volatile Uint16* )( MCASP0_BASE + 0x288 )
#define MCASP0_RBUF2_32BIT *( volatile Uint32* )( MCASP0_BASE + 0x288 )
#define MCASP0_RBUF3 *( volatile Uint32* )( MCASP0_BASE + 0x28c )
#define MCASP0_RBUF3_16BIT *( volatile Uint16* )( MCASP0_BASE + 0x28c )
#define MCASP0_RBUF3_32BIT *( volatile Uint32* )( MCASP0_BASE + 0x28c )
/* ------------------------------------------------------------------------ *
* MCASP1 Controller *
* ------------------------------------------------------------------------ */
#define MCASP1_BASE 0x01d01800
#define MCASP1_DATA 0x01d01c00
#define MCASP1_DATA_SIZE 0x00000400
#define MCASP1_PID *( volatile Uint32* )( MCASP1_BASE + 0x0 )
#define MCASP1_PWRDEMU *( volatile Uint32* )( MCASP1_BASE + 0x4 )
#define MCASP1_PFUNC *( volatile Uint32* )( MCASP1_BASE + 0x10 )
#define MCASP1_PDIR *( volatile Uint32* )( MCASP1_BASE + 0x14 )
#define MCASP1_PDOUT *( volatile Uint32* )( MCASP1_BASE + 0x18 )
#define MCASP1_PDIN *( volatile Uint32* )( MCASP1_BASE + 0x1c )
#define MCASP1_PDCLR *( volatile Uint32* )( MCASP1_BASE + 0x20 )
#define MCASP1_GBLCTL *( volatile Uint32* )( MCASP1_BASE + 0x44 )
#define MCASP1_DLBCTL *( volatile Uint32* )( MCASP1_BASE + 0x4c )
#define MCASP1_DITCTL *( volatile Uint32* )( MCASP1_BASE + 0x50 )
#define MCASP1_RGBLCTL *( volatile Uint32* )( MCASP1_BASE + 0x60 )
#define MCASP1_RINTCTL *( volatile Uint32* )( MCASP1_BASE + 0x7c )
#define MCASP1_RSTAT *( volatile Uint32* )( MCASP1_BASE + 0x80 )
#define MCASP1_XGBLCTL *( volatile Uint32* )( MCASP1_BASE + 0xa0 )
#define MCASP1_XMASK *( volatile Uint32* )( MCASP1_BASE + 0xa4 )
#define MCASP1_XFMT *( volatile Uint32* )( MCASP1_BASE + 0xa8 )
#define MCASP1_AFSXCTL *( volatile Uint32* )( MCASP1_BASE + 0xac )
#define MCASP1_ACLKXCTL *( volatile Uint32* )( MCASP1_BASE + 0xb0 )
#define MCASP1_AHCLKXCTL *( volatile Uint32* )( MCASP1_BASE + 0xb4 )
#define MCASP1_XTDM *( volatile Uint32* )( MCASP1_BASE + 0xb8 )
#define MCASP1_XINTCTL *( volatile Uint32* )( MCASP1_BASE + 0xbc )
#define MCASP1_XSTAT *( volatile Uint32* )( MCASP1_BASE + 0xc0 )
#define MCASP1_XSLOT *( volatile Uint32* )( MCASP1_BASE + 0xc4 )
#define MCASP1_XCLKCHK *( volatile Uint32* )( MCASP1_BASE + 0xc8 )
#define MCASP1_DITCSRA0 *( volatile Uint32* )( MCASP1_BASE + 0x100 )
#define MCASP1_DITCSRA1 *( volatile Uint32* )( MCASP1_BASE + 0x104 )
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -