mirror of
https://github.com/ebrandi/FDD-book.git
synced 2026-12-06 08:33:30 +00:00
95 lines
2.6 KiB
Groff
95 lines
2.6 KiB
Groff
|
|
.\"-
|
||
|
|
.\" SPDX-License-Identifier: BSD-2-Clause
|
||
|
|
.\"
|
||
|
|
.\" Copyright (c) 2026 Your Name <you@example.com>
|
||
|
|
.\"
|
||
|
|
.\" 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 AUTHORS ``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
|
||
|
|
.\" AUTHORS 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.
|
||
|
|
.\"
|
||
|
|
.Dd April 20, 2026
|
||
|
|
.Dt MYDEV 4
|
||
|
|
.Os
|
||
|
|
.Sh NAME
|
||
|
|
.Nm mydev
|
||
|
|
.Nd driver for FooCorp FC100 sensor boards
|
||
|
|
.Sh SYNOPSIS
|
||
|
|
To compile this driver into the kernel,
|
||
|
|
place the following line in your
|
||
|
|
kernel configuration file:
|
||
|
|
.Bd -ragged -offset indent
|
||
|
|
.Cd "device mydev"
|
||
|
|
.Ed
|
||
|
|
.Pp
|
||
|
|
Alternatively, to load the driver as a
|
||
|
|
module at boot time, place the following line in
|
||
|
|
.Xr loader.conf 5 :
|
||
|
|
.Bd -literal -offset indent
|
||
|
|
mydev_load="YES"
|
||
|
|
.Ed
|
||
|
|
.Sh DESCRIPTION
|
||
|
|
The
|
||
|
|
.Nm
|
||
|
|
driver provides support for FooCorp FC100 series PCI-attached
|
||
|
|
environmental sensor boards.
|
||
|
|
It exposes a character device at
|
||
|
|
.Pa /dev/mydev0
|
||
|
|
that userland programs can open, read, and write using standard
|
||
|
|
system calls.
|
||
|
|
.Pp
|
||
|
|
Each attached board is enumerated with an integer unit number
|
||
|
|
beginning at 0.
|
||
|
|
The driver supports probe, attach, and detach through the
|
||
|
|
standard Newbus framework.
|
||
|
|
.Sh HARDWARE
|
||
|
|
The
|
||
|
|
.Nm
|
||
|
|
driver supports the following hardware:
|
||
|
|
.Pp
|
||
|
|
.Bl -bullet -compact
|
||
|
|
.It
|
||
|
|
FooCorp FC100 rev 1.0
|
||
|
|
.It
|
||
|
|
FooCorp FC100 rev 1.1
|
||
|
|
.It
|
||
|
|
FooCorp FC200 (compatibility mode)
|
||
|
|
.El
|
||
|
|
.Sh FILES
|
||
|
|
.Bl -tag -width ".Pa /dev/mydev0"
|
||
|
|
.It Pa /dev/mydev0
|
||
|
|
First unit of the driver.
|
||
|
|
.El
|
||
|
|
.Sh SEE ALSO
|
||
|
|
.Xr pci 4
|
||
|
|
.Sh HISTORY
|
||
|
|
The
|
||
|
|
.Nm
|
||
|
|
driver first appeared in
|
||
|
|
.Fx 15.0 .
|
||
|
|
.Sh AUTHORS
|
||
|
|
.An -nosplit
|
||
|
|
The
|
||
|
|
.Nm
|
||
|
|
driver and this manual page were written by
|
||
|
|
.An Your Name Aq Mt you@example.com .
|