1 /* Blackfin Ethernet Media Access Controller (EMAC) model.
3 Copyright (C) 2010-2014 Free Software Foundation, Inc.
4 Contributed by Analog Devices, Inc.
6 This file is part of simulators.
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 3 of the License, or
11 (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program. If not, see <http://www.gnu.org/licenses/>. */
21 #ifndef DV_BFIN_EMAC_H
22 #define DV_BFIN_EMAC_H
24 /* EMAC_OPMODE Masks */
30 /* EMAC_STAADD Masks */
31 #define STABUSY (1 << 0)
32 #define STAOP (1 << 1)
33 #define STADISPRE (1 << 2)
34 #define STAIE (1 << 3)
36 #define REGAD_MASK (0x1f << REGAD_SHIFT)
37 #define REGAD(val) (((val) & REGAD_MASK) >> REGAD_SHIFT)
38 #define PHYAD_SHIFT 11
39 #define PHYAD_MASK (0x1f << PHYAD_SHIFT)
40 #define PHYAD(val) (((val) & PHYAD_MASK) >> PHYAD_SHIFT)
42 /* EMAC_SYSCTL Masks */
43 #define PHYIE (1 << 0)
44 #define RXDWA (1 << 1)
45 #define RXCKS (1 << 2)
46 #define TXDWA (1 << 4)
48 /* EMAC_RX_STAT Masks */
49 #define RX_FRLEN 0x7ff
50 #define RX_COMP (1 << 12)
51 #define RX_OK (1 << 13)
52 #define RX_ACCEPT (1 << 31)
54 /* EMAC_TX_STAT Masks */
55 #define TX_COMP (1 << 0)
56 #define TX_OK (1 << 1)
This page took 0.030988 seconds and 4 git commands to generate.