⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 universe_dy4.h

📁 sbc7410的vxworksbsp
💻 H
📖 第 1 页 / 共 5 页
字号:
#define LSI4_BS_MASK    0x0000ffff/* PCI Slave Image Bound Address Register 3 */#define LSI4_BD_MASK    0x0000ffff/* PCI Slave Image Translation Offset Register 3 */#define LSI4_TO_MASK    0x0000ffff/* PCI Slave Image Control Register 5 */#define LSI5_CTL_MASK           0x3f380efc      /* Mask bits */#define LSI5_CTL_EN             (1 << 31)       /* Enable PCI Slave Image     */#define LSI5_CTL_WP             (1 << 30)       /* Enable Posted Writes       */#define LSI5_CTL_D8             (0 << 22)       /* Max VME Data Width = 8     */#define LSI5_CTL_D16            (1 << 22)       /* Max VME Data Width = 16    */#define LSI5_CTL_D32            (2 << 22)       /* Max VME Data Width = 32    */#define LSI5_CTL_D64            (3 << 22)       /* Max VME Data Width = 64    */#define LSI5_CTL_A16            (0 << 16)       /* VME Address Space A16      */#define LSI5_CTL_A24            (1 << 16)       /* VME Address Space A24      */#define LSI5_CTL_A32            (2 << 16)       /* VME Address Space A32      */#define LSI5_CTL_CSR            (5 << 16)       /* VME Address Space CSR      */#define LSI5_CTL_USER1          (6 << 16)       /* VME Address Space USER 1   */#define LSI5_CTL_USER2          (7 << 16)       /* VME Address Space USER 2   */#define LSI5_CTL_PGM            (1 << 14)       /* Program AM Code            */#define LSI5_CTL_DATA           (0 << 14)       /* Data AM Code               */#define LSI5_CTL_SUP            (1 << 12)       /* Supervisor AM Code         */#define LSI5_CTL_USR            (0 << 12)       /* User AM Code               */#define LSI5_CTL_BLK            (1 << 8)        /* Supervisor AM Code         */#define LSI5_CTL_SINGLE         (0 << 8)        /* User AM Code               */#define LSI5_CTL_PCI_MEM        (0 << 0)        /* PCI Memory Space           */#define LSI5_CTL_PCI_IO         (1 << 0)        /* PCI I/O Space              */#define LSI5_CTL_PCI_CONFIG     (2 << 0)        /* PCI Type 1 Config Space    *//* PCI Slave Image Base Address Register 3 */#define LSI5_BS_MASK    0x0000ffff/* PCI Slave Image Bound Address Register 3 */#define LSI5_BD_MASK    0x0000ffff/* PCI Slave Image Translation Offset Register 3 */#define LSI5_TO_MASK    0x0000ffff/* PCI Slave Image Control Register 6 */#define LSI6_CTL_MASK           0x3f380efc      /* Mask bits */#define LSI6_CTL_EN             (1 << 31)       /* Enable PCI Slave Image     */#define LSI6_CTL_WP             (1 << 30)       /* Enable Posted Writes       */#define LSI6_CTL_D8             (0 << 22)       /* Max VME Data Width = 8     */#define LSI6_CTL_D16            (1 << 22)       /* Max VME Data Width = 16    */#define LSI6_CTL_D32            (2 << 22)       /* Max VME Data Width = 32    */#define LSI6_CTL_D64            (3 << 22)       /* Max VME Data Width = 64    */#define LSI6_CTL_A16            (0 << 16)       /* VME Address Space A16      */#define LSI6_CTL_A24            (1 << 16)       /* VME Address Space A24      */#define LSI6_CTL_A32            (2 << 16)       /* VME Address Space A32      */#define LSI6_CTL_CSR            (5 << 16)       /* VME Address Space CSR      */#define LSI6_CTL_USER1          (6 << 16)       /* VME Address Space USER 1   */#define LSI6_CTL_USER2          (7 << 16)       /* VME Address Space USER 2   */#define LSI6_CTL_PGM            (1 << 14)       /* Program AM Code            */#define LSI6_CTL_DATA           (0 << 14)       /* Data AM Code               */#define LSI6_CTL_SUP            (1 << 12)       /* Supervisor AM Code         */#define LSI6_CTL_USR            (0 << 12)       /* User AM Code               */#define LSI6_CTL_BLK            (1 << 8)        /* Supervisor AM Code         */#define LSI6_CTL_SINGLE         (0 << 8)        /* User AM Code               */#define LSI6_CTL_PCI_MEM        (0 << 0)        /* PCI Memory Space           */#define LSI6_CTL_PCI_IO         (1 << 0)        /* PCI I/O Space              */#define LSI6_CTL_PCI_CONFIG     (2 << 0)        /* PCI Type 1 Config Space    *//* PCI Slave Image Base Address Register 3 */#define LSI6_BS_MASK    0x0000ffff/* PCI Slave Image Bound Address Register 3 */#define LSI6_BD_MASK    0x0000ffff/* PCI Slave Image Translation Offset Register 3 */#define LSI6_TO_MASK    0x0000ffff/* PCI Slave Image Control Register 7 */#define LSI7_CTL_MASK           0x3f380efc      /* Mask bits */#define LSI7_CTL_EN             (1 << 31)       /* Enable PCI Slave Image     */#define LSI7_CTL_WP             (1 << 30)       /* Enable Posted Writes       */#define LSI7_CTL_D8             (0 << 22)       /* Max VME Data Width = 8     */#define LSI7_CTL_D16            (1 << 22)       /* Max VME Data Width = 16    */#define LSI7_CTL_D32            (2 << 22)       /* Max VME Data Width = 32    */#define LSI7_CTL_D64            (3 << 22)       /* Max VME Data Width = 64    */#define LSI7_CTL_A16            (0 << 16)       /* VME Address Space A16      */#define LSI7_CTL_A24            (1 << 16)       /* VME Address Space A24      */#define LSI7_CTL_A32            (2 << 16)       /* VME Address Space A32      */#define LSI7_CTL_CSR            (5 << 16)       /* VME Address Space CSR      */#define LSI7_CTL_USER1          (6 << 16)       /* VME Address Space USER 1   */#define LSI7_CTL_USER2          (7 << 16)       /* VME Address Space USER 2   */#define LSI7_CTL_PGM            (1 << 14)       /* Program AM Code            */#define LSI7_CTL_DATA           (0 << 14)       /* Data AM Code               */#define LSI7_CTL_SUP            (1 << 12)       /* Supervisor AM Code         */#define LSI7_CTL_USR            (0 << 12)       /* User AM Code               */#define LSI7_CTL_BLK            (1 << 8)        /* Supervisor AM Code         */#define LSI7_CTL_SINGLE         (0 << 8)        /* User AM Code               */#define LSI7_CTL_PCI_MEM        (0 << 0)        /* PCI Memory Space           */#define LSI7_CTL_PCI_IO         (1 << 0)        /* PCI I/O Space              */#define LSI7_CTL_PCI_CONFIG     (2 << 0)        /* PCI Type 1 Config Space    *//* PCI Slave Image Base Address Register 3 */#define LSI7_BS_MASK    0x0000ffff/* PCI Slave Image Bound Address Register 3 */#define LSI7_BD_MASK    0x0000ffff/* PCI Slave Image Translation Offset Register 3 */#define LSI7_TO_MASK    0x0000ffff/* PCI Special Cycle Control Register */#define SCYC_CTL_MASK   0xfffffffc#define SCYC_CTL_DISABLE        (0)             /* Disable Special Cycle Gen  */#define SCYC_CTL_RMW            (1)             /* RMW Special Cycle          */#define SCYC_CTL_ADO            (2)             /* ADO Special Cycle          *//* PCI Special Cycle Address Register */#define SCYC_ADDR_MASK  0x3/* PCI Miscellaneous Register */#define LMISC_CRT_INFINITE      (0 << 28)       /* Coupled Request Timeout */#define LMISC_CRT_128_USEC      (1 << 28)       /* Coupled Request Timeout */#define LMISC_CRT_256_USEC      (2 << 28)       /* Coupled Request Timeout */#define LMISC_CRT_512_USEC      (3 << 28)       /* Coupled Request Timeout */#define LMISC_CRT_1024_USEC     (4 << 28)       /* Coupled Request Timeout */#define LMISC_CRT_2048_USEC     (5 << 28)       /* Coupled Request Timeout */#define LMISC_CRT_4096_USEC     (6 << 28)       /* Coupled Request Timeout */#define LMISC_CWT_DISABLE       (0 << 24)       /* Coupled Window Timeout     */                                /* Immediate Release after first transaction  */#define LMISC_CWT_16_CLKS       (1 << 24)       /* Coupled Window Timeout     */#define LMISC_CWT_32_CLKS       (2 << 24)       /* Coupled Window Timeout     */#define LMISC_CWT_64_CLKS       (3 << 24)       /* Coupled Window Timeout     */#define LMISC_CWT_128_CLKS      (4 << 24)       /* Coupled Window Timeout     */#define LMISC_CWT_256_CLKS      (5 << 24)       /* Coupled Window Timeout     */#define LMISC_CWT_512_CLKS      (6 << 24)       /* Coupled Window Timeout     *//* * Special PCI Slave Image * - provides access to all of A16 and most of A24 VME Space */#define SLSI_EN                 (1 << 31)       /* Enable PCI Slave Image     */#define SLSI_WP                 (1 << 30)       /* Enable Posted Writes       */#define SLSI_D16                (1 << 20)       /* Max VME Data Width = 16    */#define SLSI_D32                (2 << 20)       /* Max VME Data Width = 32    */#define SLSI_PGM                (1 << 12)       /* Program AM Code            */#define SLSI_DATA               (0 << 12)       /* Data AM Code               */#define SLSI_SUP                (1 << 8)        /* Supervisor AM Code         */#define SLSI_USR                (0 << 8)        /* User AM Code               */#define SLSI_PCI_MEM            (0 << 0)        /* PCI Memory Space           */#define SLSI_PCI_IO             (1 << 0)        /* PCI I/O Space              */#define SLSI_PCI_CONFIG         (2 << 0)        /* PCI Type 1 Config Space    *//* PCI Command Error Log Register */#define L_CMDERR_LOG            (0xf << 28)     /* Command Error Log          */#define L_CMDERR_MASK           0x078fffff      /* Reserved bits */#define L_CMDERR_M_ERR          (1 << 27)       /* Multiple Error Occurred    */#define L_CMDERR_L_STAT         (1 << 23)       /* Logs are valid and halted  */#define L_CMDERR_L_ENABLE       (1 << 23)       /* Clear and Enable Logging   *//* DMA Transfer Control Register */#define DCTL_MASK               0x7f380e7f      /* Reserved bits */#define DCTL_L2V                (1 << 31)       /* PCI-to-VME transfer */#define DCTL_VDW_8              (0)             /* Maximum data width 8 bits */#define DCTL_VDW_16             (1 << 22)       /* Maximum data width 16 bits */#define DCTL_VDW_32             (2 << 22)       /* Maximum data width 32 bits */#define DCTL_VDW_64             (3 << 22)       /* Maximum data width 64 bits */#define DCTL_VAS_A16            (0)             /* VME address space A16 */#define DCTL_VAS_A24            (1 << 16)       /* VME address space A24 */#define DCTL_VAS_A32            (2 << 16)       /* VME address space A32 */#define DCTL_VAS_USER1          (6 << 16)       /* VME address space User1 */#define DCTL_VAS_USER2          (7 << 16)       /* VME address space User2 */#define DCTL_PGM_DATA           (0)             /* Data AM code */#define DCTL_PGM_PRGM           (1 << 14)       /* Program AM code */#define DCTL_SUPER_USER         (0)             /* Non-privileged AM code */#define DCTL_SUPER_SUP          (1 << 12)       /* Supervisor AM code */#define DCTL_VCT_EN             (1 << 8)        /* Block mode capable */#define DCTL_LD64EN             (1 << 7)        /* 64-bit PCI transactions *//* DMA Transfer Byte Count Register */#define DTBC_MASK       0xff000000/* DMA General Control/Status Register */#define DGCS_MASK               0x00000000      /* Reserved bits */#define DGCS_GO                 (1 << 31)       /* Start DMA */#define DGCS_STOP_REQ           (1 << 30)       /* Stop Request */#define DGCS_HALT_REQ           (1 << 29)       /* Halt Request */#define DGCS_CHAIN              (1 << 27)       /* DMA chaining */#define DGCS_VON_DONE           (0)             /* Transfer count until done*/#define DGCS_VON_256            (1 << 20)       /* Transfer count 256 bytes */#define DGCS_VON_512            (2 << 20)       /* Transfer count 512 bytes */#define DGCS_VON_1024           (3 << 20)       /* Transfer count 1024 bytes */#define DGCS_VON_2048           (4 << 20)       /* Transfer count 2048 bytes */#define DGCS_VON_4096           (5 << 20)       /* Transfer count 4096 bytes */#define DGCS_VON_8192           (6 << 20)       /* Transfer count 4096 bytes */#define DGCS_VON_16384          (7 << 20)       /* Transfer count 16384 bytes */#define DGCS_VOFF_0             (0)             /* Time off VME bus0 us */#define DGCS_VOFF_16            (1 << 16)       /* Time off VME bus16 us */#define DGCS_VOFF_32            (2 << 16)       /* Time off VME bus32 us */#define DGCS_VOFF_64            (3 << 16)       /* Time off VME bus64 us */#define DGCS_VOFF_128           (4 << 16)       /* Time off VME bus128 us */#define DGCS_VOFF_256           (5 << 16)       /* Time off VME bus256 us */#define DGCS_VOFF_512           (6 << 16)       /* Time off VME bus512 us */#define DGCS_VOFF_1024          (7 << 16)       /* Time off VME bus1024 us */#define DGCS_ACT                (1 << 15)       /* DMA active */#define DGCS_STOP               (1 << 14)       /* DMA stopped */#define DGCS_HALT               (1 << 13)       /* DMA halted */#define DGCS_DONE               (1 << 11)       /* DMA done */#define DGCS_LERR               (1 << 10)       /* PCI bus error */#define DGCS_VERR               (1 << 9)        /* VME bus error */#define DGCS_P_ERR              (1 << 8)        /* Protocol error */#define DGCS_INT_STOP           (1 << 6)        /* Interrupt stop enable */#define DGCS_INT_HALT           (1 << 5)        /* Interrupt halt enable */#define DGCS_INT_DONE           (1 << 3)        /* Interrupt done enable */#define DGCS_INT_LERR           (1 << 2)        /* Interrupt LERR enable */#define DGCS_INT_VERR           (1 << 1)        /* Interrupt VERR enable */#define DGCS_INT_P_ERR          (1)             /* Interrupt protocol enable *//* DMA Linked List Update Enable Register *//* PCI Configuration Base Address Register */#define PCI_BS_SPACE            (1)             /* Memory or I/O power-up *//* PCI Interrupt Enable Register */#define LINT_EN_MASK            0xffff0000      /* Reserved bits */#define LINT_EN_ACFAIL          (1 << 15)       /* Enable Interrupt ACFAIL   */#define LINT_EN_SYSFAIL         (1 << 14)       /* Enable Interrupt SYSFAIL  */#define LINT_EN_SW_INT          (1 << 13)       /* Enable Interrupt SW_INT   */#define LINT_EN_SW_IACK         (1 << 12)       /* Enable Interrupt SW_ACK   */#define LINT_EN_VERR            (1 << 10)       /* Enable Interrupt ACFAIL   */#define LINT_EN_LERR            (1 << 9)        /* Enable Interrupt ACFAIL   */#define LINT_EN_DMA             (1 << 8)        /* Enable Interrupt ACFAIL   */#define LINT_EN_VIRQ7           (1 << 7)        /* Enable Interrupt VME IRQ7 */#define LINT_EN_VIRQ6           (1 << 6)        /* Enable Interrupt VME IRQ6 */#define LINT_EN_VIRQ5           (1 << 5)        /* Enable Interrupt VME IRQ5 */#define LINT_EN_VIRQ4           (1 << 4)        /* Enable Interrupt VME IRQ4 */#define LINT_EN_VIRQ3           (1 << 3)        /* Enable Interrupt VME IRQ3 */#define LINT_EN_VIRQ2           (1 << 2)        /* Enable Interrupt VME IRQ2 */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -