xref: /freebsd/sys/dev/etherswitch/ip17x/ip175d.h (revision 95ee2897e98f5d444f26ed2334cc7c439f9c16c6)
1248dd603SAdrian Chadd /*-
2*4d846d26SWarner Losh  * SPDX-License-Identifier: BSD-2-Clause
3718cf2ccSPedro F. Giffuni  *
4248dd603SAdrian Chadd  * Copyright (c) 2013 Luiz Otavio O Souza.
5248dd603SAdrian Chadd  * Copyright (c) 2011-2012 Stefan Bethke.
6248dd603SAdrian Chadd  * Copyright (c) 2012 Adrian Chadd.
7248dd603SAdrian Chadd  * Copyright (C) 2008 Patrick Horn.
8248dd603SAdrian Chadd  * Copyright (C) 2008, 2010 Martin Mares.
9248dd603SAdrian Chadd  * All rights reserved.
10248dd603SAdrian Chadd  *
11248dd603SAdrian Chadd  * Redistribution and use in source and binary forms, with or without
12248dd603SAdrian Chadd  * modification, are permitted provided that the following conditions
13248dd603SAdrian Chadd  * are met:
14248dd603SAdrian Chadd  * 1. Redistributions of source code must retain the above copyright
15248dd603SAdrian Chadd  *    notice, this list of conditions and the following disclaimer.
16248dd603SAdrian Chadd  * 2. Redistributions in binary form must reproduce the above copyright
17248dd603SAdrian Chadd  *    notice, this list of conditions and the following disclaimer in the
18248dd603SAdrian Chadd  *    documentation and/or other materials provided with the distribution.
19248dd603SAdrian Chadd  *
20248dd603SAdrian Chadd  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
21248dd603SAdrian Chadd  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22248dd603SAdrian Chadd  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23248dd603SAdrian Chadd  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
24248dd603SAdrian Chadd  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25248dd603SAdrian Chadd  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26248dd603SAdrian Chadd  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27248dd603SAdrian Chadd  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28248dd603SAdrian Chadd  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29248dd603SAdrian Chadd  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30248dd603SAdrian Chadd  * SUCH DAMAGE.
31248dd603SAdrian Chadd  */
32248dd603SAdrian Chadd 
33248dd603SAdrian Chadd #ifndef	__IP175D_H__
34248dd603SAdrian Chadd #define	__IP175D_H__
35248dd603SAdrian Chadd 
36248dd603SAdrian Chadd #define	IP175D_ID_PHY		20
37248dd603SAdrian Chadd #define	IP175D_ID_REG		0
38248dd603SAdrian Chadd #define	IP175D_RESET_PHY	20
39248dd603SAdrian Chadd #define	IP175D_RESET_REG	2
40248dd603SAdrian Chadd 
41248dd603SAdrian Chadd void ip175d_attach(struct ip17x_softc *sc);
42248dd603SAdrian Chadd 
43248dd603SAdrian Chadd #endif	/* __IP175D_H__ */
44