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 164137 2006-11-09 20:32:36Z 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); --- 80 unchanged lines hidden (view full) --- 109#define TFTP_WRQ_OPCODE 0x0200 110#define TFTP_DATA_OPCODE 0x0300 111#define TFTP_ACK_OPCODE 0x0400 112#define TFTP_ERROR_OPCODE 0x0500 113 114/* MII registers definition */ 115#define MII_STS_REG 0x01 116#define MII_STS_LINK_STAT 0x04 |
117#ifdef BOOT_KB920X |
118#define MII_STS2_REG 0x11 119#define MII_STS2_LINK 0x400 120#define MII_STS2_100TX 0x4000 121#define MII_STS2_FDX 0x200 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; 133#define EMAC_Init() 134 135#endif /* _EMAC_H_ */ |