📄 lan91c96dcs.h
字号:
/********************************************************************************** COPYRIGHT (C) 2000, 2001 Intel Corporation.**** This software as well as the software described in it is furnished under ** license and may only be used or copied in accordance with the terms of the ** license. The information in this file is furnished for informational use ** only, is subject to change without notice, and should not be construed as ** a commitment by Intel Corporation. Intel Corporation assumes no ** responsibility or liability for any errors or inaccuracies that may appear ** in this document or any software that may be provided in association with ** this document. ** Except as permitted by such license, no part of this document may be ** reproduced, stored in a retrieval system, or transmitted in any form or by ** any means without the express written consent of Intel Corporation. **** FILENAME: lan91c96DCS.h**** PURPOSE: This header file contains the platform specific definition** for the Device Context Struture.**** LAST MODIFIED: $Modtime: 9/27/01 12:50p $******************************************************************************/#ifndef _lan91c96DCS_h#define _lan91c96DCS_h/********************************************************************************* Driver Context Structure********************************************************************************/#define ISQ_TxEvent 0x1typedef struct LAN91C96_ContextS { UINT32 loggedError; // Error log UINT32 isrError; // Error log PVUINT32 LAN91C96IoP; // I/O space PVUINT32 LAN91C96AttP; // Attribute space UINT16 MACAddress[3]; // MAC Address UINT16 configRegister; // Config Register UINT16 baseAddressRegister; // Base Address UINT16 switches; // Board switches UINT16 revision; // LAN19C96 Rev. UINT timeStamp; // Timestamp UINT deltaTime; // Time delta BOOL setupFlag; // Setup complete BOOL randomMACFlag; // Use random MAC addr. BOOL filterFlag; // Filter packets. BOOL dumpFlag; // Dump header/data BOOL traceFlag; // Display debug info BOOL timeFlag; // Display timestamp UINT16 rxFlag; // Receive flag unsigned long txKey ; // Transmit key address supplied to the send routine UCHAR intMask; // Interrupt mask unsigned long packetSent ; UINT32 event ; UINT32 rxPacketLen ; // Received packet length char *transferBufferP ; // buffer used to transfer data from receive layer of device // to the Redboot layer.} LAN91C96_ContextT;typedef struct DM_NetworkInfo_S{ UINT16 mac[3] ;} DM_NetworkInfo_T ;typedef unsigned char enet_addr_t[6];typedef unsigned short word;typedef struct EthernetHeaderS{ enet_addr_t destination; enet_addr_t source; word frameType;#define ETHERTYPE_IP 0x800#define ETHERTYPE_ARP 0x806#define ETHERTYPE_RARP 0x8053} EthernetHeaderT;#ifdef LAN91C96_GLOBALS#define EXTRN#else#define EXTRN extern#endifEXTRN LAN91C96_ContextT LAN91C96_Context;#endif /* _lan91c96DCS_h */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -