亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? ne2000hw.h

?? 這個是嵌入式arm系列的一個bootloader程序。對需要編寫bootloader的很有參考價值
?? H
字號:
//
// Copyright (c) Microsoft Corporation.  All rights reserved.
//
//
// Use of this source code is subject to the terms of the Microsoft end-user
// license agreement (EULA) under which you licensed this SOFTWARE PRODUCT.
// If you did not accept the terms of the EULA, you are not authorized to use
// this source code. For a copy of the EULA, please see the LICENSE.RTF on your
// install media.
//
/*++


Module Name:

    ne2000hw.h

--*/

#ifndef _NE2000HARDWARE_
#define _NE2000HARDWARE_


//
// Offsets from Adapter->IoPAddr of the ports used to access
// the 8390 NIC registers.
//
// The names in parenthesis are the abbreviations by which
// the registers are referred to in the 8390 data sheet.
//
// Some of the offsets appear more than once
// because they have have relevant page 0 and page 1 values,
// or they are different registers when read than they are
// when written. The notation MSB indicates that only the
// MSB can be set for this register, the LSB is assumed 0.
//

#define NIC_COMMAND         0x0     // (CR)
#define NIC_PAGE_START      0x1     // (PSTART)   MSB, write-only
#define NIC_PHYS_ADDR       0x1     // (PAR0)     page 1
#define NIC_PAGE_STOP       0x2     // (PSTOP)    MSB, write-only
#define NIC_BOUNDARY        0x3     // (BNRY)     MSB
#define NIC_XMIT_START      0x4     // (TPSR)     MSB, write-only
#define NIC_XMIT_STATUS     0x4     // (TSR)      read-only
#define NIC_XMIT_COUNT_LSB  0x5     // (TBCR0)    write-only
#define NIC_XMIT_COUNT_MSB  0x6     // (TBCR1)    write-only
#define NIC_FIFO            0x6     // (FIFO)     read-only
#define NIC_INTR_STATUS     0x7     // (ISR)
#define NIC_CURRENT         0x7     // (CURR)     page 1
#define NIC_MC_ADDR         0x8     // (MAR0)     page 1
#define NIC_CRDA_LSB        0x8     // (CRDA0)
#define NIC_RMT_ADDR_LSB    0x8     // (RSAR0)
#define NIC_CRDA_MSB        0x9     // (CRDA1)
#define NIC_RMT_ADDR_MSB    0x9     // (RSAR1)
#define NIC_RMT_COUNT_LSB   0xa     // (RBCR0)    write-only
#define NIC_RMT_COUNT_MSB   0xb     // (RBCR1)    write-only
#define NIC_RCV_CONFIG      0xc     // (RCR)      write-only
#define NIC_RCV_STATUS      0xc     // (RSR)      read-only
#define NIC_XMIT_CONFIG     0xd     // (TCR)      write-only
#define NIC_FAE_ERR_CNTR    0xd     // (CNTR0)    read-only
#define NIC_DATA_CONFIG     0xe     // (DCR)      write-only
#define NIC_CRC_ERR_CNTR    0xe     // (CNTR1)    read-only
#define NIC_INTR_MASK       0xf     // (IMR)      write-only
#define NIC_MISSED_CNTR     0xf     // (CNTR2)    read-only
#define NIC_RACK_NIC        0x10    // Byte to read or write
#define NIC_RESET           0x1f    // (RESET)


//
// Constants for the NIC_COMMAND register.
//
// Start/stop the card, start transmissions, and select
// which page of registers was seen through the ports.
//

#define CR_STOP         (UCHAR)0x01        // reset the card
#define CR_START        (UCHAR)0x02        // start the card
#define CR_XMIT         (UCHAR)0x04        // begin transmission
#define CR_NO_DMA       (UCHAR)0x20        // stop remote DMA

#define CR_PS0          (UCHAR)0x40        // low bit of page number
#define CR_PS1          (UCHAR)0x80        // high bit of page number
#define CR_PAGE0        (UCHAR)0x00        // select page 0
#define CR_PAGE1        CR_PS0             // select page 1
#define CR_PAGE2        CR_PS1             // select page 2

#define CR_DMA_WRITE    (UCHAR)0x10        // Write
#define CR_DMA_READ     (UCHAR)0x08        // Read
#define CR_SEND         (UCHAR)0x18        // send


//
// Constants for the NIC_XMIT_STATUS register.
//
// Indicate the result of a packet transmission.
//

#define TSR_XMIT_OK     (UCHAR)0x01        // transmit with no errors
#define TSR_COLLISION   (UCHAR)0x04        // collided at least once
#define TSR_ABORTED     (UCHAR)0x08        // too many collisions
#define TSR_NO_CARRIER  (UCHAR)0x10        // carrier lost
#define TSR_NO_CDH      (UCHAR)0x40        // no collision detect heartbeat


//
// Constants for the NIC_INTR_STATUS register.
//
// Indicate the cause of an interrupt.
//

#define ISR_EMPTY       (UCHAR)0x00        // no bits set in ISR
#define ISR_RCV         (UCHAR)0x01        // packet received with no errors
#define ISR_XMIT        (UCHAR)0x02        // packet transmitted with no errors
#define ISR_RCV_ERR     (UCHAR)0x04        // error on packet reception
#define ISR_XMIT_ERR    (UCHAR)0x08        // error on packet transmission
#define ISR_OVERFLOW    (UCHAR)0x10        // receive buffer overflow
#define ISR_COUNTER     (UCHAR)0x20        // MSB set on tally counter
#define ISR_DMA_DONE    (UCHAR)0x40        // RDC
#define ISR_RESET       (UCHAR)0x80        // (not an interrupt) card is reset


//
// Constants for the NIC_RCV_CONFIG register.
//
// Configure what type of packets are received.
//

#define RCR_REJECT_ERR  (UCHAR)0x00        // reject error packets
#define RCR_BROADCAST   (UCHAR)0x04        // receive broadcast packets
#define RCR_MULTICAST   (UCHAR)0x08        // receive multicast packets
#define RCR_ALL_PHYS    (UCHAR)0x10        // receive ALL directed packets
#define RCR_MONITOR     (UCHAR)0x20        // don't collect packets


//
// Constants for the NIC_RCV_STATUS register.
//
// Indicate the status of a received packet.
//
// These are also used to interpret the status byte in the
// packet header of a received packet.
//

#define RSR_PACKET_OK   (UCHAR)0x01        // packet received with no errors
#define RSR_CRC_ERROR   (UCHAR)0x02        // packet received with CRC error
#define RSR_MULTICAST   (UCHAR)0x20        // packet received was multicast
#define RSR_DISABLED    (UCHAR)0x40        // received is disabled
#define RSR_DEFERRING   (UCHAR)0x80        // receiver is deferring


//
// Constants for the NIC_XMIT_CONFIG register.
//
// Configures how packets are transmitted.
//

#define TCR_NO_LOOPBACK (UCHAR)0x00        // normal operation
#define TCR_LOOPBACK    (UCHAR)0x02        // loopback (set when NIC is stopped)

#define TCR_INHIBIT_CRC (UCHAR)0x01        // inhibit appending of CRC

#define TCR_NIC_LBK     (UCHAR)0x02        // loopback through the NIC
#define TCR_SNI_LBK     (UCHAR)0x04        // loopback through the SNI
#define TCR_COAX_LBK    (UCHAR)0x06        // loopback to the coax


//
// Constants for the NIC_DATA_CONFIG register.
//
// Set data transfer sizes.
//

#define DCR_BYTE_WIDE   (UCHAR)0x00        // byte-wide DMA transfers
#define DCR_WORD_WIDE   (UCHAR)0x01        // word-wide DMA transfers

#define DCR_LOOPBACK    (UCHAR)0x00        // loopback mode (TCR must be set)
#define DCR_NORMAL      (UCHAR)0x08        // normal operation

#define DCR_FIFO_2_BYTE (UCHAR)0x00        // 2-byte FIFO threshhold
#define DCR_FIFO_4_BYTE (UCHAR)0x20        // 4-byte FIFO threshhold
#define DCR_FIFO_8_BYTE (UCHAR)0x40        // 8-byte FIFO threshhold
#define DCR_FIFO_12_BYTE (UCHAR)0x60       // 12-byte FIFO threshhold
#define DCR_AUTO_INIT   (UCHAR)0x10        // Auto-init to remove packets from ring


//
// Constants for the NIC_INTR_MASK register.
//
// Configure which ISR settings actually cause interrupts.
//
#define IMR_RCV         (UCHAR)0x01        // packet received with no errors
#define IMR_XMIT        (UCHAR)0x02        // packet transmitted with no errors
#define IMR_RCV_ERR     (UCHAR)0x04        // error on packet reception
#define IMR_XMIT_ERR    (UCHAR)0x08        // error on packet transmission
#define IMR_OVERFLOW    (UCHAR)0x10        // receive buffer overflow
#define IMR_COUNTER     (UCHAR)0x20        // MSB set on tally counter
                          
////////////////////////////////////////////////////////////////////////////
//
//  8390 registers and other adapter specific constants
//
////////////////////////////////////////////////////////////////////////////

#define MAX_FRAME_SIZE 1514
#define MIN_FRAME_SIZE 60
#define RCV_BLK_SIZE 256
#define MAX_LOOKAHEAD_LENGTH 256
#define NIC_HEADER_LEN 4

// Network Interface Controller	commands.
#define NIC_Transmit		0x26
#define NIC_MaskByte		0x00
#define NIC_UnMaskByte		0x1f
#define NIC_PacketReady 	0x15
#define NIC_TxComplete		0x0a
#define NIC_Page0		0x22
#define NIC_Page1		0x62
#define NIC_Page1Stop		0x61
#define NIC_ReceiveConfigValue	0x0e
#define NIC_RemoteDmaComplete	0x40
#define NIC_RemoteDmaWr 	0x12
#define NIC_AbortDmaWr		0x32
#define NIC_AbortDmaRd		0x2a
#define NIC_RemoteDmaRd 	0x0a
#define NIC_AbortDmaStop	0x21
#define NIC_AbortDmaWarmStop	0x23


// Command Register
#define NIC_CMD_STOP		0x01
#define NIC_CMD_START		0x02
#define NIC_CMD_XMIT		0x04
#define NIC_CMD_READ		0x08
#define NIC_CMD_WRITE		0x10
#define NIC_CMD_SEND		0x18
#define NIC_CMD_ABORT		0x20
#define NIC_CMD_PAGE0		0x00
#define NIC_CMD_PAGE1		0x40
#define NIC_CMD_PAGE2		0x80

// Receive Configuration Register masks
#define NIC_RECEIVE_ERR_PACKETS	0x01
#define NIC_RECEIVE_RUNTS	0x02
#define NIC_RECEIVE_BROADCAST	0x04
#define NIC_RECEIVE_MULTICAST	0x08
#define NIC_RECEIVE_PHYS	0x10
#define NIC_RECEIVE_MONITOR_MODE 0x20

// Receive Status Register masks (also packet header receive status)
#define NIC_RCV_STAT_OK 	0x01
#define NIC_RCV_STAT_CRC	0x02
#define NIC_RCV_STAT_ALIGN	0x04
#define NIC_RCV_STAT_FIFO	0x08
#define NIC_RCV_STAT_MISSED	0x10
#define NIC_RCV_STAT_MC_BC	0x20
#define NIC_RCV_STAT_DISABLED	0x40
#define NIC_RCV_STAT_DEFERRING	0x80

// Data Configuration Register masks
#define NIC_DCR_FIFO		0x40	// 8 bytes
// #define NIC_DCR_FIFO		0x00	// 2 bytes
// #define NIC_DCR_FIFO		0x60	// 12 bytes
#define NIC_DCR_AUTO_INIT	0x10
#define NIC_DCR_NORMAL		0x08
#define NIC_DCR_WORD_XFER	0x01

// Transmit Configuration Register masks
#define NIC_TCR_NORMAL		0x00
#define NIC_TCR_LOOPBACK1	0x02	// loopback mode 1

// Interrupt Status Register
#define NIC_ISR_PACKET_RCVD	    0x01
#define NIC_ISR_PACKET_XMITD	    0x02
#define NIC_ISR_RCV_ERR		    0x04
#define NIC_ISR_XMIT_ERR	    0x08
#define NIC_ISR_OVERWRITE	    0x10
#define NIC_ISR_COUNTER_OVERFLOW    0x20
#define NIC_ISR_DMA_COMPLETE	    0x40
#define NIC_ISR_RESET_STATUS	    0x80
#define NIC_ISR_MOREWORK    NIC_ISR_PACKET_XMITD | NIC_ISR_PACKET_RCVD | \
			    NIC_ISR_OVERWRITE | NIC_ISR_XMIT_ERR

// Transmit status register
#define NIC_TSR_SUCCESS     0x01
#define NIC_TSR_COLLIDED    0x04
#define NIC_TSR_ABORTED     0x08
#define NIC_TSR_NO_CARRIER  0x10    // carrier sense lost
#define NIC_TSR_UNDERRUN    0x20

#define NUM_MC_REG 8      
                    
#ifdef UNDER_CE
// Defs for debug LEDs.  Add an offset so we can easily filter on adapter LED writes
// Defs for WriteDebugLED
VOID SC_WriteDebugLED(WORD wIndex, DWORD dwPattern);
#define EDBG_DEBUGLED(offset, value)  /*((void)((EdbgDebugZone&ZONE_LEDS)? */ SC_WriteDebugLED(offset,value)  // ,1:0))

#define ADAPTER_OFFSET  (0x100/4)

#define LED_GETFRAME_ENTRY    (ADAPTER_OFFSET+1)
#define LED_GETFRAME_EXIT     (ADAPTER_OFFSET+2)
#define LED_SENDFRAME_ENTRY   (ADAPTER_OFFSET+3)
#define LED_SENDFRAME_EXIT    (ADAPTER_OFFSET+4)
#define LED_COPY              (ADAPTER_OFFSET+5)
#define LED_PKTLEN            (ADAPTER_OFFSET+6)
#define LED_OVERRUN           (ADAPTER_OFFSET+7)
#else
#define EDBG_DEBUGLED(offset, value)  
#endif // UNDER_CE

                          
#endif // _NE2000HARDWARE_

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人久久视频在线观看| 26uuu成人网一区二区三区| 欧美午夜精品一区二区三区| 日韩女优制服丝袜电影| 亚洲女同ⅹxx女同tv| 六月丁香综合在线视频| 色婷婷一区二区| 国产农村妇女精品| 久久国产精品区| 在线看日本不卡| 亚洲国产精品ⅴa在线观看| 免费精品视频在线| 精品视频色一区| 国产精品青草综合久久久久99| 蜜桃av噜噜一区| 欧美午夜电影网| 亚洲色欲色欲www| 国产在线一区二区综合免费视频| 欧美亚洲国产一区在线观看网站 | 国产无遮挡一区二区三区毛片日本 | 亚洲国产一区二区视频| 国产91丝袜在线18| www成人在线观看| 久久99国产精品成人| 欧美精品在线一区二区三区| 亚洲精品福利视频网站| av电影在线观看一区| 国产精品久久久久毛片软件| 国产成人av电影在线播放| 久久伊人蜜桃av一区二区| 精品亚洲成a人| 久久综合狠狠综合久久综合88| 免费黄网站欧美| 2019国产精品| 国产电影一区在线| 国产欧美一区二区精品性色| 国产精品一二二区| 国产农村妇女精品| 国产精品 欧美精品| 国产精品黄色在线观看| 99热这里都是精品| 亚洲精品乱码久久久久久久久 | 国产精品亚洲一区二区三区在线| 精品卡一卡二卡三卡四在线| 国产资源在线一区| 国产女主播在线一区二区| 97精品视频在线观看自产线路二| 亚洲麻豆国产自偷在线| 91久久精品网| 日本在线不卡视频| 欧美精品一区二区久久久| 国产乱子轮精品视频| 国产精品丝袜一区| 欧美婷婷六月丁香综合色| 婷婷中文字幕一区三区| 欧美电视剧免费全集观看| 国产精品综合在线视频| 玉足女爽爽91| 日韩美女在线视频| 成人午夜伦理影院| 日韩国产欧美一区二区三区| 国产免费观看久久| 欧美日韩精品一区二区三区蜜桃| 久久se这里有精品| 亚洲视频免费看| 日韩一级二级三级精品视频| 成人免费高清视频| 日韩不卡一区二区三区| 亚洲国产高清不卡| 6080日韩午夜伦伦午夜伦| 国产**成人网毛片九色| 亚洲va国产天堂va久久en| 久久久91精品国产一区二区三区| 91免费视频观看| 国模大尺度一区二区三区| 亚洲免费资源在线播放| 久久亚洲春色中文字幕久久久| 在线视频国内一区二区| 国产成人精品aa毛片| 图片区小说区区亚洲影院| 国产精品乱码妇女bbbb| 日韩三级伦理片妻子的秘密按摩| 91视视频在线观看入口直接观看www | 欧美午夜电影网| 成人性生交大片| 精品一区二区三区在线播放| 一区二区三区**美女毛片| 久久精品视频网| 91精品国产福利| 在线观看免费亚洲| 成人午夜又粗又硬又大| 久久www免费人成看片高清| 亚洲一二三四在线观看| 国产精品私人影院| 久久久精品影视| 精品国产成人系列| 6080国产精品一区二区| 欧美手机在线视频| 色综合天天做天天爱| 欧美精品日韩精品| 99久久精品国产精品久久| 国产乱码字幕精品高清av| 免费观看成人鲁鲁鲁鲁鲁视频| 亚洲一区二区三区美女| 亚洲欧美在线高清| 久久这里都是精品| 日韩片之四级片| 欧美一区二区视频网站| 51精品国自产在线| 欧美喷水一区二区| av高清久久久| 成人app在线观看| 成人18视频日本| 99热这里都是精品| jizzjizzjizz欧美| www.综合网.com| 成人高清视频在线| 成人午夜免费电影| 成人福利视频在线看| 99国内精品久久| 96av麻豆蜜桃一区二区| 欧美中文字幕一二三区视频| 91福利精品第一导航| 欧美日本韩国一区二区三区视频| 欧美日韩一区二区不卡| 欧美一区二区三区系列电影| 欧美一区二区黄| 久久这里只精品最新地址| 欧美经典一区二区| 综合在线观看色| 亚洲一区二区视频| 蜜臀a∨国产成人精品| 狠狠色丁香久久婷婷综合_中 | 欧洲av一区二区嗯嗯嗯啊| 欧美日韩第一区日日骚| 日韩精品资源二区在线| 久久久亚洲精华液精华液精华液| 国产精品久久久久桃色tv| 亚洲午夜免费电影| 精东粉嫩av免费一区二区三区| 成人性视频免费网站| 欧美日韩五月天| 久久免费看少妇高潮| 亚洲综合一二三区| 九九九久久久精品| 色综合天天综合| 日韩欧美一区在线观看| 中文字幕亚洲区| 免费在线一区观看| 99久久99精品久久久久久| 欧美福利电影网| 国产精品久久久久影院| 手机精品视频在线观看| 成人激情综合网站| 日韩一级片在线观看| 一区二区三区中文字幕在线观看| 日本欧美大码aⅴ在线播放| 成人精品免费网站| 91精品久久久久久久99蜜桃| 中文字幕 久热精品 视频在线| 亚洲一区二区三区四区在线免费观看 | 亚洲视频电影在线| 麻豆精品久久精品色综合| 97久久久精品综合88久久| 精品久久久久99| 亚洲综合免费观看高清完整版在线| 国内不卡的二区三区中文字幕| 欧美视频在线观看一区二区| 国产欧美视频在线观看| 日本欧美在线看| 欧美美女直播网站| 亚洲同性同志一二三专区| 国产一区二区91| 日韩一区二区高清| 午夜视频在线观看一区二区| av成人免费在线| 国产精品热久久久久夜色精品三区| 日本不卡一区二区| 欧美日韩国产首页在线观看| 亚洲激情成人在线| 成人午夜看片网址| 久久精品一区二区三区不卡| 免费在线成人网| 91精品欧美综合在线观看最新| 亚洲乱码国产乱码精品精的特点| 床上的激情91.| 久久五月婷婷丁香社区| 久久国产精品99精品国产| 欧美精品777| 天堂成人国产精品一区| 91久久国产最好的精华液| 一区二区三区日韩| 色综合久久久久网| 亚洲综合一区二区三区| 色av综合在线| 亚洲国产精品天堂| 欧美无乱码久久久免费午夜一区| 亚洲一区二区av电影| 欧美午夜精品一区二区蜜桃| 亚洲小说春色综合另类电影|