3 * Copyright 2007 Free Software Foundation, Inc.
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 #ifndef INCLUDED_ETH_MAC_REGS_H
20 #define INCLUDED_ETH_MAC_REGS_H
27 volatile int settings;
28 volatile int ucast_hi;
29 volatile int ucast_lo;
30 volatile int mcast_hi;
31 volatile int mcast_lo;
32 volatile int miimoder;
33 volatile int miiaddress;
34 volatile int miitx_data;
35 volatile int miicommand;
36 volatile int miistatus;
37 volatile int miirx_data;
40 // miicommand register
41 #define MIIC_SCANSSTAT (1 << 0) // Scan status
42 #define MIIC_RSTAT (1 << 1) // Read status
43 #define MIIC_WCTRLDATA (1 << 2) // Write control data
46 #define MIIS_LINKFAIL (1 << 0) // The link failed
47 #define MIIS_BUSY (1 << 1) // The MII is busy (operation in progress)
48 #define MIIS_NVALID (1 << 2) // The data in the status register is invalid
49 // This it is only valid when the scan status is active.
51 #endif /* INCLUDED_ETH_MAC_REGS_H */