📄 eth400.inc
字号:
;****************************************************************************;*;* Copyright (C) 2003 Dallas Semiconductor Corporation. ;* All rights Reserved. Printed in U.S.A.;* This software is protected by copyright laws of;* the United States and of foreign countries.;* This material may also be protected by patent laws of the United States ;* and of foreign countries.;* This software is furnished under a license agreement and/or a;* nondisclosure agreement and may only be used or copied in accordance;* with the terms of those agreements.;* The mere transfer of this software does not imply any licenses;* of trade secrets, proprietary technology, copyrights, patents,;* trademarks, maskwork rights, or any other form of intellectual;* property whatsoever. Dallas Semiconductor retains all ownership rights.;*;* Module Name: DS80C400 Ethernet Driver;*;* Filename: eth400.inc;*;****************************************************************************; Define how the buffer is partitionedETH_SEND_BUFFER EQU 0fff700hETH_TRANSMIT_PAGE EQU 17h ; (Send buffer - 0ffe000h) >> 8; CSR registersCSR_MAC_CTRL EQU 000H ; MAC controlCSR_MAC_HI EQU 004H ; MAC address highCSR_MAC_LO EQU 008H ; MAC address lowCSR_MCAST_HI EQU 00CH ; Multicast address high registerCSR_MCAST_LO EQU 010H ; Multicast address low registerCSR_MII_ADDR EQU 014H ; MII address registerCSR_MII_DATA EQU 018H ; MII data registerCSR_FLOW_CTRL EQU 01CH ; Flow control registerCSR_VLAN1_TAG EQU 020H ; VLAN1 tag registerCSR_VLAN2_TAG EQU 024H ; VLAN2 tag registerCSR_WAKEUP EQU 028H ; Wake-Up frame filter register; BCU commandsBCU_NOP EQU 000H ; No operationBCU_INV_CURR EQU 002H ; Invalidate current receive packetBCU_FLUSH_RCV EQU 003H ; Flush receive bufferBCU_XMIT EQU 004H ; Transmit request - normalBCU_XMIT_NOPAD EQU 005H ; Transmit request - no paddingBCU_XMIT_NOCRC EQU 006H ; Transmit request - add CRC disableBCU_WRITE_CSR EQU 008H ; Write CSRBCU_READ_CSR EQU 009H ; Read CSRBCU_ENABLE_SLEEP EQU 00CH ; Enable sleep modeBCU_DISABLE_SLEEP EQU 00DH ; Disable sleeop mode; BCU registerBCUC_BUSY_BIT EQU 80h ; Busy bitDS400_RCVBUF EQU 0ffe000h; PHY MII management register set (IEE 802.3 sec 22.2.4)MII_CONTROL equ 0MII_STATUS equ 1MII_PHY_ID_HI equ 2MII_PHY_ID_LO equ 3MII_AUTONEG_ADV equ 4MII_AUTONEG_LPB equ 5MII_AUTONEG_EXP equ 6MII_AUTONEG_NPT equ 7MII_AUTONEG_LPR equ 8MII_MS_CONTROL equ 9MII_MS_STATUS equ 10MII_EXTSTATUS equ 15MII_MAX_PHY equ 32
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -