DEVICE_IDENTIFY.9 (84306) | DEVICE_IDENTIFY.9 (89124) |
---|---|
1.\" -*- nroff -*- 2.\" 3.\" Copyright (c) 2001 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) 2001 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/DEVICE_IDENTIFY.9 84306 2001-10-01 16:09:29Z ru $ | 29.\" $FreeBSD: head/share/man/man9/DEVICE_IDENTIFY.9 89124 2002-01-09 11:43:48Z mpp $ |
30.\" 31.Dd March 10, 2001 32.Dt DEVICE_IDENTIFY 9 33.Os 34.Sh NAME 35.Nm DEVICE_IDENTIFY 36.Nd identify a device, register it 37.Sh SYNOPSIS 38.In sys/param.h 39.In sys/bus.h 40.Ft void 41.Fn DEVICE_IDENTIFY "driver_t *driver" "device_t parent" 42.Sh DESCRIPTION 43The identify function for a device is only needed for devices on busses 44that cannot identify their childs independently, e.g. the ISA bus. | 30.\" 31.Dd March 10, 2001 32.Dt DEVICE_IDENTIFY 9 33.Os 34.Sh NAME 35.Nm DEVICE_IDENTIFY 36.Nd identify a device, register it 37.Sh SYNOPSIS 38.In sys/param.h 39.In sys/bus.h 40.Ft void 41.Fn DEVICE_IDENTIFY "driver_t *driver" "device_t parent" 42.Sh DESCRIPTION 43The identify function for a device is only needed for devices on busses 44that cannot identify their childs independently, e.g. the ISA bus. |
45It is used to recognize the device (usually done by accessing non-ambigous | 45It is used to recognize the device (usually done by accessing non-ambiguous |
46registers in the hardware) and to tell the kernel about it and thus 47creating a new device instance. 48.Pp 49.Xr BUS_ADD_CHILD 9 50is used to register the device as a child of the bus. 51The device's resources (such as IRQ and I/O ports) are registered 52with the kernel by calling 53.Fn bus_set_resource --- 41 unchanged lines hidden --- | 46registers in the hardware) and to tell the kernel about it and thus 47creating a new device instance. 48.Pp 49.Xr BUS_ADD_CHILD 9 50is used to register the device as a child of the bus. 51The device's resources (such as IRQ and I/O ports) are registered 52with the kernel by calling 53.Fn bus_set_resource --- 41 unchanged lines hidden --- |