bus.h (53331) | bus.h (54073) |
---|---|
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 * | 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/sys/bus.h 53331 1999-11-18 06:05:30Z peter $ | 26 * $FreeBSD: head/sys/sys/bus.h 54073 1999-12-03 08:41:24Z mdodd $ |
27 */ 28 29#ifndef _SYS_BUS_H_ 30#define _SYS_BUS_H_ 31 32#ifdef KERNEL 33 34#include <sys/queue.h> --- 182 unchanged lines hidden (view full) --- 217 u_long *startp, u_long *countp); 218u_long bus_get_resource_start(device_t dev, int type, int rid); 219u_long bus_get_resource_count(device_t dev, int type, int rid); 220void bus_delete_resource(device_t dev, int type, int rid); 221 222/* 223 * Access functions for device. 224 */ | 27 */ 28 29#ifndef _SYS_BUS_H_ 30#define _SYS_BUS_H_ 31 32#ifdef KERNEL 33 34#include <sys/queue.h> --- 182 unchanged lines hidden (view full) --- 217 u_long *startp, u_long *countp); 218u_long bus_get_resource_start(device_t dev, int type, int rid); 219u_long bus_get_resource_count(device_t dev, int type, int rid); 220void bus_delete_resource(device_t dev, int type, int rid); 221 222/* 223 * Access functions for device. 224 */ |
225device_t device_add_child(device_t dev, const char *name, int unit, 226 void *ivp); | 225device_t device_add_child(device_t dev, const char *name, int unit); |
227device_t device_add_child_ordered(device_t dev, int order, | 226device_t device_add_child_ordered(device_t dev, int order, |
228 const char *name, int unit, 229 void *ivp); | 227 const char *name, int unit); |
230void device_busy(device_t dev); 231int device_delete_child(device_t dev, device_t child); 232int device_detach(device_t dev); 233void device_disable(device_t dev); 234void device_enable(device_t dev); 235device_t device_find_child(device_t dev, const char *classname, 236 int unit); 237const char *device_get_desc(device_t dev); 238devclass_t device_get_devclass(device_t dev); 239driver_t *device_get_driver(device_t dev); 240u_int32_t device_get_flags(device_t dev); 241device_t device_get_parent(device_t dev); 242int device_get_children(device_t dev, device_t **listp, int *countp); 243void *device_get_ivars(device_t dev); | 228void device_busy(device_t dev); 229int device_delete_child(device_t dev, device_t child); 230int device_detach(device_t dev); 231void device_disable(device_t dev); 232void device_enable(device_t dev); 233device_t device_find_child(device_t dev, const char *classname, 234 int unit); 235const char *device_get_desc(device_t dev); 236devclass_t device_get_devclass(device_t dev); 237driver_t *device_get_driver(device_t dev); 238u_int32_t device_get_flags(device_t dev); 239device_t device_get_parent(device_t dev); 240int device_get_children(device_t dev, device_t **listp, int *countp); 241void *device_get_ivars(device_t dev); |
242void device_set_ivars(device_t dev, void *ivars); |
|
244const char *device_get_name(device_t dev); 245const char *device_get_nameunit(device_t dev); 246void *device_get_softc(device_t dev); 247device_state_t device_get_state(device_t dev); 248int device_get_unit(device_t dev); 249int device_is_alive(device_t dev); /* did probe succeed? */ 250int device_is_enabled(device_t dev); 251int device_is_quiet(device_t dev); --- 119 unchanged lines hidden --- | 243const char *device_get_name(device_t dev); 244const char *device_get_nameunit(device_t dev); 245void *device_get_softc(device_t dev); 246device_state_t device_get_state(device_t dev); 247int device_get_unit(device_t dev); 248int device_is_alive(device_t dev); /* did probe succeed? */ 249int device_is_enabled(device_t dev); 250int device_is_quiet(device_t dev); --- 119 unchanged lines hidden --- |