ofw_bus_subr.h (282773) | ofw_bus_subr.h (282972) |
---|---|
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 282773 2015-05-11 15:47:55Z andrew $ | 28 * $FreeBSD: head/sys/dev/ofw/ofw_bus_subr.h 282972 2015-05-15 13:55:18Z br $ |
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> --- 33 unchanged lines hidden (view full) --- 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/* Routines for parsing device-tree data into resource lists. */ 76int ofw_bus_reg_to_rl(device_t, phandle_t, pcell_t, pcell_t, 77 struct resource_list *); | 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> --- 33 unchanged lines hidden (view full) --- 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/* Routines for parsing device-tree data into resource lists. */ 76int ofw_bus_reg_to_rl(device_t, phandle_t, pcell_t, pcell_t, 77 struct resource_list *); |
78int ofw_bus_intr_to_rl(device_t, phandle_t, struct resource_list *); | 78int ofw_bus_intr_to_rl(device_t, phandle_t, struct resource_list *, int *); |
79 80/* Helper to get device status property */ 81const char *ofw_bus_get_status(device_t dev); 82int ofw_bus_status_okay(device_t dev); 83 84/* Helper to get node's interrupt parent */ 85void ofw_bus_find_iparent(phandle_t); 86 --- 21 unchanged lines hidden --- | 79 80/* Helper to get device status property */ 81const char *ofw_bus_get_status(device_t dev); 82int ofw_bus_status_okay(device_t dev); 83 84/* Helper to get node's interrupt parent */ 85void ofw_bus_find_iparent(phandle_t); 86 --- 21 unchanged lines hidden --- |