Deleted Added
full compact
DRIVER_MODULE.9 (74420) DRIVER_MODULE.9 (74984)
1.\" -*- nroff -*-
2.\"
3.\" Copyright (c) 2000 Alexander Langer
4.\"
5.\" All rights reserved.
6.\"
7.\" This program is free software.
8.\"

--- 12 unchanged lines hidden (view full) ---

21.\" IN NO EVENT SHALL THE DEVELOPERS BE LIABLE FOR ANY DIRECT, INDIRECT,
22.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
23.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28.\"
1.\" -*- nroff -*-
2.\"
3.\" Copyright (c) 2000 Alexander Langer
4.\"
5.\" All rights reserved.
6.\"
7.\" This program is free software.
8.\"

--- 12 unchanged lines hidden (view full) ---

21.\" IN NO EVENT SHALL THE DEVELOPERS BE LIABLE FOR ANY DIRECT, INDIRECT,
22.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
23.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28.\"
29.\" $FreeBSD: head/share/man/man9/DRIVER_MODULE.9 74420 2001-03-18 16:54:39Z alex $
29.\" $FreeBSD: head/share/man/man9/DRIVER_MODULE.9 74984 2001-03-29 10:18:54Z bde $
30.\"
31.Dd May 16, 2000
32.Dt DRIVER_MODULE 9
33.Os
34.Sh NAME
35.Nm DRIVER_MODULE
36.Nd kernel driver declaration macro
37.Sh SYNOPSIS
30.\"
31.Dd May 16, 2000
32.Dt DRIVER_MODULE 9
33.Os
34.Sh NAME
35.Nm DRIVER_MODULE
36.Nd kernel driver declaration macro
37.Sh SYNOPSIS
38.Fd #include <sys/module.h>
38.Fd #include <sys/types.h>
39.Fd #include <sys/bus.h>
39.Fd #include <sys/bus.h>
40.Fn DRIVER_MODULE "name" "busname" "driver_t driver" "devclass_t devclass" "modeventhand_t evh" "void *arg"
40.Fd #include <sys/module.h>
41.Fn DRIVER_MODULE name busname "driver_t driver" "devclass_t devclass" "modeventhand_t evh" "void *arg"
41.Sh DESCRIPTION
42The
43.Fn DRIVER_MODULE
44macro declares a kernel driver.
45.Fn DRIVER_MODULE
46expands to the real driver declaration, where the phrase
47.Fa name
48is used as the naming prefix for the driver and its functions.

--- 12 unchanged lines hidden (view full) ---

61The identifier used in
62.Fn DRIVER_MODULE
63can be different from the driver name.
64Also, the same driver identifier can exist on different busses,
65which is a pretty clean way of making front ends for different cards
66using the same driver on the same or different busses.
67For example, the following is allowed:
68.Pp
42.Sh DESCRIPTION
43The
44.Fn DRIVER_MODULE
45macro declares a kernel driver.
46.Fn DRIVER_MODULE
47expands to the real driver declaration, where the phrase
48.Fa name
49is used as the naming prefix for the driver and its functions.

--- 12 unchanged lines hidden (view full) ---

62The identifier used in
63.Fn DRIVER_MODULE
64can be different from the driver name.
65Also, the same driver identifier can exist on different busses,
66which is a pretty clean way of making front ends for different cards
67using the same driver on the same or different busses.
68For example, the following is allowed:
69.Pp
69.Fn DRIVER_MODULE "foo" "isa" "foo_driver" "foo_devclass" "0" "0" ;
70.Fn DRIVER_MODULE foo isa foo_driver foo_devclass 0 0 ;
70.Pp
71.Pp
71.Fn DRIVER_MODULE "foo" "pci" "foo_driver" "foo_devclass" "0" "0" ;
72.Fn DRIVER_MODULE foo pci foo_driver foo_devclass 0 0 ;
72.Pp
73.Fa driver
74is the driver of type
75.Li driver_t ,
76which contains the information about the driver and is therefore one of the
77two most important parts of the call to
78.Fn DRIVER_MODULE .
79.Pp

--- 23 unchanged lines hidden ---
73.Pp
74.Fa driver
75is the driver of type
76.Li driver_t ,
77which contains the information about the driver and is therefore one of the
78two most important parts of the call to
79.Fn DRIVER_MODULE .
80.Pp

--- 23 unchanged lines hidden ---