ofw_bus.h (133589) | ofw_bus.h (256994) |
---|---|
1/*- 2 * Copyright (c) 2001, 2003 by Thomas Moestl <tmm@FreeBSD.org> 3 * Copyright (c) 2004 by Marius Strobl <marius@FreeBSD.org> 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 9 unchanged lines hidden (view full) --- 18 * IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 19 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 20 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 21 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 22 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 23 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE 24 * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 2001, 2003 by Thomas Moestl <tmm@FreeBSD.org> 3 * Copyright (c) 2004 by Marius Strobl <marius@FreeBSD.org> 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 9 unchanged lines hidden (view full) --- 18 * IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 19 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 20 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 21 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 22 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 23 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE 24 * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/dev/ofw/ofw_bus.h 133589 2004-08-12 17:41:33Z marius $ | 26 * $FreeBSD: head/sys/dev/ofw/ofw_bus.h 256994 2013-10-23 17:24:21Z nwhitehorn $ |
27 */ 28 29#ifndef _DEV_OFW_OFW_BUS_H_ 30#define _DEV_OFW_OFW_BUS_H_ 31 32#include <sys/bus.h> 33 34#include <dev/ofw/openfirm.h> --- 30 unchanged lines hidden (view full) --- 65 66static __inline const char * 67ofw_bus_get_type(device_t dev) 68{ 69 70 return (OFW_BUS_GET_TYPE(device_get_parent(dev), dev)); 71} 72 | 27 */ 28 29#ifndef _DEV_OFW_OFW_BUS_H_ 30#define _DEV_OFW_OFW_BUS_H_ 31 32#include <sys/bus.h> 33 34#include <dev/ofw/openfirm.h> --- 30 unchanged lines hidden (view full) --- 65 66static __inline const char * 67ofw_bus_get_type(device_t dev) 68{ 69 70 return (OFW_BUS_GET_TYPE(device_get_parent(dev), dev)); 71} 72 |
73static __inline int 74ofw_bus_map_intr(device_t dev, phandle_t iparent, int irq) 75{ 76 return (OFW_BUS_MAP_INTR(dev, dev, iparent, irq)); 77} 78 79static __inline int 80ofw_bus_config_intr(device_t dev, int irq, int sense) 81{ 82 return (OFW_BUS_CONFIG_INTR(dev, dev, irq, sense)); 83} 84 |
|
73#endif /* !_DEV_OFW_OFW_BUS_H_ */ | 85#endif /* !_DEV_OFW_OFW_BUS_H_ */ |