Deleted Added
full compact
ofw_bus_subr.h (259516) ofw_bus_subr.h (261403)
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 259516 2013-12-17 15:11:24Z nwhitehorn $
28 * $FreeBSD: head/sys/dev/ofw/ofw_bus_subr.h 261403 2014-02-02 16:41:54Z 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>

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

67
68/* Routines for processing firmware interrupt maps */
69void ofw_bus_setup_iinfo(phandle_t, struct ofw_bus_iinfo *, int);
70int ofw_bus_lookup_imap(phandle_t, struct ofw_bus_iinfo *, void *, int,
71 void *, int, void *, int, phandle_t *);
72int ofw_bus_search_intrmap(void *, int, void *, int, void *, int, void *,
73 void *, void *, int, phandle_t *);
74
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>

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

67
68/* Routines for processing firmware interrupt maps */
69void ofw_bus_setup_iinfo(phandle_t, struct ofw_bus_iinfo *, int);
70int ofw_bus_lookup_imap(phandle_t, struct ofw_bus_iinfo *, void *, int,
71 void *, int, void *, int, phandle_t *);
72int ofw_bus_search_intrmap(void *, int, void *, int, void *, int, void *,
73 void *, void *, int, phandle_t *);
74
75/* Helper to get device status property */
76const char *ofw_bus_get_status(device_t dev);
77int ofw_bus_status_okay(device_t dev);
78
75/* Helper to get node's interrupt parent */
76void ofw_bus_find_iparent(phandle_t);
77
78/* Helper routine for checking compat prop */
79int ofw_bus_is_compatible(device_t, const char *);
80int ofw_bus_is_compatible_strict(device_t, const char *);
81
82/*

--- 13 unchanged lines hidden ---
79/* Helper to get node's interrupt parent */
80void ofw_bus_find_iparent(phandle_t);
81
82/* Helper routine for checking compat prop */
83int ofw_bus_is_compatible(device_t, const char *);
84int ofw_bus_is_compatible_strict(device_t, const char *);
85
86/*

--- 13 unchanged lines hidden ---