tlphyreg.h revision 50461
1254721Semaste/* $NetBSD: tlphyreg.h,v 1.1 1998/08/10 23:59:58 thorpej Exp $ */ 2254721Semaste 3254721Semaste/* 4254721Semaste * Copyright (c) 1997 Manuel Bouyer. All rights reserved. 5254721Semaste * 6254721Semaste * Redistribution and use in source and binary forms, with or without 7254721Semaste * modification, are permitted provided that the following conditions 8254721Semaste * are met: 9254721Semaste * 1. Redistributions of source code must retain the above copyright 10254721Semaste * notice, this list of conditions and the following disclaimer. 11254721Semaste * 2. Redistributions in binary form must reproduce the above copyright 12254721Semaste * notice, this list of conditions and the following disclaimer in the 13254721Semaste * documentation and/or other materials provided with the distribution. 14254721Semaste * 3. All advertising materials mentioning features or use of this software 15254721Semaste * must display the following acknowledgement: 16254721Semaste * This product includes software developed by Manuel Bouyer. 17254721Semaste * 4. The name of the author may not be used to endorse or promote products 18254721Semaste * derived from this software without specific prior written permission. 19254721Semaste * 20254721Semaste * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 21254721Semaste * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 22254721Semaste * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 23254721Semaste * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 24254721Semaste * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 25254721Semaste * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26254721Semaste * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27254721Semaste * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28254721Semaste * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 29254721Semaste * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30254721Semaste * 31254721Semaste * $Id$ 32254721Semaste */ 33254721Semaste 34254721Semaste#ifndef _DEV_MII_TLPHYREG_H_ 35254721Semaste#define _DEV_MII_TLPHYREG_H_ 36254721Semaste 37254721Semaste/* 38254721Semaste * Registers for the TI ThunderLAN internal PHY. 39254721Semaste */ 40254721Semaste 41254721Semaste#define MII_TLPHY_ID 0x10 /* ThunderLAN PHY ID */ 42254721Semaste#define ID_10BASETAUI 0x0001 /* 10baseT/AUI PHY */ 43254721Semaste 44254721Semaste#define MII_TLPHY_CTRL 0x11 /* Control regiseter */ 45254721Semaste#define CTRL_ILINK 0x8000 /* Ignore link */ 46254721Semaste#define CTRL_SWPOL 0x4000 /* swap polarity */ 47254721Semaste#define CTRL_AUISEL 0x2000 /* Select AUI */ 48254721Semaste#define CTRL_SQEEN 0x1000 /* Enable SQE */ 49254721Semaste#define CTRL_NFEW 0x0004 /* Not far end wrap */ 50254721Semaste#define CTRL_INTEN 0x0002 /* Interrupts enable */ 51254721Semaste#define CTRL_TINT 0x0001 /* Test Interrupts */ 52254721Semaste 53254721Semaste#define MII_TLPHY_ST 0x12 /* Status register */ 54254721Semaste#define ST_MII_INT 0x8000 /* MII interrupt */ 55254721Semaste#define ST_PHOK 0x4000 /* Power high OK */ 56254721Semaste#define ST_POLOK 0x2000 /* Polarity OK */ 57254721Semaste#define ST_TPE 0x1000 /* Twisted pair energy */ 58254721Semaste 59254721Semaste#endif /* _DEV_MII_TLPHYREG_H_ */ 60254721Semaste