1139749Simp/*- 267314Sjon * Copyright (c) 2000,2001 Jonathan Chen. 367314Sjon * All rights reserved. 467314Sjon * 567314Sjon * Redistribution and use in source and binary forms, with or without 667314Sjon * modification, are permitted provided that the following conditions 767314Sjon * are met: 867314Sjon * 1. Redistributions of source code must retain the above copyright 967314Sjon * notice, this list of conditions, and the following disclaimer, 1067314Sjon * without modification, immediately at the beginning of the file. 1167314Sjon * 2. Redistributions in binary form must reproduce the above copyright 1267314Sjon * notice, this list of conditions and the following disclaimer in 1367314Sjon * the documentation and/or other materials provided with the 1467314Sjon * distribution. 1567314Sjon * 1667314Sjon * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 1767314Sjon * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1867314Sjon * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1967314Sjon * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR 2067314Sjon * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2167314Sjon * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2267314Sjon * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2367314Sjon * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2467314Sjon * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2567314Sjon * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2667314Sjon * SUCH DAMAGE. 2767314Sjon * 2867314Sjon * $FreeBSD$ 2967314Sjon */ 3067314Sjon 3167314Sjon/* 3267314Sjon * Register definitions for TDK 78Q2120 3367314Sjon */ 3467314Sjon 3567314Sjon#ifndef _DEV_MII_TDKPHYREG_H_ 3667314Sjon#define _DEV_MII_TDKPHYREG_H_ 3767314Sjon 3867314Sjon#define MII_VENDOR 16 3967314Sjon#define VENDOR_RXCC 0x0001 4067314Sjon#define VENDOR_PCSBP 0x0002 4167314Sjon#define VENDOR_RVSPOL 0x0010 4267314Sjon#define VENDOR_NOAPOL 0x0020 4367314Sjon#define VENDOR_GPIO0DIR 0x0040 4467314Sjon#define VENDOR_GPIO0DAT 0x0080 4567314Sjon#define VENDOR_GPIO1DIR 0x0100 4667314Sjon#define VENDOR_GPIO1DAT 0x0200 4767314Sjon#define VENDOR_10BTLOOP 0x0400 4867314Sjon#define VENDOR_NOSQE 0x0800 4967314Sjon#define VENDOR_TXHIM 0x1000 5067314Sjon#define VENDOR_INTLVL 0x4000 5167314Sjon#define VENDOR_RPTR 0x8000 5267314Sjon 5367314Sjon#define MII_INT 17 5467314Sjon#define INT_STAT_MASK 0x00ff 5567314Sjon#define INT_STAT_ACOMP 0x0001 5667314Sjon#define INT_STAT_RFAULT 0x0002 5767314Sjon#define INT_STAT_LSCHG 0x0004 5867314Sjon#define INT_STAT_LPACK 0x0008 5967314Sjon#define INT_STAT_PDF 0x0010 6067314Sjon#define INT_STAT_PRX 0x0020 6167314Sjon#define INT_STAT_RXERR 0x0040 6267314Sjon#define INT_STAT_JABBER 0x0080 6367314Sjon#define INT_CTRL_MASK 0xff00 6467314Sjon#define INT_CTRL_ACOMP 0x0100 6567314Sjon#define INT_CTRL_RFAULT 0x0200 6667314Sjon#define INT_CTRL_LSCHG 0x0400 6767314Sjon#define INT_CTRL_LPACK 0x0800 6867314Sjon#define INT_CTRL_PDF 0x1000 6967314Sjon#define INT_CTRL_PRX 0x2000 7067314Sjon#define INT_CTRL_RXERR 0x4000 7167314Sjon#define INT_CTRL_JABBER 0x8000 7267314Sjon 7367314Sjon 7467314Sjon#define MII_DIAG 18 7567314Sjon#define DIAG_RLOCK 0x0100 7667314Sjon#define DIAG_RPASS 0x0200 7767314Sjon#define DIAG_RATE_100 0x0400 7867314Sjon#define DIAG_DUPLEX 0x0800 7967314Sjon#define DIAG_NEGFAIL 0x1000 8067314Sjon 8167314Sjon 8267314Sjon#endif 83