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$
28150957Simp */
29150957Simp
30150957Simp/* AX88x90 based miibus defines */
31150957Simp#define ED_AX88X90_MIIBUS	0x04	/* MII bus register on ASIC */
32150957Simp#define ED_AX88X90_MII_CLK	    0x01
33190559Simp#define ED_AX88X90_MII_DIRIN	    0x02
34150957Simp#define ED_AX88X90_MII_DATAIN	    0x04
35150957Simp#define ED_AX88X90_MII_DATAOUT	    0x08
36150957Simp#define	ED_AX88X90_TEST		0x05	/* "test" register on asic */
37150957Simp#define ED_AX88X90_GPIO		0x07	/* GPIO pins */
38150957Simp#define ED_AX88X90_GPIO_INT_PHY	    0x10
39