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

📄 dpx_hw.h

📁 交换机中常用芯片链路复用7350的驱动源代码(vxworks中实现)
💻 H
字号:
/******************************************************************************/
/**  COPYRIGHT (C) 1999 PMC-SIERRA, INC. ALL RIGHTS RESERVED.                **/
/**--------------------------------------------------------------------------**/
/** This software embodies materials and concepts which are proprietary and  **/
/** confidential to PMC-Sierra, Inc.                                         **/
/** PMC-Sierra distributes this software to its customers pursuant to the    **/ 
/** terms and conditions of the Device Driver Software License Agreement     **/ 
/** contained in the text file software.lic that is distributed along with   **/ 
/** the device driver software. This software can only be utilized if all    **/ 
/** terms and conditions of the Device Driver Software License Agreement are **/ 
/** accepted. If there are any questions, concerns, or if the Device Driver  **/
/** Software License Agreement text file, software.lic, is missing please    **/
/** contact PMC-Sierra for assistance.                                       **/
/**--------------------------------------------------------------------------**/
/**                                                                          **/
/******************************************************************************/
/*******************************************************************************
**    MODULE     : Duplex  header file related to hardware interface
**
**    FILE       : Dpx_hwif.h
**      
**    DESCRIPTION: This file contains hardware interface
**                 specific definitions.
**
**
**    NOTES      :
**
*******************************************************************************/
/* 
**    MODIFICATION HISTORY:
**
** $Log: dpx_hw.h.rca $
** 
**  Revision: 1.1 Wed Aug 16 16:22:12 2000 bhalwani
**    Beta-1.0
**
** 
**  5   06/15/00    Bhalwani        Vortex chipset driver beta-1.0
**  4   06/15/00    Bhalwani        Vortex chipset driver Alpha-1.30
**  3   03/10/00    chenkemi        modified sysVcsRead8() definition
**  2   02/07/00    chenkemi        alpha-001
**  1   06/16/99    chenkemi        Initial Version
**
**  7   06/16/99    chenkemi        Beta-1.0
**  6   06/16/99    chenkemi        moved in DPX_MAX_CELL_INSERT_RETRIES from dpx.h.
**  5   05/27/99    chenkemi        Re-organized header files
**  4   05/25/99    chenkemi        code cleanup after code review
**  3   04/21/99    chenkemi        changed DPX_MEM_ADDR_RANGE to 0x800
**  2   03/26/99    chenkemi        re-organized the header file.
**  1   03/02/99    chenkemi        Initial Version
**
*/


#ifndef _DPX_HWIF_H
#define _DPX_HWIF_H

#include "..\..\vcsdrv\inc\vcs_hw.h"

/* the following define the 3 Reference Clock delay loops. The number should
   be tested on a specified target system, also depends on system CPU clock */
#define DUPLEX_3REFCLK_DELAY_LOOPS  0x100

/** defines retry number of polling loops for Insert Cell Ready bit **/
#define DPX_MAX_CELL_INSERT_RETRIES    100  /* in millisecond */


#define DPX_MEM_ADDR_RANGE 	0x800 /* 2 K */

#define DPX_ADAPTER_MAX_UNITS    PMC_ADAPTER_MAX_UNITS
#define DPX_ADAPTER_MAX_DEVS     1 /* per adapter */
#define DPX_ADAPTER_PCI_HANDLE   PMC_ADAPTER_PCI_HANDLE

/*----------------------------------------------------------------------------*/
/* Macro:       sysDuplexRawRead                                             */
/*                                                                            */
/* Description:	Low-level system specific macro that can be used to read the  */
/*              contents of a specific address location. This macro should be */
/*              defined by the user to reflect their system's addressing      */
/*              logic.                                                        */
/*                                                                            */
/* Inputs:	    addr : address location to be read                            */
/* Outputs: 	val  : value read from the register                           */
/*                                                                            */
/* Return Codes	value read from the address location                          */
/*                                                                            */
/*----------------------------------------------------------------------------*/
#define sysDuplexRawRead(addr,val) (val = sysVcsRawRead8(addr))	


/*----------------------------------------------------------------------------*/
/* Macro:       sysDuplexRawWrite                                            */
/*                                                                            */
/* Description:	Low-level system specific macro that can be used to write the */
/*              contents of a specific address location. This macro should be */
/*              defined by the user to reflect their system's addressing      */
/*              logic.                                                        */
/*                                                                            */
/* Inputs:	    addr : address location to be write                           */
/*              val    :  value to be written (UINT1)                         */
/* Outputs: 	None                                                          */
/*                                                                            */
/* Return       NONE                                                          */
/*                                                                            */
/*----------------------------------------------------------------------------*/
#define sysDuplexRawWrite(addr,val) sysVcsRawWrite8(addr,val)



 /** dpx_hw.c **/
INT4 sysDuplexDeviceDetect(DPX_USR_CTXT usrCtxt, VOID **ppSysInfo,
                           UINT4 *pu4BaseAddr);


#endif

⌨️ 快捷键说明

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