?? zl5011xadmmap.h
字號:
/*******************************************************************************
*
* File name: zl5011xAdmMap.h
*
* Version: 17
*
* Author: LCW
*
* Date created: 27/3/2002
*
* Copyright 2002, 2003, 2004, 2005, Zarlink Semiconductor Limited.
* All rights reserved.
*
* Module Description:
* This is the map header file for the ADM block.
*
* Revision History:
*
* Rev: Date: Author: Comments:
* 1 27/03/2002 LCW Created.
* 2 28/03/2002 LCW Minor mods.
* 3 03/04/2002 LCW Minor mods.
* 4 03/04/2002 LCW Minor mods.
* 5 16/04/2002 MRC Minor mods.
* 6 27/03/2002 LCW Minor mods.
* 7 17/04/2002 LCW Code review actions.
* 8 18/04/2002 LCW Code review actions.
* 9 18/04/2002 LCW Changed interrupt & enable constants and
* registers.
* 10 23/04/2002 LCW Code review actions.
* 11 26/04/2002 LCW Minor mods.
* 12 18/04/2002 LCW Code review actions.
* 13 02/10/2002 PJE unwanted define
* 14 30/10/2002 MRC Defined bit positions for the device ID register
* 15 31/10/2002 MRC Added variants + minor fixes
* 16 14/02/2005 MRC Updated compiler directive
* 17 11/04/2005 APL Added initialisation interrupt definitions
*
*******************************************************************************/
#ifndef _ZL5011X_ADM_MAP_H_
#define _ZL5011X_ADM_MAP_H_
#ifdef __cplusplus
extern "C" {
#endif
/***************** INCLUDE FILES ******************************************/
/***************** # DEFINES **********************************************/
/* Register address offsets */
#define ZL5011X_ADM_MOD_RESET ZL5011X_ADM_BASE + 0x00
#define ZL5011X_ADM_MOD_FREEZE ZL5011X_ADM_BASE + 0x04
#define ZL5011X_ADM_MOD_MONITOR ZL5011X_ADM_BASE + 0x08
#define ZL5011X_ADM_MOD_INIT_START ZL5011X_ADM_BASE + 0x0C
#define ZL5011X_ADM_MOD_RUN ZL5011X_ADM_BASE + 0x10
#define ZL5011X_ADM_MOD_GPIO_EN ZL5011X_ADM_BASE + 0x14
#define ZL5011X_ADM_MOD_OP_REG ZL5011X_ADM_BASE + 0x18
#define ZL5011X_ADM_MOD_GPIO_IN ZL5011X_ADM_BASE + 0x1C
#define ZL5011X_ADM_MOD_IE0 ZL5011X_ADM_BASE + 0x20
#define ZL5011X_ADM_MOD_IE1 ZL5011X_ADM_BASE + 0x24
#define ZL5011X_ADM_MOD_IE2 ZL5011X_ADM_BASE + 0x28
#define ZL5011X_ADM_MOD_ICR ZL5011X_ADM_BASE + 0x2C
#define ZL5011X_ADM_MOD_ISTAT ZL5011X_ADM_BASE + 0x30
#define ZL5011X_ADM_MOD_IFR ZL5011X_ADM_BASE + 0x34
#define ZL5011X_ADM_MOD_CHIP_ID ZL5011X_ADM_BASE + 0x38
#define ZL5011X_ADM_MOD_INIT_TIMEOUT_REG ZL5011X_ADM_BASE + 0x3C
#define ZL5011X_ADM_MOD_CONSTAT ZL5011X_ADM_BASE + 0x40
#define ZL5011X_ADM_MOD_CONFIG ZL5011X_ADM_BASE + 0x48
/* bit positions for ZL5011X_ADM_MOD_FREEZE register */
#define ZL5011X_ADM_SET_FREEZE_BIT 0
#define ZL5011X_ADM_FREEZE_STATUS_BIT 1
#define ZL5011X_ADM_GPIO_MASK 0x0000FFFF
/* bit positions for ZL5011X_ADM_MOD_CHIP_ID register */
#define ZL5011X_ADM_CHIP_ID_BITS 1
#define ZL5011X_ADM_CHIP_ID_MASK (Uint32T)0x7ffffff
#define ZL5011X_ADM_CHIP_VERSION_BITS 28
#define ZL5011X_ADM_CHIP_VERSION_MASK (Uint32T)0xf
#define ZL5011X_ADM_WAN_TX_ERROR_OVERFLOW_INTERRUPT 0
#define ZL5011X_ADM_WAN_TX_ERROR_QUEUE_INTERRUPT 1
#define ZL5011X_ADM_WAN_TX_INFO_OVERFLOW_INTERRUPT 2
#define ZL5011X_ADM_WAN_TX_INFO_QUEUE_INTERRUPT 3
#define ZL5011X_ADM_WAN_TX_QUEUE_INTERRUPT 4
#define ZL5011X_ADM_WAN_TX_OVERFLOW_INTERRUPT 5
#define ZL5011X_ADM_WAN_TX_GRANULES_INTERRUPT 6
#define ZL5011X_ADM_WAN_RX_QUEUE_INTERRUPT 7
#define ZL5011X_ADM_WAN_RX_OVERFLOW_INTERRUPT 8
#define ZL5011X_ADM_WAN_RX_TASK_OVERFLOW_INTERRUPT 9
#define ZL5011X_ADM_RTP_STATS_INTERRUPT 10
#define ZL5011X_ADM_CLOCK_INTERRUPT 11
#define ZL5011X_ADM_MEMORY_PARITY_INTERRUPT 12
#define ZL5011X_ADM_MAC_IF_INTERRUPT 13
#define ZL5011X_ADM_PACKET_TX_INTERRUPT 14
#define ZL5011X_ADM_PACKET_RX_INTERRUPT 15
#define ZL5011X_ADM_TASK_CONTROL_INTERRUPT 16
#define ZL5011X_ADM_GRANULE_INTERRUPT 17
#define ZL5011X_ADM_HOST_OVERFLOW_INTERRUPT 18
#define ZL5011X_ADM_HOST_QUEUE_INTERRUPT 19
#define ZL5011X_ADM_HOST_GRANULES_INTERRUPT 20
#define ZL5011X_ADM_DMA_RX_INTERRUPT 21
#define ZL5011X_ADM_DMA_TX_INTERRUPT 22
/* The following interrupts are for internal use only */
#define ZL5011X_ADM_INIT_DONE_INTERRUPT 30
#define ZL5011X_ADM_INIT_ERROR_INTERRUPT 31
/***************** DATA TYPES *********************************************/
/***************** DATA STRUCTURES ****************************************/
/***************** EXPORTED GLOBAL VARIABLE DECLARATIONS ******************/
/***************** EXTERNAL FUNCTION DECLARATIONS *************************/
#ifdef __cplusplus
}
#endif
#endif /* _ZL5011X_ADM_MAP_H_ */
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -