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 / ns83865phy.h
blob5659b0050113875bd4edf46b61f26deca8106c19
1 /*--------------------------------------------------------------------
3 * ns83865.h
7 * National NS83865 specific ethernet transceiver phy registers (09-31)
11 * Copyright (C) 2004 Microtronix Datacom Ltd
15 * This program is free software; you can redistribute it and/or modify
17 * it under the terms of the GNU General Public License as published by
19 * the Free Software Foundation; either version 2 of the License, or
21 * (at your option) any later version.
25 * This program is distributed in the hope that it will be useful,
27 * but WITHOUT ANY WARRANTY; without even the implied warranty of
29 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31 * GNU General Public License for more details.
35 * Apr2004 DGT Microtronix Datacom
39 ---------------------------------------------------------------------*/
43 #ifndef _NS883865PHY_H_
45 #define _NS883865PHY_H_
49 // Link Status Register
51 #define NS883865_LNKSTS_REG 0x11 // Phy Reg17
55 #define NS883865_LNKSTS_100_MASK 0x0008 // 100 Mbps
57 #define NS883865_LNKSTS_LNKUP_MASK 0x0004 // Link Up
59 #define NS883865_LNKSTS_FDUPLX_MASK 0x0002 // Full duplex
63 // Interrupt Status Register
65 #define NS883865_INTSTS_REG 0x14 // Phy Reg20
69 #define NS883865_INTSTS_LSCHG_MASK 0x4000 // Link status change
71 #define NS883865_INTSTS_ANEGDONE_MASK 0x0010 // Auto neg done
75 // Interrupt Enable Register
77 #define NS883865_INTIE_REG 0x15 // Phy Reg21
81 #define NS883865_INTIE_LSCHG_MASK NS883865_INTSTS_LSCHG_MASK
83 #define NS883865_INTIE_ANEGDONE_MASK NS883865_INTSTS_ANEGDONE_MASK
87 // Interrupt Ack Register
89 #define NS883865_INTACK_REG 0x17 // Phy Reg23
93 #define NS883865_INTACK_LSCHG_MASK NS883865_INTSTS_LSCHG_MASK
95 #define NS883865_INTACK_ANEGDONE_MASK NS883865_INTSTS_ANEGDONE_MASK
97 #endif /* _NS883865PHY_H_ */