bus.h (294883) | bus.h (295755) |
---|---|
1/*- 2 * Copyright (c) 1997,1998,2003 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 * | 1/*- 2 * Copyright (c) 1997,1998,2003 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/sys/bus.h 294883 2016-01-27 02:23:54Z jhibbits $ | 26 * $FreeBSD: head/sys/sys/bus.h 295755 2016-02-18 13:00:04Z zbb $ |
27 */ 28 29#ifndef _SYS_BUS_H_ 30#define _SYS_BUS_H_ 31 32#include <machine/_limits.h> | 27 */ 28 29#ifndef _SYS_BUS_H_ 30#define _SYS_BUS_H_ 31 32#include <machine/_limits.h> |
33#include <machine/_bus.h> |
|
33#include <sys/_bus_dma.h> 34#include <sys/ioccom.h> 35 36/** 37 * @defgroup NEWBUS newbus - a generic framework for managing devices 38 * @{ 39 */ 40 --- 337 unchanged lines hidden (view full) --- 378 struct resource *irq, void *cookie, 379 const char *descr); 380int bus_generic_deactivate_resource(device_t dev, device_t child, int type, 381 int rid, struct resource *r); 382int bus_generic_detach(device_t dev); 383void bus_generic_driver_added(device_t dev, driver_t *driver); 384bus_dma_tag_t 385 bus_generic_get_dma_tag(device_t dev, device_t child); | 34#include <sys/_bus_dma.h> 35#include <sys/ioccom.h> 36 37/** 38 * @defgroup NEWBUS newbus - a generic framework for managing devices 39 * @{ 40 */ 41 --- 337 unchanged lines hidden (view full) --- 379 struct resource *irq, void *cookie, 380 const char *descr); 381int bus_generic_deactivate_resource(device_t dev, device_t child, int type, 382 int rid, struct resource *r); 383int bus_generic_detach(device_t dev); 384void bus_generic_driver_added(device_t dev, driver_t *driver); 385bus_dma_tag_t 386 bus_generic_get_dma_tag(device_t dev, device_t child); |
387bus_space_tag_t 388 bus_generic_get_bus_tag(device_t dev, device_t child); |
|
386int bus_generic_get_domain(device_t dev, device_t child, int *domain); 387struct resource_list * 388 bus_generic_get_resource_list (device_t, device_t); 389void bus_generic_new_pass(device_t dev); 390int bus_print_child_header(device_t dev, device_t child); 391int bus_print_child_domain(device_t dev, device_t child); 392int bus_print_child_footer(device_t dev, device_t child); 393int bus_generic_print_child(device_t dev, device_t child); --- 49 unchanged lines hidden (view full) --- 443struct resource *bus_alloc_resource(device_t dev, int type, int *rid, 444 rman_res_t start, rman_res_t end, 445 rman_res_t count, u_int flags); 446int bus_activate_resource(device_t dev, int type, int rid, 447 struct resource *r); 448int bus_deactivate_resource(device_t dev, int type, int rid, 449 struct resource *r); 450bus_dma_tag_t bus_get_dma_tag(device_t dev); | 389int bus_generic_get_domain(device_t dev, device_t child, int *domain); 390struct resource_list * 391 bus_generic_get_resource_list (device_t, device_t); 392void bus_generic_new_pass(device_t dev); 393int bus_print_child_header(device_t dev, device_t child); 394int bus_print_child_domain(device_t dev, device_t child); 395int bus_print_child_footer(device_t dev, device_t child); 396int bus_generic_print_child(device_t dev, device_t child); --- 49 unchanged lines hidden (view full) --- 446struct resource *bus_alloc_resource(device_t dev, int type, int *rid, 447 rman_res_t start, rman_res_t end, 448 rman_res_t count, u_int flags); 449int bus_activate_resource(device_t dev, int type, int rid, 450 struct resource *r); 451int bus_deactivate_resource(device_t dev, int type, int rid, 452 struct resource *r); 453bus_dma_tag_t bus_get_dma_tag(device_t dev); |
454bus_space_tag_t bus_get_bus_tag(device_t dev); |
|
451int bus_get_domain(device_t dev, int *domain); 452int bus_release_resource(device_t dev, int type, int rid, 453 struct resource *r); 454int bus_free_resource(device_t dev, int type, struct resource *r); 455int bus_setup_intr(device_t dev, struct resource *r, int flags, 456 driver_filter_t filter, driver_intr_t handler, 457 void *arg, void **cookiep); 458int bus_teardown_intr(device_t dev, struct resource *r, void *cookie); --- 405 unchanged lines hidden --- | 455int bus_get_domain(device_t dev, int *domain); 456int bus_release_resource(device_t dev, int type, int rid, 457 struct resource *r); 458int bus_free_resource(device_t dev, int type, struct resource *r); 459int bus_setup_intr(device_t dev, struct resource *r, int flags, 460 driver_filter_t filter, driver_intr_t handler, 461 void *arg, void **cookiep); 462int bus_teardown_intr(device_t dev, struct resource *r, void *cookie); --- 405 unchanged lines hidden --- |