1/****************************************************************************** 2 * 3 * Filename: emac.h 4 * 5 * Definition of routine to set the MAC address. 6 * 7 * Revision information: 8 * 9 * 28AUG2004 kb_admin initial creation 10 * 11 * BEGIN_KBDD_BLOCK 12 * No warranty, expressed or implied, is included with this software. It is 13 * provided "AS IS" and no warranty of any kind including statutory or aspects 14 * relating to merchantability or fitness for any purpose is provided. All 15 * intellectual property rights of others is maintained with the respective 16 * owners. This software is not copyrighted and is intended for reference 17 * only. 18 * END_BLOCK 19 * |
20 * $FreeBSD: head/sys/boot/arm/at91/libat91/emac.h 161370 2006-08-16 23:39:58Z imp $ |
21 *****************************************************************************/ 22 23 24#ifndef _EMAC_H_ 25#define _EMAC_H_ 26 |
27extern void EMAC_SetMACAddress(unsigned char addr[6]); |
28extern void SetServerIPAddress(unsigned address); 29extern void SetLocalIPAddress(unsigned address); 30extern void EMAC_Init(void); 31extern void TFTP_Download(unsigned address, char *filename); 32 33#define MAX_RX_PACKETS 8 34#define RX_PACKET_SIZE 1536 35#define RX_BUFFER_START 0x21000000 --- 86 unchanged lines hidden (view full) --- 122#else 123#define MII_SPEC_STS_REG 0x11 124#define MII_SSTS_100FDX 0x8000 125#define MII_SSTS_100HDX 0x4000 126#define MII_SSTS_10FDX 0x2000 127#define MII_SSTS_10HDX 0x1000 128#endif 129 |
130extern unsigned char localMACAddr[6]; 131extern unsigned localMAClow, localMAChigh; 132extern unsigned localMACSet, serverMACSet; 133extern receive_descriptor_t *p_rxBD; 134extern unsigned lastSize; 135extern unsigned localIPSet, serverIPSet; 136extern unsigned short serverPort, localPort; 137 |
138#endif /* _EMAC_H_ */ |