wdenk | 2ebee31 | 2004-02-23 19:30:57 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2003 IMMS gGmbH <www.imms.de> |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or |
| 5 | * modify it under the terms of the GNU General Public License as |
| 6 | * published by the Free Software Foundation; either version 2 of |
| 7 | * the License, or (at your option) any later version. |
| 8 | * |
| 9 | * This program is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | * GNU General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU General Public License |
| 15 | * along with this program; if not, write to the Free Software |
| 16 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
| 17 | * MA 02111-1307 USA |
| 18 | * |
| 19 | * author(s): Thomas Elste, <info@elste.org> |
| 20 | */ |
| 21 | |
| 22 | #include <asm/types.h> |
| 23 | #include <config.h> |
| 24 | |
| 25 | #ifdef CONFIG_DRIVER_NETARMETH |
| 26 | |
| 27 | #define SET_EADDR(ad,val) *(volatile unsigned int*)(ad + NETARM_ETH_MODULE_BASE) = val |
| 28 | #define GET_EADDR(ad) (*(volatile unsigned int*)(ad + NETARM_ETH_MODULE_BASE)) |
| 29 | |
| 30 | #define NA_MII_POLL_BUSY_DELAY 900 |
| 31 | |
| 32 | /* MII negotiation timeout value |
| 33 | 500 jiffies = 5 seconds */ |
| 34 | #define NA_MII_NEGOTIATE_DELAY 30 |
| 35 | |
| 36 | /* Registers in the physical layer chip */ |
| 37 | #define MII_PHY_CONTROL 0 |
| 38 | #define MII_PHY_STATUS 1 |
| 39 | #define MII_PHY_ID 2 |
| 40 | #define MII_PHY_AUTONEGADV 4 |
| 41 | |
| 42 | #endif /* CONFIG_DRIVER_NETARMETH */ |