Deleted Added
full compact
bus.h (142392) bus.h (143785)
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 142392 2005-02-24 19:22:54Z imp $
26 * $FreeBSD: head/sys/sys/bus.h 143785 2005-03-18 05:19:50Z imp $
27 */
28
29#ifndef _SYS_BUS_H_
30#define _SYS_BUS_H_
31
32/**
33 * @defgroup NEWBUS newbus - a generic framework for managing devices
34 * @{

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

189 * for their child devices.
190 */
191struct resource;
192
193/**
194 * @brief An entry for a single resource in a resource list.
195 */
196struct resource_list_entry {
27 */
28
29#ifndef _SYS_BUS_H_
30#define _SYS_BUS_H_
31
32/**
33 * @defgroup NEWBUS newbus - a generic framework for managing devices
34 * @{

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

189 * for their child devices.
190 */
191struct resource;
192
193/**
194 * @brief An entry for a single resource in a resource list.
195 */
196struct resource_list_entry {
197 SLIST_ENTRY(resource_list_entry) link;
197 STAILQ_ENTRY(resource_list_entry) link;
198 int type; /**< @brief type argument to alloc_resource */
199 int rid; /**< @brief resource identifier */
200 struct resource *res; /**< @brief the real resource when allocated */
201 u_long start; /**< @brief start of resource range */
202 u_long end; /**< @brief end of resource range */
203 u_long count; /**< @brief count within range */
204};
198 int type; /**< @brief type argument to alloc_resource */
199 int rid; /**< @brief resource identifier */
200 struct resource *res; /**< @brief the real resource when allocated */
201 u_long start; /**< @brief start of resource range */
202 u_long end; /**< @brief end of resource range */
203 u_long count; /**< @brief count within range */
204};
205SLIST_HEAD(resource_list, resource_list_entry);
205STAILQ_HEAD(resource_list, resource_list_entry);
206
207void resource_list_init(struct resource_list *rl);
208void resource_list_free(struct resource_list *rl);
209void resource_list_add(struct resource_list *rl,
210 int type, int rid,
211 u_long start, u_long end, u_long count);
212int resource_list_add_next(struct resource_list *rl,
213 int type,

--- 302 unchanged lines hidden ---
206
207void resource_list_init(struct resource_list *rl);
208void resource_list_free(struct resource_list *rl);
209void resource_list_add(struct resource_list *rl,
210 int type, int rid,
211 u_long start, u_long end, u_long count);
212int resource_list_add_next(struct resource_list *rl,
213 int type,

--- 302 unchanged lines hidden ---