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

📄 txc_envoy_mem_map.c

📁 TranSwitch Envoy CE2 & Envoy CE4 设备驱动及编程指南
💻 C
字号:
/*--------------------------------------------------------------------------

  *******                           ****
     *     *****     **    *    *  *       *    *   *  *****   ****   *    *
     *     *    *   *  *   **   *  *       *    *   *    *    *    *  *    *
     *     *    *  *    *  * *  *   ****   *    *   *    *    *       ******
     *     *****   ******  *  * *       *  * ** *   *    *    *       *    *
     *     *   *   *    *  *   **  *    *  **  **   *    *    *    *  *    *
     *     *    *  *    *  *    *   ****   *    *   *    *     ****   *    *

                        Proprietary and Confidential 

    This program is made available only to customers and prospective customers 
of TranSwitch Corporation under license and may be used only with TranSwitch 
semi-conductor products.

                      Copyright(c) 2004 TranSwitch Inc.

 --------------------------------------------------------------------------

             *******  **      **  **        **   ********   **      **
             *******  ***     **  **        **  **********  **      **
             **       ** *    **  **        **  **      **   **    **
             *****    **  *   **   **      **   **      **     *  *
             *****    **   *  **    **    **    **      **      **
             **       **    * **     **  **     **      **      **
             *******  **     ***      ****      **********      **
             *******  **      **       **        ********       **

 --------------------------------------------------------------------------
                           TranSwitch Envoy-CE2/CE4
                                Device Driver
 --------------------------------------------------------------------------
                                                                           
  Workfile:     txc_envoy_mem_map.c                                        
                                                                           
  Description:  Register Memory Mapped constants for TranSwitch's 
                Envoy CE2 and CE4 devices.
 
 --------------------------------------------------------------------------
                              Revision History                             
 --------------------------------------------------------------------------
   Rev #     Date           Author                Description               
   -----    -------      -----------              -----------               
   0.5.0    6/03/04      F. Giannella         Initial release (beta)
*--------------------------------------------------------------------------*/




#include "txc_platform.h"
#include "txc_envoy_mem_map.h"




/*********************************************************************************************************

 === Envoy-CE2/CE4 MAC Reg map                                                                     

**********************************************************************************************************
 * Globals  Constants

Note 1: All addresses herein are 32-bit word addressable
Therefore, in order to determine the associated byte-word addresses
encountered in the Data Sheet, one has to multiply it by 4.
Say, the first address below (0x01000) corresponds to register 
0x04000 in the Data Sheet.

Note 2: The heading of addresses presented by columns, as in  
macCfgOffset below, represents the port number per row. 
For example, the column (3.11.19.27) reads:

- offset of port  3 is 0x010C0
- offset of port 11 is 0x012C0
- offset of port 19 is 0x014C0
- offset of port 27 is 0x016C0

 *********************************************************************************************************/


TXC_REG_32 macCfgOffset[ENVOY_CE4_NUM_MACS] =
{                                                                                                          /*
MAC port   0.8.16.24  1.9.17.25  2.10.18.26  3.11.19.27  4.12.20.28   5.13.21.29  6.14.22.30   7.15.23.31  */
                                                                                                    
            0x01000,   0x01040,   0x01080,    0x010C0,    0x01100,     0x01140,    0x01180,     0x011C0, 
            
            0x01200,   0x01240,   0x01280,    0x012C0,    0x01300,     0x01340,    0x01380,     0x013C0,
        
            0x01400,   0x01440,   0x01480,    0x014C0,    0x01500,     0x01540,    0x01580,     0x015C0,

            0x01600,   0x01640,   0x01680,    0x016C0,    0x01700,     0x01740,    0x01780,     0x017C0
};




/* Note: the "macCtrl" registers below are beyond the actual MAC. 
However,  they are still within the Ethernet Block Interface */

TXC_REG_32 macPktCtrlOffset[ENVOY_CE4_NUM_MACS] =
{                                                                                                          /*
MAC port   0.8.16.24  1.9.17.25  2.10.18.26  3.11.19.27  4.12.20.28   5.13.21.29  6.14.22.30   7.15.23.31  */
            0x01020,   0x01060,   0x010A0,    0x010E0,    0x01120,     0x01160,    0x011A0,     0x011E0,

            0x01220,   0x01260,   0x012A0,    0x012E0,    0x01320,     0x01360,    0x013A0,     0x013E0,

            0x01420,   0x01460,   0x014A0,    0x014E0,    0x01520,     0x01560,    0x015A0,     0x015E0,

            0x01620,   0x01660,   0x016A0,    0x016E0,    0x01720,     0x01760,    0x017A0,     0x017E0
};




TXC_REG_32 macRxCntOffset[ENVOY_CE4_NUM_MACS] =
{                                                                                                          /*
MAC port   0.8.16.24  1.9.17.25  2.10.18.26  3.11.19.27  4.12.20.28   5.13.21.29  6.14.22.30   7.15.23.31  */
            0x01800,   0x01840,   0x01880,    0x018C0,    0x01900,     0x01940,    0x01980,     0x019C0,

            0x01A00,   0x01A40,   0x01A80,    0x01AC0,    0x01B00,     0x01B40,    0x01B80,     0x01BC0,

            0x01C00,   0x01C40,   0x01C80,    0x01CC0,    0x01D00,     0x01D40,    0x01D80,     0x01DC0,

            0x01E00,   0x01E40,   0x01E80,    0x01EC0,    0x01F00,     0x01F40,    0x01F80,     0x01FC0
};




TXC_REG_32 macTxCntOffset[ENVOY_CE4_NUM_MACS] =
{                                                                                                          /*
MAC port   0.8.16.24  1.9.17.25  2.10.18.26  3.11.19.27  4.12.20.28   5.13.21.29  6.14.22.30   7.15.23.31  */
            0x01816,   0x01856,   0x01896,    0x018D6,    0x01916,     0x01956,    0x01996,     0x019D6,

            0x01A16,   0x01A56,   0x01A96,    0x01AD6,    0x01B16,     0x01B56,    0x01B96,     0x01BD6,

            0x01C16,   0x01C56,   0x01C96,    0x01CD6,    0x01D16,     0x01D56,    0x01D96,     0x01DD6,

            0x01E16,   0x01E56,   0x01E96,    0x01ED6,    0x01F16,     0x01F56,    0x01F96,     0x01FD6
};




TXC_REG_32 iFifoCmacFcOffset[ENVOY_MAX_NUM_CMACS] =
{                                                 /*
CMAC ID       0        1.       2         3        */
            0x9E3,   0x9E5,   0x9E7,    0x9E9
};

⌨️ 快捷键说明

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