xref: /freebsd/share/man/man9/device_set_driver.9 (revision fa9896e082a1046ff4fbc75fcba4d18d1f2efc19)
1bf2331baSWarner Losh.\" -*- nroff -*-
2bf2331baSWarner Losh.\"
3*a339dcccSWarner Losh.\" Copyright (c) 2003 M. Warner Losh <imp@FreeBSD.org>
4bf2331baSWarner Losh.\"
5bf2331baSWarner Losh.\" Redistribution and use in source and binary forms, with or without
6bf2331baSWarner Losh.\" modification, are permitted provided that the following conditions
7bf2331baSWarner Losh.\" are met:
8bf2331baSWarner Losh.\" 1. Redistributions of source code must retain the above copyright
9bf2331baSWarner Losh.\"    notice, this list of conditions and the following disclaimer.
10bf2331baSWarner Losh.\" 2. Redistributions in binary form must reproduce the above copyright
11bf2331baSWarner Losh.\"    notice, this list of conditions and the following disclaimer in the
12bf2331baSWarner Losh.\"    documentation and/or other materials provided with the distribution.
13bf2331baSWarner Losh.\"
14bf2331baSWarner Losh.\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY EXPRESS OR
15bf2331baSWarner Losh.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
16bf2331baSWarner Losh.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
17bf2331baSWarner Losh.\" IN NO EVENT SHALL THE DEVELOPERS BE LIABLE FOR ANY DIRECT, INDIRECT,
18bf2331baSWarner Losh.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
19bf2331baSWarner Losh.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
20bf2331baSWarner Losh.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
21bf2331baSWarner Losh.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22bf2331baSWarner Losh.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23bf2331baSWarner Losh.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24bf2331baSWarner Losh.\"
25bf2331baSWarner Losh.Dd April 21, 2003
26bf2331baSWarner Losh.Dt DEVICE_SET_DRIVER 9
27bf2331baSWarner Losh.Os
28bf2331baSWarner Losh.Sh NAME
29bf2331baSWarner Losh.Nm device_set_driver
303e1cee04SRuslan Ermilov.Nd "associate a specific driver with a device node in the tree"
31bf2331baSWarner Losh.Sh SYNOPSIS
32bf2331baSWarner Losh.In sys/param.h
33bf2331baSWarner Losh.In sys/bus.h
34bf2331baSWarner Losh.Ft void
35bf2331baSWarner Losh.Fn device_set_driver "device_t dev" "driver_t *driver"
36bf2331baSWarner Losh.Sh DESCRIPTION
37bf2331baSWarner LoshThis function associates a specific driver with a given device node
38bf2331baSWarner Loshin the tree.
39bf2331baSWarner LoshIt is typically used in
40bf2331baSWarner Losh.Xr DEVICE_IDENTIFY 9
41bf2331baSWarner Loshfunctions to add devices to a bus that does not support doing so
42cbc64eb2SChristian Bruefferautomatically, such as the ISA bus.
43bf2331baSWarner Losh.Sh SEE ALSO
44bf2331baSWarner Losh.Xr device 9
45bf2331baSWarner Losh.Sh AUTHORS
4609356c84SHiten PandyaThis manual page was written by
47bf2331baSWarner Losh.An M. Warner Losh .
48