1.\"- 2.\" Copyright (c) 2021 Felix Johnson <felix.the.red@gmail.com> 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. 9.\" 2. Redistributions in binary form must reproduce the above copyright 10.\" notice, this list of conditions and the following disclaimer in the 11.\" documentation and/or other materials provided with the distribution. 12.\" 13.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 14.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 15.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 16.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23.\" SUCH DAMAGE. 24.\" 25.Dd May 11, 2025 26.Dt ARSWITCH 4 27.Os 28.Sh NAME 29.Nm arswitch 30.Nd Atheros AR8000 series Ethernet switch driver 31.Sh SYNOPSIS 32.Cd "device mdio" 33.Cd "device etherswitch" 34.Cd "device arswitch" 35.Sh DESCRIPTION 36The 37.Nm 38driver provides a management interface to Atheros AR8000 series Ethernet 39switch controllers. 40The driver uses an 41.Xr mdio 4 42or 43.Xr miibus 4 44interface to configure the ethernet interface. 45.Pp 46This driver supports port based vlan, and 47IEEE 802.1Q (QinQ). 48These options can be configured with the 49.Xr etherswitchcfg 8 50command. 51.Nm 52supports 53.Dv addtag , 54.Dv striptag , 55and 56.Dv doubletag . 57.Dv addtag 58and 59.Dv striptag 60are mutually exclusive. 61.Pp 62Setting the switch MAC address is not supported. 63.Sh HARDWARE 64The 65.Nm 66driver supports the following Ethernet switch controllers: 67.Pp 68.Bl -bullet -compact 69.It 70Atheros AR8327 Seven-port Gigabit Ethernet Switch 71.It 72Atheros AR8316 Six-port Gigabit Ethernet Switch 73.It 74Atheros AR8236 Six-port Fast Ethernet Switch 75.It 76Atheros AR8226 Six-port Fast Ethernet Switch 77.It 78Atheros AR8216 Six-port Fast Ethernet Switch 79.El 80.Sh SEE ALSO 81.Xr etherswitch 4 , 82.Xr etherswitchcfg 8 83.Sh HISTORY 84The 85.Nm 86device driver first appeared in 87.Fx 12.0 . 88.Sh AUTHORS 89The 90.Nm 91manual was written by 92.An Felix Johnson . 93