1250386Sadrian/*-
2250386Sadrian * Copyright (c) 2013 Luiz Otavio O Souza.
3250386Sadrian * Copyright (c) 2011-2012 Stefan Bethke.
4250386Sadrian * Copyright (c) 2012 Adrian Chadd.
5250386Sadrian * All rights reserved.
6250386Sadrian *
7250386Sadrian * Redistribution and use in source and binary forms, with or without
8250386Sadrian * modification, are permitted provided that the following conditions
9250386Sadrian * are met:
10250386Sadrian * 1. Redistributions of source code must retain the above copyright
11250386Sadrian *    notice, this list of conditions and the following disclaimer.
12250386Sadrian * 2. Redistributions in binary form must reproduce the above copyright
13250386Sadrian *    notice, this list of conditions and the following disclaimer in the
14250386Sadrian *    documentation and/or other materials provided with the distribution.
15250386Sadrian *
16250386Sadrian * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
17250386Sadrian * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18250386Sadrian * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19250386Sadrian * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
20250386Sadrian * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21250386Sadrian * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22250386Sadrian * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23250386Sadrian * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24250386Sadrian * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25250386Sadrian * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26250386Sadrian * SUCH DAMAGE.
27250386Sadrian *
28250386Sadrian * $FreeBSD: releng/10.3/sys/dev/etherswitch/ip17x/ip175c.h 250386 2013-05-08 20:58:41Z adrian $
29250386Sadrian */
30250386Sadrian
31250386Sadrian#ifndef	__IP175C_H__
32250386Sadrian#define	__IP175C_H__
33250386Sadrian
34250386Sadrian#define	IP175C_MODE_PHY			29
35250386Sadrian#define	IP175C_MODE_REG			31
36250386Sadrian#define	IP175C_RESET_PHY		30
37250386Sadrian#define	IP175C_RESET_REG		0
38250386Sadrian
39250386Sadrian#define	IP175C_LAST_VLAN		15
40250386Sadrian
41250386Sadrianvoid ip175c_attach(struct ip17x_softc *sc);
42250386Sadrian
43250386Sadrian#endif	/* __IP175C_H__ */
44