1 /*--------------------------------------------------------------------
4 * TDK 78Q2120 specific ethernet transceiver phy registers (09-18)
6 * Copyright (C) 2004 Microtronix Datacom Ltd
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 2 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 * Apr2004 DGT Microtronix Datacom
20 ---------------------------------------------------------------------*/
26 // Interrupt Control/Status Register
27 #define TDK78_INTCTLSTS_REG 0x11 // Phy Reg17
29 #define TDK78_INTIE_RXER_MASK 0x4000 // Rx error int enable
30 #define TDK78_INTIE_LSCHG_MASK 0x0400 // Link sts chg int enable
31 #define TDK78_INTIE_ANEGDONE_MASK 0x0100 // Auto neg done int enable
32 #define TDK78_INTSTS_RXER_MASK 0x0040 // Rx error (Read clears)
33 #define TDK78_INTSTS_LSCHG_MASK 0x0004 // Link sts chg (Read clears)
34 #define TDK78_INTSTS_ANEGDONE_MASK 0x0001 // Auto neg done (Read clears)
36 // Diagnostic Register
37 #define TDK78_DIAG_REG 0x12 // Phy Reg18
39 #define TDK78_DIAG_ANEGFAIL_MASK 0x1000 // Auto neg failed (Read clears)
40 #define TDK78_DIAG_FDUPLX_MASK 0x0800 // Full duplex
41 #define TDK78_DIAG_100TX_MASK 0x0400 // 100Base-TX
43 #endif /* _TDK78PHY_H_ */