2 * Copyright (C) 2003 IMMS gGmbH <www.imms.de>
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.
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.
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,
19 * author(s): Thomas Elste, <info@elste.org>
22 #include <asm/types.h>
25 #ifdef CONFIG_DRIVER_NETARMETH
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))
30 #define NA_MII_POLL_BUSY_DELAY 900
32 /* MII negotiation timeout value
33 500 jiffies = 5 seconds */
34 #define NA_MII_NEGOTIATE_DELAY 30
36 /* Registers in the physical layer chip */
37 #define MII_PHY_CONTROL 0
38 #define MII_PHY_STATUS 1
40 #define MII_PHY_AUTONEGADV 4
42 #endif /* CONFIG_DRIVER_NETARMETH */