📄 ixosalosixp465sys.h
字号:
/** * @file IxOsalOsIxp465Sys.h * * @brief vxworks and IXP465 specific defines * * Design Notes: * * @par * IXP400 SW Release version 2.1 * * -- Copyright Notice -- * * @par * Copyright (c) 2001-2005, Intel Corporation. * All rights reserved. * * @par * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * * @par * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * * @par * -- End of Copyright Notice -- */#ifndef IxOsalOsIxp465Sys_H#define IxOsalOsIxp465Sys_H#ifndef IxOsalOsIxp400_H#error "Error: IxOsalOsIxp465Sys.h cannot be included directly before IxOsalOsIxp400.h!"#endif#include "ixdp400.h"/* Base Address */#define IX_OSAL_IXP400_ETH_MAC_A0_PHYS_BASE (0x0C800C000) /* MAC on NPE-A */#define IX_OSAL_IXP400_TIMESYNC_PHYS_BASE IXP400_TIMESYNC_BASE#define IX_OSAL_IXP400_PARITYEN_PHYS_BASE (0xCC00E51C)#define IX_OSAL_IXP400_I2C_PHYS_BASE IXP400_I2C_BASE#define IX_OSAL_IXP400_SSP_PHYS_BASE IXP400_SSP_BASE#define IX_OSAL_IXP400_SDRAM_BASE IXP400_SDRAM_BASE#define IX_OSAL_IXP400_PKE_CRYPTO_ENGINE_EAU_PHYS_BASE (0x70000000) #define IX_OSAL_IXP400_PKE_CRYPTO_ENGINE_RNG_SHA_PHYS_BASE (0x70002100)/* Expansion Bus */#define IX_OSAL_IXP400_EXP_BUS_PHYS_BASE IXP400_EXPANSION_BUS_BASE2#define IX_OSAL_IXP400_EXP_BUS_BOOT_PHYS_BASE IXP400_EXPANSION_BUS_BASE1#define IX_OSAL_IXP400_EXP_BUS_CS0_PHYS_BASE IXP400_EXPANSION_BUS_CS0_BASE #define IX_OSAL_IXP400_EXP_BUS_CS1_PHYS_BASE IXP400_EXPANSION_BUS_CS1_BASE #define IX_OSAL_IXP400_EXP_BUS_CS2_PHYS_BASE IXP400_EXPANSION_BUS_CS2_BASE #define IX_OSAL_IXP400_EXP_BUS_CS3_PHYS_BASE IXP400_EXPANSION_BUS_CS3_BASE #define IX_OSAL_IXP400_EXP_BUS_CS4_PHYS_BASE IXP400_EXPANSION_BUS_CS4_BASE #define IX_OSAL_IXP400_EXP_BUS_CS5_PHYS_BASE IXP400_EXPANSION_BUS_CS5_BASE #define IX_OSAL_IXP400_EXP_BUS_CS6_PHYS_BASE IXP400_EXPANSION_BUS_CS6_BASE #define IX_OSAL_IXP400_EXP_BUS_CS7_PHYS_BASE IXP400_EXPANSION_BUS_CS7_BASE #define IX_OSAL_IXP400_ETH_MAC_A0_MAP_SIZE (0x1000) /**< Eth MAC for NPEA map size */#define IX_OSAL_IXP400_I2C_MAP_SIZE (0x10) /**< I2C map size */#define IX_OSAL_IXP400_SSP_MAP_SIZE (0x14) /**< SSP map size */#define IX_OSAL_IXP400_TIMESYNC_MAP_SIZE (0xA0) /**< Time Sync map size */#define IX_OSAL_IXP400_PARITYEN_MAP_SIZE (0x100000) /**< Parity map size */#define IX_OSAL_IXP400_PKE_CRYPTO_ENGINE_RNG_SHA_MAP_SIZE (0x200) /**< Crypto RNG and SHA map size */
#define IX_OSAL_IXP400_PKE_CRYPTO_ENGINE_EAU_MAP_SIZE (0x2100) /**< Crypto EAU map size *//* Expansion Bus*/#define IX_OSAL_IXP400_EXP_BUS_MAP_SIZE (IXP400_EXPANSION_BUS_TOTAL_SIZE) /**< Expansion bus map size */#define IX_OSAL_IXP400_EXP_BUS_CS0_MAP_SIZE (EXP_CS_MEMSIZE) /**< CS0 map size */#define IX_OSAL_IXP400_EXP_BUS_CS1_MAP_SIZE (EXP_CS_MEMSIZE) /**< CS1 map size */#define IX_OSAL_IXP400_EXP_BUS_CS2_MAP_SIZE (EXP_CS_MEMSIZE) /**< CS2 map size */#define IX_OSAL_IXP400_EXP_BUS_CS3_MAP_SIZE (EXP_CS_MEMSIZE) /**< CS3 map size */#define IX_OSAL_IXP400_EXP_BUS_CS4_MAP_SIZE (EXP_CS_MEMSIZE) /**< CS4 map size */#define IX_OSAL_IXP400_EXP_BUS_CS5_MAP_SIZE (EXP_CS_MEMSIZE) /**< CS5 map size */#define IX_OSAL_IXP400_EXP_BUS_CS6_MAP_SIZE (EXP_CS_MEMSIZE) /**< CS6 map size */#define IX_OSAL_IXP400_EXP_BUS_CS7_MAP_SIZE (EXP_CS_MEMSIZE) /**< CS7 map size *//* IRQ Interrupt levels */#define IX_OSAL_IXP400_USB_HOST_IRQ_LVL (32)#define IX_OSAL_IXP400_I2C_IRQ_LVL (33)#define IX_OSAL_IXP400_SSP_IRQ_LVL (34)#define IX_OSAL_IXP400_TSYNC_IRQ_LVL (35)#define IX_OSAL_IXP400_EAU_DONE_IRQ_LVL (36)#define IX_OSAL_IXP400_SHA_HASHING_DONE_IRQ_LVL (37)#define IX_OSAL_IXP400_RSVD_38_IRQ_LVL (38)#define IX_OSAL_IXP400_RSVD_39_IRQ_LVL (39)#define IX_OSAL_IXP400_RSVD_40_IRQ_LVL (40)#define IX_OSAL_IXP400_RSVD_41_IRQ_LVL (41)#define IX_OSAL_IXP400_RSVD_42_IRQ_LVL (42)#define IX_OSAL_IXP400_RSVD_43_IRQ_LVL (43)#define IX_OSAL_IXP400_RSVD_44_IRQ_LVL (44)#define IX_OSAL_IXP400_RSVD_45_IRQ_LVL (45)#define IX_OSAL_IXP400_RSVD_46_IRQ_LVL (46)#define IX_OSAL_IXP400_RSVD_47_IRQ_LVL (47)#define IX_OSAL_IXP400_RSVD_48_IRQ_LVL (48)#define IX_OSAL_IXP400_RSVD_49_IRQ_LVL (49)#define IX_OSAL_IXP400_RSVD_50_IRQ_LVL (50)#define IX_OSAL_IXP400_RSVD_51_IRQ_LVL (51)#define IX_OSAL_IXP400_RSVD_52_IRQ_LVL (52)#define IX_OSAL_IXP400_RSVD_53_IRQ_LVL (53)#define IX_OSAL_IXP400_RSVD_54_IRQ_LVL (54)#define IX_OSAL_IXP400_RSVD_55_IRQ_LVL (55)#define IX_OSAL_IXP400_RSVD_56_IRQ_LVL (56)#define IX_OSAL_IXP400_RSVD_57_IRQ_LVL (57)#define IX_OSAL_IXP400_SWCP_IRQ_LVL (58)#define IX_OSAL_IXP400_RSVD_59_IRQ_LVL (59)#define IX_OSAL_IXP400_AQM_IRQ_LVL (60)#define IX_OSAL_IXP400_MCU_IRQ_LVL (61)#define IX_OSAL_IXP400_EBC_IRQ_LVL (62)#define IX_OSAL_IXP400_RSVD_63_IRQ_LVL (63)/* Platform specific Macros */#define IX_OSAL_IXP400_TIME_STAMP_RESOLUTION (66666666) /* 66.66MHz *//* Global memmap only visible to IO MEM module */#ifdef IxOsalIoMem_Cstatic IxOsalMemoryMap ixOsalGlobalMemoryMap[] = { /* * Global BE and LE_AC map */ { IX_OSAL_STATIC_MAP, /* type */ 0x00000000, /* physicalAddress */ 0xFFFFFFFF, /* size */ 0x00000000, /* virtualAddress */ NULL, /* mapFunction */ NULL, /* unmapFunction */ 0, /* refCount */ IX_OSAL_BE | IX_OSAL_LE_AC, /* coherency */ "global" /* name */ }, /* * QMgr LE_DC map */ { IX_OSAL_STATIC_MAP, /* type */ IX_OSAL_IXP400_QMGR_PHYS_BASE, /* physicalAddress */ IX_OSAL_IXP400_QMGR_MAP_SIZE, /* size */ IX_OSAL_IXP400_QMGR_LE_DC_VIRT, /* virtualAddress */ NULL, /* mapFunction */ NULL, /* unmapFunction */ 0, /* refCount */ IX_OSAL_LE_DC, /* coherency */ "qMgr LE_DC" /* name */ }, /* * Expansion Bus Config LE_DC map */ { IX_OSAL_STATIC_MAP, /* type */ IX_OSAL_IXP400_EXP_BUS_REGS_PHYS_BASE, /* physicalAddress */ IX_OSAL_IXP400_EXP_CONFIG_MAP_SIZE, /* size */ IX_OSAL_IXP400_EXP_CONFIG_LE_DC_VIRT, /* virtualAddress */ NULL, /* mapFunction */ NULL, /* unmapFunction */ 0, /* refCount */ IX_OSAL_LE_DC, /* coherency */ "Exp Cfg LE_DC" /* name */ }, /* * Peripherals LE_DC map */ { IX_OSAL_STATIC_MAP, /* type */ IX_OSAL_IXP400_PERIPHERAL_PHYS_BASE, /* physicalAddress */ IX_OSAL_IXP400_PERIPHERAL_MAP_SIZE, /* size */ IX_OSAL_IXP400_PERIPHERAL_LE_DC_VIRT, /* virtualAddress */ NULL, /* mapFunction */ NULL, /* unmapFunction */ 0, /* refCount */ IX_OSAL_LE_DC, /* coherency */ "peripherals LE_DC" /* name */ }};#endif /* IxOsalIoMem_C visible */#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -