📄 universe2_dy4.h
字号:
/* universe2_dy4.h - VMEbus Interface Controller *//* Copyright 2001 DY 4 Systems, Inc. *//*modification history--------------------01a,19mar98,dy4 written*/#ifndef INCuniverse2h#define INCuniverse2h/*This file contains constants for the Universe 2 PCI-VME interface chip,and is dependent on the file universe.h*/#include "universe_dy4.h"#ifdef __cplusplusextern "C" {#endif#define UNIVERSE_LSI4_CTL UNIVERSE_ADRS(0x1a0)#define UNIVERSE_LSI4_BS UNIVERSE_ADRS(0x1a4)#define UNIVERSE_LSI4_BD UNIVERSE_ADRS(0x1a8)#define UNIVERSE_LSI4_TO UNIVERSE_ADRS(0x1ac)#define UNIVERSE_LSI5_CTL UNIVERSE_ADRS(0x1b4)#define UNIVERSE_LSI5_BS UNIVERSE_ADRS(0x1b8)#define UNIVERSE_LSI5_BD UNIVERSE_ADRS(0x1bc)#define UNIVERSE_LSI5_TO UNIVERSE_ADRS(0x1c0)#define UNIVERSE_LSI6_CTL UNIVERSE_ADRS(0x1c8)#define UNIVERSE_LSI6_BS UNIVERSE_ADRS(0x1cc)#define UNIVERSE_LSI6_BD UNIVERSE_ADRS(0x1d0)#define UNIVERSE_LSI6_TO UNIVERSE_ADRS(0x1d4)#define UNIVERSE_LSI7_CTL UNIVERSE_ADRS(0x1dc)#define UNIVERSE_LSI7_BS UNIVERSE_ADRS(0x1e0)#define UNIVERSE_LSI7_BD UNIVERSE_ADRS(0x1e4)#define UNIVERSE_LSI7_TO UNIVERSE_ADRS(0x1e8)#define UNIVERSE_LINT_MAP2 UNIVERSE_ADRS(0x340)#define UNIVERSE_VINT_MAP2 UNIVERSE_ADRS(0x344)#define UNIVERSE_MBOX0 UNIVERSE_ADRS(0x348)#define UNIVERSE_MBOX1 UNIVERSE_ADRS(0x34c)#define UNIVERSE_MBOX2 UNIVERSE_ADRS(0x350)#define UNIVERSE_MBOX3 UNIVERSE_ADRS(0x354)#define UNIVERSE_SEM0 UNIVERSE_ADRS(0x358)#define UNIVERSE_SEM1 UNIVERSE_ADRS(0x35c)#define UNIVERSE_LM_CTL UNIVERSE_ADRS(0xf64)#define UNIVERSE_LM_BS UNIVERSE_ADRS(0xf68)#define UNIVERSE_VSI4_CTL UNIVERSE_ADRS(0xf90)#define UNIVERSE_VSI4_BS UNIVERSE_ADRS(0xf94)#define UNIVERSE_VSI4_BD UNIVERSE_ADRS(0xf98)#define UNIVERSE_VSI4_TO UNIVERSE_ADRS(0xf9c)#define UNIVERSE_VSI5_CTL UNIVERSE_ADRS(0xfa4)#define UNIVERSE_VSI5_BS UNIVERSE_ADRS(0xfa8)#define UNIVERSE_VSI5_BD UNIVERSE_ADRS(0xfac)#define UNIVERSE_VSI5_TO UNIVERSE_ADRS(0xfb0)#define UNIVERSE_VSI6_CTL UNIVERSE_ADRS(0xfb8)#define UNIVERSE_VSI6_BS UNIVERSE_ADRS(0xfbc)#define UNIVERSE_VSI6_BD UNIVERSE_ADRS(0xfc0)#define UNIVERSE_VSI6_TO UNIVERSE_ADRS(0xfc4)#define UNIVERSE_VSI7_CTL UNIVERSE_ADRS(0xfcc)#define UNIVERSE_VSI7_BS UNIVERSE_ADRS(0xfd0)#define UNIVERSE_VSI7_BD UNIVERSE_ADRS(0xfd4)#define UNIVERSE_VSI7_TO UNIVERSE_ADRS(0xfd8)#define LM_CTL_EN (1<<31) /* Image Enable */#define LM_CTL_PGM (2<<22) /* Program AM Code */#define LM_CTL_DATA (1<<22) /* Data AM Code */#define LM_CTL_USR (1<<20) /* User AM Code */#define LM_CTL_SUP (2<<20) /* Supervisor AM Code */#define LM_CTL_VAS_A16 (0<<16) /* VME A16 */#define LM_CTL_VAS_A24 (1<<16) /* VME A24 */#define LM_CTL_VAS_A32 (2<<16) /* VME A32 */#define LM_CTL_VAS_USER1 (6<<16) /* VME Space User1 */#define LM_CTL_VAS_USER2 (7<<16) /* VME Space User2 */#define LM_IMAGE_SIZE (4096) /* Size of LM image */#define LINT_EN_MBOX0 (1 << 16) /* Enable Mailbox 0 */#define LINT_EN_MBOX1 (1 << 17) /* Enable Mailbox 1 */#define LINT_EN_MBOX2 (1 << 18) /* Enable Mailbox 2 */#define LINT_EN_MBOX3 (1 << 19) /* Enable Mailbox 3 */#define LINT_EN_LM0 (1 << 20) /* Enable LM 0 */#define LINT_EN_LM1 (1 << 21) /* Enable LM 1 */#define LINT_EN_LM2 (1 << 22) /* Enable LM 2 */#define LINT_EN_LM3 (1 << 23) /* Enable LM 3 */#define UNIVERSE_MBOX0_INT (0x010000) /* bit setting for MBOX0 intr */#define UNIVERSE_MBOX1_INT (0x020000) /* bit setting for MBOX1 intr */#define UNIVERSE_MBOX2_INT (0x040000) /* bit setting for MBOX2 intr */#define UNIVERSE_MBOX3_INT (0x080000) /* bit setting for MBOX3 intr */#define UNIVERSE_LM0_INT (0x100000) /* bit setting for LM0 intr */#define UNIVERSE_LM1_INT (0x200000) /* bit setting for LM1 intr */#define UNIVERSE_LM2_INT (0x400000) /* bit setting for LM2 intr */#define UNIVERSE_LM3_INT (0x800000) /* bit setting for LM3 intr */#define UNIVERSE_MBOX0_OFFSET (0x348) /* register offset for MBOX0 */#define UNIVERSE_MBOX1_OFFSET (0x34C) /* register offset for MBOX1 */#define UNIVERSE_MBOX2_OFFSET (0x350) /* register offset for MBOX2 */#define UNIVERSE_MBOX3_OFFSET (0x354) /* register offset for MBOX3 */#ifdef __cplusplus}#endif#endif /* INCuniverse2h */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -