summaryrefslogtreecommitdiffstats
path: root/sys/dev/etherswitch/mdio.h
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2015-12-26 02:31:39 +0000
committeradrian <adrian@FreeBSD.org>2015-12-26 02:31:39 +0000
commit86c6170821c7ea40b4763ab908848cbaffe2e55f (patch)
tree20fa4aeed5f541515950720a65a9e5dd0c163c1c /sys/dev/etherswitch/mdio.h
parent77193eb303148e86085223efbbb1d69d90fe83ba (diff)
downloadFreeBSD-src-86c6170821c7ea40b4763ab908848cbaffe2e55f.zip
FreeBSD-src-86c6170821c7ea40b4763ab908848cbaffe2e55f.tar.gz
[mdio] migrate mdiobus out of etherswitch and into a top-level device of its own.
The mdio driver interface is generally useful for devices that require MDIO without the full MII bus interface. This lifts the driver/interface out of etherswitch(4), and adds a mdio(4) man page. Submitted by: Landon Fuller <landon@landonf.org> Differential Revision: https://reviews.freebsd.org/D4606
Diffstat (limited to 'sys/dev/etherswitch/mdio.h')
-rw-r--r--sys/dev/etherswitch/mdio.h35
1 files changed, 0 insertions, 35 deletions
diff --git a/sys/dev/etherswitch/mdio.h b/sys/dev/etherswitch/mdio.h
deleted file mode 100644
index 82578e0..0000000
--- a/sys/dev/etherswitch/mdio.h
+++ /dev/null
@@ -1,35 +0,0 @@
-/*-
- * Copyright (c) 2011-2012 Stefan Bethke.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * $FreeBSD$
- */
-
-#ifndef __DEV_ETHERSWITCH_MDIO_H__
-#define __DEV_ETHERSWITCH_MDIO_H__
-
-extern driver_t mdio_driver;
-extern devclass_t mdio_devclass;
-
-#endif /* __DEV_ETHERSWITCH_MDIO_H__ */
OpenPOWER on IntegriCloud