bus_if.m (46743) | bus_if.m (46913) |
---|---|
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.7 1999/04/16 21:22:37 peter Exp $ | 26# $Id: bus_if.m,v 1.8 1999/05/08 21:59:34 dfr Exp $ |
27# 28 29INTERFACE bus; 30 31# | 27# 28 29INTERFACE bus; 30 31# |
32# Default implementations of some methods. 33# 34CODE { 35 static struct resource * 36 null_alloc_resource(device_t dev, device_t child, 37 int type, int *rid, 38 u_long start, u_long end, 39 u_long count, u_int flags) 40 { 41 return 0; 42 } 43}; 44 45# |
|
32# This is called from system code which prints out a description of a 33# device. It should describe the attachment that the child has with 34# the parent. For instance the TurboLaser bus prints which node the 35# device is attached to. 36# 37METHOD void print_child { 38 device_t dev; 39 device_t child; --- 67 unchanged lines hidden (view full) --- 107 device_t dev; 108 device_t child; 109 int type; 110 int *rid; 111 u_long start; 112 u_long end; 113 u_long count; 114 u_int flags; | 46# This is called from system code which prints out a description of a 47# device. It should describe the attachment that the child has with 48# the parent. For instance the TurboLaser bus prints which node the 49# device is attached to. 50# 51METHOD void print_child { 52 device_t dev; 53 device_t child; --- 67 unchanged lines hidden (view full) --- 121 device_t dev; 122 device_t child; 123 int type; 124 int *rid; 125 u_long start; 126 u_long end; 127 u_long count; 128 u_int flags; |
115}; | 129} DEFAULT null_alloc_resource; |
116 117METHOD int activate_resource { 118 device_t dev; 119 device_t child; 120 int type; 121 int rid; 122 struct resource *r; 123}; --- 38 unchanged lines hidden --- | 130 131METHOD int activate_resource { 132 device_t dev; 133 device_t child; 134 int type; 135 int rid; 136 struct resource *r; 137}; --- 38 unchanged lines hidden --- |