ofw_bus_if.m (261351) | ofw_bus_if.m (261403) |
---|---|
1#- 2# Copyright (c) 2001, 2003 by Thomas Moestl <tmm@FreeBSD.org> 3# Copyright (c) 2004, 2005 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, 2005 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_if.m 261351 2014-02-01 17:17:35Z nwhitehorn $ | 26# $FreeBSD: head/sys/dev/ofw/ofw_bus_if.m 261403 2014-02-02 16:41:54Z nwhitehorn $ |
27 28# Interface for retrieving the package handle and a subset, namely 29# 'compatible', 'device_type', 'model' and 'name', of the standard 30# properties of a device on an Open Firmware assisted bus for use 31# in device drivers. The rest of the standard properties, 'address', 32# 'interrupts', 'reg' and 'status', are not covered by this interface 33# as they are expected to be only of interest in the respective bus 34# driver. --- 6 unchanged lines hidden (view full) --- 41 42HEADER { 43 struct ofw_bus_devinfo { 44 phandle_t obd_node; 45 char *obd_compat; 46 char *obd_model; 47 char *obd_name; 48 char *obd_type; | 27 28# Interface for retrieving the package handle and a subset, namely 29# 'compatible', 'device_type', 'model' and 'name', of the standard 30# properties of a device on an Open Firmware assisted bus for use 31# in device drivers. The rest of the standard properties, 'address', 32# 'interrupts', 'reg' and 'status', are not covered by this interface 33# as they are expected to be only of interest in the respective bus 34# driver. --- 6 unchanged lines hidden (view full) --- 41 42HEADER { 43 struct ofw_bus_devinfo { 44 phandle_t obd_node; 45 char *obd_compat; 46 char *obd_model; 47 char *obd_name; 48 char *obd_type; |
49 char *obd_status; |
|
49 }; 50}; 51 52CODE { 53 static ofw_bus_get_devinfo_t ofw_bus_default_get_devinfo; 54 static ofw_bus_get_compat_t ofw_bus_default_get_compat; 55 static ofw_bus_get_model_t ofw_bus_default_get_model; 56 static ofw_bus_get_name_t ofw_bus_default_get_name; --- 116 unchanged lines hidden --- | 50 }; 51}; 52 53CODE { 54 static ofw_bus_get_devinfo_t ofw_bus_default_get_devinfo; 55 static ofw_bus_get_compat_t ofw_bus_default_get_compat; 56 static ofw_bus_get_model_t ofw_bus_default_get_model; 57 static ofw_bus_get_name_t ofw_bus_default_get_name; --- 116 unchanged lines hidden --- |