fdt_ic_if.m (46913) | fdt_ic_if.m (47178) |
---|---|
1# 2# Copyright (c) 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) 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# $Id: bus_if.m,v 1.8 1999/05/08 21:59:34 dfr Exp $ | 26# $Id: bus_if.m,v 1.9 1999/05/10 17:06:12 dfr Exp $ |
27# 28 29INTERFACE bus; 30 31# 32# Default implementations of some methods. 33# 34CODE { --- 64 unchanged lines hidden (view full) --- 99# attach any un-matched children of the bus. 100# 101METHOD void driver_added { 102 device_t dev; 103 driver_t *driver; 104} 105 106# | 27# 28 29INTERFACE bus; 30 31# 32# Default implementations of some methods. 33# 34CODE { --- 64 unchanged lines hidden (view full) --- 99# attach any un-matched children of the bus. 100# 101METHOD void driver_added { 102 device_t dev; 103 driver_t *driver; 104} 105 106# |
107# For busses which use use drivers supporting DEVICE_IDENTIFY to 108# enumerate their devices, these methods are used to create new 109# device instances. If place is non-NULL, the new device will be 110# added after place in the list of devices. 111# 112METHOD device_t add_child { 113 device_t dev; 114 device_t place; 115 const char *name; 116 int unit; 117}; 118 119# |
|
107# Allocate a system resource attached to `dev' on behalf of `child'. 108# The types are defined in <machine/resource.h>; the meaning of the 109# resource-ID field varies from bus to bus (but *rid == 0 is always 110# valid if the resource type is). start and end reflect the allowable 111# range, and should be passed as `0UL' and `~0UL', respectively, if 112# the client has no range restriction. count is the number of consecutive 113# indices in the resource required. flags is a set of sharing flags 114# as defined in <sys/rman.h>. --- 61 unchanged lines hidden --- | 120# Allocate a system resource attached to `dev' on behalf of `child'. 121# The types are defined in <machine/resource.h>; the meaning of the 122# resource-ID field varies from bus to bus (but *rid == 0 is always 123# valid if the resource type is). start and end reflect the allowable 124# range, and should be passed as `0UL' and `~0UL', respectively, if 125# the client has no range restriction. count is the number of consecutive 126# indices in the resource required. flags is a set of sharing flags 127# as defined in <sys/rman.h>. --- 61 unchanged lines hidden --- |