ofw_bus_subr.h (208614) | ofw_bus_subr.h (209298) |
---|---|
1/*- 2 * Copyright (c) 2005 Marius Strobl <marius@FreeBSD.org> 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 --- 11 unchanged lines hidden (view full) --- 20 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 * | 1/*- 2 * Copyright (c) 2005 Marius Strobl <marius@FreeBSD.org> 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 --- 11 unchanged lines hidden (view full) --- 20 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 * |
28 * $FreeBSD: head/sys/dev/ofw/ofw_bus_subr.h 208614 2010-05-28 10:43:56Z raj $ | 28 * $FreeBSD: head/sys/dev/ofw/ofw_bus_subr.h 209298 2010-06-18 14:06:27Z nwhitehorn $ |
29 */ 30 31#ifndef _DEV_OFW_OFW_BUS_SUBR_H_ 32#define _DEV_OFW_OFW_BUS_SUBR_H_ 33 34#include <sys/bus.h> 35 36#include <dev/ofw/openfirm.h> --- 21 unchanged lines hidden (view full) --- 58ofw_bus_get_type_t ofw_bus_gen_get_type; 59 60/* Helper method to report interesting OF properties in pnpinfo */ 61bus_child_pnpinfo_str_t ofw_bus_gen_child_pnpinfo_str; 62 63/* Routines for processing firmware interrupt maps */ 64void ofw_bus_setup_iinfo(phandle_t, struct ofw_bus_iinfo *, int); 65int ofw_bus_lookup_imap(phandle_t, struct ofw_bus_iinfo *, void *, int, | 29 */ 30 31#ifndef _DEV_OFW_OFW_BUS_SUBR_H_ 32#define _DEV_OFW_OFW_BUS_SUBR_H_ 33 34#include <sys/bus.h> 35 36#include <dev/ofw/openfirm.h> --- 21 unchanged lines hidden (view full) --- 58ofw_bus_get_type_t ofw_bus_gen_get_type; 59 60/* Helper method to report interesting OF properties in pnpinfo */ 61bus_child_pnpinfo_str_t ofw_bus_gen_child_pnpinfo_str; 62 63/* Routines for processing firmware interrupt maps */ 64void ofw_bus_setup_iinfo(phandle_t, struct ofw_bus_iinfo *, int); 65int ofw_bus_lookup_imap(phandle_t, struct ofw_bus_iinfo *, void *, int, |
66 void *, int, void *, int, void *); | 66 void *, int, void *, int, phandle_t *, void *); |
67int ofw_bus_search_intrmap(void *, int, void *, int, void *, int, void *, | 67int ofw_bus_search_intrmap(void *, int, void *, int, void *, int, void *, |
68 void *, void *, int); | 68 void *, void *, int, phandle_t *); |
69 | 69 |
70/* Helper to get node's interrupt parent */ 71void ofw_bus_find_iparent(phandle_t); 72 |
|
70/* Helper routine for checking compat prop */ 71int ofw_bus_is_compatible(device_t, const char *); 72int ofw_bus_is_compatible_strict(device_t, const char *); 73 74#endif /* !_DEV_OFW_OFW_BUS_SUBR_H_ */ | 73/* Helper routine for checking compat prop */ 74int ofw_bus_is_compatible(device_t, const char *); 75int ofw_bus_is_compatible_strict(device_t, const char *); 76 77#endif /* !_DEV_OFW_OFW_BUS_SUBR_H_ */ |