| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | .\" $NetBSD: driver.9,v 1.28 2016/07/19 17:01:36 maya Exp $ | | 1 | .\" $NetBSD: driver.9,v 1.29 2017/04/30 12:32:40 pgoyette Exp $ |
2 | .\" | | 2 | .\" |
3 | .\" Copyright (c) 2001 The NetBSD Foundation, Inc. | | 3 | .\" Copyright (c) 2001 The NetBSD Foundation, Inc. |
4 | .\" All rights reserved. | | 4 | .\" All rights reserved. |
5 | .\" | | 5 | .\" |
6 | .\" This code is derived from software contributed to The NetBSD Foundation | | 6 | .\" This code is derived from software contributed to The NetBSD Foundation |
7 | .\" by Gregory McGarry. | | 7 | .\" by Gregory McGarry. |
8 | .\" | | 8 | .\" |
9 | .\" Redistribution and use in source and binary forms, with or without | | 9 | .\" Redistribution and use in source and binary forms, with or without |
10 | .\" modification, are permitted provided that the following conditions | | 10 | .\" modification, are permitted provided that the following conditions |
11 | .\" are met: | | 11 | .\" are met: |
12 | .\" 1. Redistributions of source code must retain the above copyright | | 12 | .\" 1. Redistributions of source code must retain the above copyright |
13 | .\" notice, this list of conditions and the following disclaimer. | | 13 | .\" notice, this list of conditions and the following disclaimer. |
14 | .\" 2. Redistributions in binary form must reproduce the above copyright | | 14 | .\" 2. Redistributions in binary form must reproduce the above copyright |
| @@ -17,27 +17,27 @@ | | | @@ -17,27 +17,27 @@ |
17 | .\" | | 17 | .\" |
18 | .\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS | | 18 | .\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS |
19 | .\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED | | 19 | .\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED |
20 | .\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | | 20 | .\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
21 | .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS | | 21 | .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS |
22 | .\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | | 22 | .\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
23 | .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | | 23 | .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
24 | .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | | 24 | .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
25 | .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | | 25 | .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
26 | .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | | 26 | .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
27 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | | 27 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
28 | .\" POSSIBILITY OF SUCH DAMAGE. | | 28 | .\" POSSIBILITY OF SUCH DAMAGE. |
29 | .\" | | 29 | .\" |
30 | .Dd July 19, 2016 | | 30 | .Dd April 30, 2017 |
31 | .Dt DRIVER 9 | | 31 | .Dt DRIVER 9 |
32 | .Os | | 32 | .Os |
33 | .Sh NAME | | 33 | .Sh NAME |
34 | .Nm driver | | 34 | .Nm driver |
35 | .Nd description of a device driver | | 35 | .Nd description of a device driver |
36 | .Sh SYNOPSIS | | 36 | .Sh SYNOPSIS |
37 | .In sys/param.h | | 37 | .In sys/param.h |
38 | .In sys/device.h | | 38 | .In sys/device.h |
39 | .In sys/errno.h | | 39 | .In sys/errno.h |
40 | .Ft static int | | 40 | .Ft static int |
41 | .Fn foo_match "device_t parent" "cfdata_t match" "void *aux" | | 41 | .Fn foo_match "device_t parent" "cfdata_t match" "void *aux" |
42 | .Ft static void | | 42 | .Ft static void |
43 | .Fn foo_attach "device_t parent" "device_t self" "void *aux" | | 43 | .Fn foo_attach "device_t parent" "device_t self" "void *aux" |
| @@ -360,14 +360,15 @@ and dependency on kernel module | | | @@ -360,14 +360,15 @@ and dependency on kernel module |
360 | has the entry: | | 360 | has the entry: |
361 | .Bd -literal | | 361 | .Bd -literal |
362 | device-major foo char cmaj block bmaj baz | | 362 | device-major foo char cmaj block bmaj baz |
363 | .Ed | | 363 | .Ed |
364 | .Pp | | 364 | .Pp |
365 | For a detailed description of the machine description file and the | | 365 | For a detailed description of the machine description file and the |
366 | .Dq device definition | | 366 | .Dq device definition |
367 | language see | | 367 | language see |
368 | .Xr config 9 . | | 368 | .Xr config 9 . |
369 | .Sh SEE ALSO | | 369 | .Sh SEE ALSO |
370 | .Xr config 1 , | | 370 | .Xr config 1 , |
371 | .Xr autoconf 9 , | | 371 | .Xr autoconf 9 , |
372 | .Xr config 9 , | | 372 | .Xr config 9 , |
| | | 373 | .Xr devsw 9 , |
373 | .Xr pmf 9 | | 374 | .Xr pmf 9 |