Deleted Added
full compact
bus_if.m (132354) bus_if.m (133588)
1
2#
1
2#
3# Copyright (c) 1998,2004 Doug Rabson
3# Copyright (c) 1998-2004 Doug Rabson
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions
8# are met:
9# 1. Redistributions of source code must retain the above copyright
10# notice, this list of conditions and the following disclaimer.
11# 2. Redistributions in binary form must reproduce the above copyright

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

19# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25# SUCH DAMAGE.
26#
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions
8# are met:
9# 1. Redistributions of source code must retain the above copyright
10# notice, this list of conditions and the following disclaimer.
11# 2. Redistributions in binary form must reproduce the above copyright

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

19# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25# SUCH DAMAGE.
26#
27# $FreeBSD: head/sys/kern/bus_if.m 132354 2004-07-18 16:30:31Z dfr $
27# $FreeBSD: head/sys/kern/bus_if.m 133588 2004-08-12 17:26:22Z imp $
28#
29
30#include <sys/bus.h>
31
32/**
33 * @defgroup BUS bus - KObj methods for drivers of devices with children
34 * @brief A set of methods required device drivers that support
35 * child devices.

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

434 device_t _dev;
435 device_t _child;
436} DEFAULT bus_generic_get_resource_list;
437
438/**
439 * @brief Is the hardware described by @p _child still attached to the
440 * system?
441 *
28#
29
30#include <sys/bus.h>
31
32/**
33 * @defgroup BUS bus - KObj methods for drivers of devices with children
34 * @brief A set of methods required device drivers that support
35 * child devices.

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

434 device_t _dev;
435 device_t _child;
436} DEFAULT bus_generic_get_resource_list;
437
438/**
439 * @brief Is the hardware described by @p _child still attached to the
440 * system?
441 *
442 * This method should return 0 if the device is not present. It should
443 * return -1 if it is present. Any errors in determining should be
444 * returned as a normal errno value. Client drivers are to assume that
445 * the device is present, even if there is an error determining if it is
446 * there. Busses are to try to avoid returning errors, but newcard will return
447 * an error if the device fails to implement this method.
442 * This method should return 0 if the device is not present. It
443 * should return -1 if it is present. Any errors in determining
444 * should be returned as a normal errno value. Client drivers are to
445 * assume that the device is present, even if there is an error
446 * determining if it is there. Busses are to try to avoid returning
447 * errors, but newcard will return an error if the device fails to
448 * implement this method.
448 *
449 * @param _dev the parent device of @p _child
450 * @param _child the device which is being examined
451 */
452METHOD int child_present {
453 device_t _dev;
454 device_t _child;
455} DEFAULT bus_generic_child_present;

--- 54 unchanged lines hidden ---
449 *
450 * @param _dev the parent device of @p _child
451 * @param _child the device which is being examined
452 */
453METHOD int child_present {
454 device_t _dev;
455 device_t _child;
456} DEFAULT bus_generic_child_present;

--- 54 unchanged lines hidden ---