1235288Sadrian/*-
2235288Sadrian * Copyright (c) 2011-2012 Stefan Bethke.
3235288Sadrian * All rights reserved.
4235288Sadrian *
5235288Sadrian * Redistribution and use in source and binary forms, with or without
6235288Sadrian * modification, are permitted provided that the following conditions
7235288Sadrian * are met:
8235288Sadrian * 1. Redistributions of source code must retain the above copyright
9235288Sadrian *    notice, this list of conditions and the following disclaimer.
10235288Sadrian * 2. Redistributions in binary form must reproduce the above copyright
11235288Sadrian *    notice, this list of conditions and the following disclaimer in the
12235288Sadrian *    documentation and/or other materials provided with the distribution.
13235288Sadrian *
14235288Sadrian * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15235288Sadrian * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16235288Sadrian * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17235288Sadrian * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18235288Sadrian * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19235288Sadrian * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20235288Sadrian * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21235288Sadrian * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22235288Sadrian * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23235288Sadrian * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24235288Sadrian * SUCH DAMAGE.
25235288Sadrian *
26235288Sadrian * $FreeBSD$
27235288Sadrian */
28235288Sadrian#ifndef	__ARSWITCH_PHY_H__
29235288Sadrian#define	__ARSWITCH_PHY_H__
30235288Sadrian
31279767Sadrianextern	int arswitch_readphy_external(device_t dev, int phy, int reg);
32279767Sadrianextern	int arswitch_writephy_external(device_t dev, int phy, int reg, int data);
33235288Sadrian
34279767Sadrianextern	int arswitch_readphy_internal(device_t dev, int phy, int reg);
35279767Sadrianextern	int arswitch_writephy_internal(device_t dev, int phy, int reg, int data);
36279767Sadrian
37235288Sadrian#endif	/* __ARSWITCH_PHY_H__ */
38