MOXA linux-2.6.x / linux-2.6.19-uc1 from UC-7110-LX-BOOTLOADER-1.9_VERSION-4.2.tgz
[linux-2.6.19-moxart.git] / drivers / net / tdk78phy.h
blob649d8ed1e14c3d46b3b87eca22bfad9897b9a840
1 /*--------------------------------------------------------------------
2 * tdk78phy.h
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 ---------------------------------------------------------------------*/
22 #ifndef _TDK78PHY_H_
23 #define _TDK78PHY_H_
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_ */