📄 nc2272db.h
字号:
/******************************************************************************
Copyright (C) 2003, 2004, NetChip Technology, Inc. (http://www.netchip.com)
THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
NC2272DB.H
NetChip NET2272 RDK Daughter Board header file. These constants are extracted
from the NetChip NET2272 Daughterboard specification.
Applicability:
- This file is specific to the NetChip PCI-RDK. It is required when building
firmware programs that run on the NetChip PCI-RDK, but can be removed for
other non-RDK platforms.
******************************************************************************/
///////////////////////////////////////////////////////////////////////////////
#ifndef NC2272DB_H
#define NC2272DB_H
///////////////////////////////////////////////////////////////////////////////
#define EPLD_IO_CONTROL_REGISTER 0x400
// EPLD I/O Control Register bits:
#define NET2272_RESET 0 // When set the reset signal to the NET2272 is asserted
#define BUSWIDTH 1 // Two bits: 00=8 bit, 10=32 bit
#define MPX_MODE 3 //
#define USER 4 //
#define DMA_TIMEOUT_ENABLE 5 //
#define DMA_CTL_DACK 6 //
#define EPLD_DMA_ENABLE 7 //
///////////////////////////////////////////////////////////////////////////////
#define EPLD_DMA_CONTROL_REGISTER 0x800
// EPLD DMA Control Register bits:
#define SPLIT_DMA_MODE 0 // 0:Normal DMA, 1:Split DMA (EPLD DMA controller)
#define SPLIT_DMA_DIRECTION 1 // 0:OUT (Rx), 1:IN (Tx)
#define SPLIT_DMA_ENABLE 2 // 0:Disable Split DMA (EPLD DMA controller), 1:Enable Split DMA
#define SPLIT_DMA_INTERRUPT_ENABLE 3
#define SPLIT_DMA_INTERRUPT 4 // Set to generate dummy PCI readys
#define EPLD_DMA_MODE 5 // Needs to be in sync with LOCCTL1
///////////////////////////////////////////////////////////////////////////////
#define SPLIT_DMA_ADDRESS_LOW 0xc00
///////////////////////////////////////////////////////////////////////////////
#define SPLIT_DMA_ADDRESS_HIGH 0x1000
///////////////////////////////////////////////////////////////////////////////
#define SPLIT_DMA_BYTE_COUNT_LOW 0x1400
///////////////////////////////////////////////////////////////////////////////
#define SPLIT_DMA_BYTE_COUNT_HIGH 0x1800
///////////////////////////////////////////////////////////////////////////////
#define EPLD_REVISION_REGISTER 0x1c00
///////////////////////////////////////////////////////////////////////////////
#define SPLIT_DMA_RAM 0x2000
///////////////////////////////////////////////////////////////////////////////
#define DMA_RAM_SIZE 0x1000
///////////////////////////////////////////////////////////////////////////////
#endif // NC2272DB_H
///////////////////////////////////////////////////////////////////////////////
// End of file
///////////////////////////////////////////////////////////////////////////////
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -