1fff9b474SMateusz Piotrowski.\" 2*4d846d26SWarner Losh.\" SPDX-License-Identifier: BSD-2-Clause 3fff9b474SMateusz Piotrowski.\" 4374334e4SBruce Evans.\" Copyright (c) [year] [your name] 59a78dbdeSMike Pritchard.\" 69a78dbdeSMike Pritchard.\" Redistribution and use in source and binary forms, with or without 79a78dbdeSMike Pritchard.\" modification, are permitted provided that the following conditions 89a78dbdeSMike Pritchard.\" are met: 99a78dbdeSMike Pritchard.\" 1. Redistributions of source code must retain the above copyright 109a78dbdeSMike Pritchard.\" notice, this list of conditions and the following disclaimer. 119a78dbdeSMike Pritchard.\" 2. Redistributions in binary form must reproduce the above copyright 129a78dbdeSMike Pritchard.\" notice, this list of conditions and the following disclaimer in the 139a78dbdeSMike Pritchard.\" documentation and/or other materials provided with the distribution. 149a78dbdeSMike Pritchard.\" 15374334e4SBruce Evans.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 169a78dbdeSMike Pritchard.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 179a78dbdeSMike Pritchard.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 189a78dbdeSMike Pritchard.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 199a78dbdeSMike Pritchard.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 209a78dbdeSMike Pritchard.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 219a78dbdeSMike Pritchard.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 229a78dbdeSMike Pritchard.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 239a78dbdeSMike Pritchard.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 249a78dbdeSMike Pritchard.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 259a78dbdeSMike Pritchard.\" SUCH DAMAGE. 269a78dbdeSMike Pritchard.\" 2781fba91bSMike Pritchard.\" Note: The date here should be updated whenever a non-trivial 2881fba91bSMike Pritchard.\" change is made to the manual page. 292aea45f0SChristian Brueffer.Dd July 31, 2015 309a78dbdeSMike Pritchard.Dt EXAMPLE 4 i386 319fdcafcfSRuslan Ermilov.Os 329a78dbdeSMike Pritchard.Sh NAME 339a78dbdeSMike Pritchard.Nm example 34d72ca9ddSRuslan Ermilov.Nd "example device driver manual page" 359a78dbdeSMike Pritchard.Sh SYNOPSIS 362aea45f0SChristian BruefferTo compile the driver into the kernel, 37eb2d52f4SDaniel Gerzoplace the following lines in the 38eb2d52f4SDaniel Gerzokernel configuration file: 39c541fe55SChristian Brueffer.Bd -ragged -offset indent 40d72ca9ddSRuslan Ermilov.Cd "device example" 41d72ca9ddSRuslan Ermilov.Cd "options EXAMPLE_DEBUG" 42c541fe55SChristian Brueffer.Ed 43c541fe55SChristian Brueffer.Pp 442aea45f0SChristian BruefferAlternatively, to load the driver as a 45eb2d52f4SDaniel Gerzomodule at boot time, place the following line in 46eb2d52f4SDaniel Gerzo.Xr loader.conf 5 : 47c541fe55SChristian Brueffer.Bd -literal -offset indent 48c541fe55SChristian Bruefferexample_load="YES" 49c541fe55SChristian Brueffer.Ed 509a78dbdeSMike Pritchard.Sh DESCRIPTION 5103e563d7SSheldon HearnThis is an example device driver manual page for the 527c7fb079SRuslan Ermilov.Nm 5303e563d7SSheldon Hearndriver. 5403e563d7SSheldon HearnIt is intended that this example can be used as a template 5503e563d7SSheldon Hearnwhen writing a new manual page. 569a78dbdeSMike Pritchard.Pp 579a78dbdeSMike PritchardThe 589a78dbdeSMike Pritchard.Nm 599a78dbdeSMike Pritcharddriver supports the following ioctls: 601fb04df9SMateusz Piotrowski.Bl -tag -width "EIOCNULL" 619a78dbdeSMike Pritchard.It Dv EIOCEX 629a78dbdeSMike PritchardExample ioctl. 639a78dbdeSMike Pritchard.It Dv EIOCNULL 649a78dbdeSMike PritchardExample ioctl. 659a78dbdeSMike Pritchard.El 660a0869f6SMike Pritchard.Pp 670a0869f6SMike PritchardIf the kernel is compiled with the 680a0869f6SMike Pritchard.Dv EXAMPLE_DEBUG 690a0869f6SMike Pritchardoption, then additional debugging messages will be displayed. 708e244f40SSimon L. B. Nielsen.Sh HARDWARE 718e244f40SSimon L. B. NielsenThe 728e244f40SSimon L. B. Nielsen.Nm 738e244f40SSimon L. B. Nielsendriver supports the following example hardware: 748e244f40SSimon L. B. Nielsen.Pp 758e244f40SSimon L. B. Nielsen.Bl -bullet -compact 768e244f40SSimon L. B. Nielsen.It 778e244f40SSimon L. B. NielsenExample device 4201 788e244f40SSimon L. B. Nielsen.It 798e244f40SSimon L. B. NielsenExample device 4202 808e244f40SSimon L. B. Nielsen.El 819a78dbdeSMike Pritchard.Sh FILES 8263fb0d3bSMateusz Piotrowski.Bl -tag -width "/dev/null" -compact 839a78dbdeSMike Pritchard.It Pa /dev/null 849a78dbdeSMike PritchardExample of a file in the 859a78dbdeSMike Pritchard.Sx FILES 869a78dbdeSMike Pritchardsection. 879a78dbdeSMike Pritchard.El 889a78dbdeSMike Pritchard.Sh DIAGNOSTICS 8981fba91bSMike Pritchard.Bl -diag 90d72ca9ddSRuslan Ermilov.It "example%d: example diagnostic message." 9181fba91bSMike PritchardAn example of a diagnostic message. 92d72ca9ddSRuslan Ermilov.It "example%d: another example diagnostic message." 9381fba91bSMike PritchardSelf explanatory. 9481fba91bSMike Pritchard.El 95ed0bfbe5SMike Pritchard.Sh SEE ALSO 96ed0bfbe5SMike Pritchard.Xr example 1 , 97ed0bfbe5SMike Pritchard.Xr example 3 , 984227c68dSGiorgos Keramidas.Xr mdoc 7 , 994227c68dSGiorgos Keramidas.Xr example 9 1009a78dbdeSMike Pritchard.Sh HISTORY 1019a78dbdeSMike PritchardThe 1029a78dbdeSMike Pritchard.Nm 1038a2f6186SChristian Bruefferdevice driver first appeared in 1049cb8091fSMike Pritchard.Fx 2.2 . 10581fba91bSMike Pritchard.Pp 10681fba91bSMike PritchardSome other common 10781fba91bSMike Pritchard.Sx HISTORY 10881fba91bSMike Pritchardsection examples are: 10981fba91bSMike Pritchard.Pp 11081fba91bSMike PritchardThe 11181fba91bSMike Pritchard.Nm 11281fba91bSMike Pritchardmanual page example first appeared in 11381fba91bSMike Pritchard.Bx 4.4 . 11481fba91bSMike Pritchard.Pp 11581fba91bSMike PritchardThe 11681fba91bSMike Pritchard.Nm 11781fba91bSMike Pritchardmanual page example first appeared in 11881fba91bSMike Pritchard.At v6 . 119facbd487SPhilippe Charnier.Sh AUTHORS 120839ba87aSChristian BruefferThis manual page was written by 121bd0891ceSBaptiste Daroussin.An Mike Pritchard Aq Mt mpp@FreeBSD.org . 1229a78dbdeSMike Pritchard.Sh BUGS 1239a78dbdeSMike PritchardThe actual code for this device driver is vaporware. 124