Deleted Added
sdiff udiff text old ( 66014 ) new ( 67278 )
full compact
1/*-
2 * Copyright (c) 1997,1998 Doug Rabson
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD: head/sys/kern/subr_bus.c 66014 2000-09-17 23:57:52Z mdodd $
27 */
28
29#include "opt_bus.h"
30
31#include <sys/param.h>
32#include <sys/queue.h>
33#include <sys/malloc.h>
34#include <sys/kernel.h>

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

1959
1960int
1961bus_generic_write_ivar(device_t dev, device_t child, int index,
1962 uintptr_t value)
1963{
1964 return ENOENT;
1965}
1966
1967void
1968bus_generic_driver_added(device_t dev, driver_t *driver)
1969{
1970 device_t child;
1971
1972 DEVICE_IDENTIFY(driver, dev);
1973 for (child = TAILQ_FIRST(&dev->children);
1974 child; child = TAILQ_NEXT(child, link))

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

2043 /* Propagate up the bus hierarchy until someone handles it. */
2044 if (dev->parent)
2045 return (BUS_DEACTIVATE_RESOURCE(dev->parent, child, type, rid,
2046 r));
2047 else
2048 return (EINVAL);
2049}
2050
2051/*
2052 * Some convenience functions to make it easier for drivers to use the
2053 * resource-management functions. All these really do is hide the
2054 * indirection through the parent's method table, making for slightly
2055 * less-wordy code. In the future, it might make sense for this code
2056 * to maintain some sort of a list of resources allocated by each device.
2057 */
2058struct resource *

--- 391 unchanged lines hidden ---