?? zl5011xpkqmap.h
字號:
/*******************************************************************************
*
* File name: zl5011xPkqMap.h
*
* Version: 10
*
* Author: LCW
*
* Date created: 16/04/2002
*
* Copyright 2002, 2003, 2004, 2005, Zarlink Semiconductor Limited.
* All rights reserved.
*
* Module Description:
* This is the map header file for the PKQ block.
* It contains address ofsets and general constants for the PKQ module.
*
* Revision History:
*
* Rev: Date: Author: Comments:
* 1 16/04/2002 LCW Created
* 2 09/05/2002 LCW Minor mods.
* 3 15/05/2002 LCW Minor mods.
* 4 16/05/2002 LCW Minor mods.
* 5 05/06/2002 MRC Update
* 6 12/06/2002 MRC Changed the base address of the context table
* 7 19/06/2002 MRC Number of headers for the host is now globally
* defined
* 8 26/06/2002 LCW Minor mods.
* 9 26/07/2002 MRC Changed queue weighting defines
* 10 31/10/2002 MRC Added variants + minor fixes
*
*******************************************************************************/
#ifndef _ZL5011X_PKQ_MAP_H_
#define _ZL5011X_PKQ_MAP_H_
#ifdef __cplusplus
extern "C" {
#endif
/***************** # DEFINES **********************************************/
/* addresses for the registers */
#define ZL5011X_PKQ_TGTR ZL5011X_PKQ_BASE + 0x00000 /* Total Granule Threshold Register */
#define ZL5011X_PKQ_GTA0 ZL5011X_PKQ_BASE + 0x00004 /* Granule threshold for queue a0 */
#define ZL5011X_PKQ_GTA1 ZL5011X_PKQ_BASE + 0x00008 /* Granule threshold */
#define ZL5011X_PKQ_GTA2 ZL5011X_PKQ_BASE + 0x0000C /* Granule threshold */
#define ZL5011X_PKQ_GTA3 ZL5011X_PKQ_BASE + 0x00010 /* Granule threshold */
#define ZL5011X_PKQ_GTB0 ZL5011X_PKQ_BASE + 0x00014 /* Granule threshold */
#define ZL5011X_PKQ_GTB1 ZL5011X_PKQ_BASE + 0x00018 /* Granule threshold */
#define ZL5011X_PKQ_GTB2 ZL5011X_PKQ_BASE + 0x0001C /* Granule threshold */
#define ZL5011X_PKQ_GTB3 ZL5011X_PKQ_BASE + 0x00020 /* Granule threshold */
#define ZL5011X_PKQ_GTC0 ZL5011X_PKQ_BASE + 0x00024 /* Granule threshold */
#define ZL5011X_PKQ_GTC1 ZL5011X_PKQ_BASE + 0x00028 /* Granule threshold */
#define ZL5011X_PKQ_GTC2 ZL5011X_PKQ_BASE + 0x0002C /* Granule threshold */
#define ZL5011X_PKQ_GTC3 ZL5011X_PKQ_BASE + 0x00030 /* Granule threshold */
#define ZL5011X_PKQ_GTD0 ZL5011X_PKQ_BASE + 0x00034 /* Granule threshold */
#define ZL5011X_PKQ_GTD1 ZL5011X_PKQ_BASE + 0x00038 /* Granule threshold */
#define ZL5011X_PKQ_GTD2 ZL5011X_PKQ_BASE + 0x0003C /* Granule threshold */
#define ZL5011X_PKQ_GTD3 ZL5011X_PKQ_BASE + 0x00040 /* Granule threshold */
#define ZL5011X_PKQ_LMR ZL5011X_PKQ_BASE + 0x00044 /* Lan Mode Register */
#define ZL5011X_PKQ_WTA ZL5011X_PKQ_BASE + 0x00048 /* WFQ Reg for queue A */
#define ZL5011X_PKQ_WTB ZL5011X_PKQ_BASE + 0x0004C /* WFQ Reg for queue B */
#define ZL5011X_PKQ_WTC ZL5011X_PKQ_BASE + 0x00050 /* WFQ Reg for queue C */
#define ZL5011X_PKQ_WTD ZL5011X_PKQ_BASE + 0x00054 /* WFQ Reg for queue D */
#define ZL5011X_PKQ_QDER ZL5011X_PKQ_BASE + 0x00058 /* Queue Drop Enable Register */
#define ZL5011X_PKQ_QDR ZL5011X_PKQ_BASE + 0x0005C /* Queue Drop Register */
#define ZL5011X_PKQ_TMA ZL5011X_PKQ_BASE + 0x00060 /* Test max address register */
#define ZL5011X_PKQ_CONTEXT_TABLE ZL5011X_PKQ_BASE + 0x02000 /* First element of
context table */
#define ZL5011X_PKQ_NUMBER_OF_WFQ_BITS 2
#define ZL5011X_PKQ_PRIORTY_MODE_CHECK 0x00000011
#define ZL5011X_PKQ_MAX_REG_OFFSET 16
#define ZL5011X_PKQ_NUMBER_OF_PORTS 4
#define ZL5011X_PKQ_QUEUES_PER_PORT 4
#define ZL5011X_PKQ_TOT_THLD_ENABLE 0x0000FFFF
#define ZL5011X_PKQ_TOT_THLD_DISABLE 0x00000000
#define ZL5011X_PKQ_MAX_QUEUE_WEIGHTING 63
#define ZL5011X_PKQ_Q0_SHIFT 0
#define ZL5011X_PKQ_Q1_SHIFT 6
#define ZL5011X_PKQ_Q2_SHIFT 12
#define ZL5011X_PKQ_Q3_SHIFT 18
#define ZL5011X_PKQ_TOTAL_THLD_MODE 0x00010000
#define ZL5011X_PKQ_WFQ_SHIFT 6
#define ZL5011X_PKQ_PORT_SHIFT 2
#define ZL5011X_PKQ_NUM_OF_CT_FIELDS 8
#define ZL5011X_SIZE_OF_PORT_AND_QUEUE_FIELD 4
#define ZL5011X_PKQ_ADDRESS_SHIFT 4
#define ZL5011X_PKQ_NUM_QUEUES 4
#define ZL5011X_PKQ_TOTAL_NUMBER_OF_QUEUES 16
#define ZL5011X_PKQ_MAX_MPIDS ((8192*8) - 16)
#define ZL5011X_PKQ_MAX_GRAN_THLD 256000
/***************** DATA TYPES *********************************************/
/***************** DATA STRUCTURES ****************************************/
/***************** EXPORTED GLOBAL VARIABLE DECLARATIONS ******************/
#ifdef __cplusplus
}
#endif
#endif /* _ZL5011X_PKQ_MAP_H_ */
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -