xref: /freebsd/sys/dev/mdio/mdio.h (revision 95ee2897e98f5d444f26ed2334cc7c439f9c16c6)
171e8eac4SAdrian Chadd /*-
271e8eac4SAdrian Chadd  * Copyright (c) 2011-2012 Stefan Bethke.
371e8eac4SAdrian Chadd  * All rights reserved.
471e8eac4SAdrian Chadd  *
571e8eac4SAdrian Chadd  * Redistribution and use in source and binary forms, with or without
671e8eac4SAdrian Chadd  * modification, are permitted provided that the following conditions
771e8eac4SAdrian Chadd  * are met:
871e8eac4SAdrian Chadd  * 1. Redistributions of source code must retain the above copyright
971e8eac4SAdrian Chadd  *    notice, this list of conditions and the following disclaimer.
1071e8eac4SAdrian Chadd  * 2. Redistributions in binary form must reproduce the above copyright
1171e8eac4SAdrian Chadd  *    notice, this list of conditions and the following disclaimer in the
1271e8eac4SAdrian Chadd  *    documentation and/or other materials provided with the distribution.
1371e8eac4SAdrian Chadd  *
1471e8eac4SAdrian Chadd  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
1571e8eac4SAdrian Chadd  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1671e8eac4SAdrian Chadd  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1771e8eac4SAdrian Chadd  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
1871e8eac4SAdrian Chadd  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1971e8eac4SAdrian Chadd  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2071e8eac4SAdrian Chadd  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2171e8eac4SAdrian Chadd  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2271e8eac4SAdrian Chadd  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2371e8eac4SAdrian Chadd  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2471e8eac4SAdrian Chadd  * SUCH DAMAGE.
2571e8eac4SAdrian Chadd  */
2671e8eac4SAdrian Chadd 
2771e8eac4SAdrian Chadd #ifndef	__DEV_MDIO_MDIO_H__
2871e8eac4SAdrian Chadd #define	__DEV_MDIO_MDIO_H__
2971e8eac4SAdrian Chadd 
3071e8eac4SAdrian Chadd extern driver_t mdio_driver;
3171e8eac4SAdrian Chadd 
32*e2db1d1fSAdrian Chadd #define	MDIO_DEVADDR_NONE	-1	/**< Use clause 22 register access */
33*e2db1d1fSAdrian Chadd 
3471e8eac4SAdrian Chadd #endif	/* __DEV_MDIO_MDIO_H__ */
35