tc5299jreg.h revision 150957
1150957Simp/*- 2150957Simp * Copyright (c) 2005, M. Warner Losh. 3150957Simp * All rights reserved. 4150957Simp * 5150957Simp * Redistribution and use in source and binary forms, with or without 6150957Simp * modification, are permitted provided that the following conditions 7150957Simp * are met: 8150957Simp * 1. Redistributions of source code must retain the above copyright 9150957Simp * notice unmodified, this list of conditions, and the following 10150957Simp * disclaimer. 11150957Simp * 2. Redistributions in binary form must reproduce the above copyright 12150957Simp * notice, this list of conditions and the following disclaimer in the 13150957Simp * documentation and/or other materials provided with the distribution. 14150957Simp * 15150957Simp * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 16150957Simp * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 17150957Simp * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 18150957Simp * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 19150957Simp * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20150957Simp * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21150957Simp * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22150957Simp * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23150957Simp * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24150957Simp * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25150957Simp * SUCH DAMAGE. 26150957Simp * 27150957Simp * $FreeBSD: head/sys/dev/ed/tc5299jreg.h 150957 2005-10-05 05:21:07Z imp $ 28150957Simp */ 29150957Simp 30150957Simp/* Tamarack TC5299J */ 31150957Simp#define ED_TC5299J_CRA 0x0a /* Config Register A */ 32150957Simp#define ED_TC5299J_CRB 0x0b /* Config Register B */ 33150957Simp#define ED_TC5299J_MIIBUS 0x03 /* MII bus register on in bank 3 */ 34150957Simp 35150957Simp#define ED_TC5299J_MII_CLK 0x01 36150957Simp#define ED_TC5299J_MII_DATAOUT 0x02 37150957Simp#define ED_TC5299J_MII_DIROUT 0x04 38150957Simp#define ED_TC5299J_MII_DATAIN 0x08 39