ofw_bus_if.m (265969) | ofw_bus_if.m (266105) |
---|---|
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: stable/10/sys/dev/ofw/ofw_bus_if.m 265969 2014-05-13 18:06:26Z ian $ | 26# $FreeBSD: stable/10/sys/dev/ofw/ofw_bus_if.m 266105 2014-05-15 01:27:53Z loos $ |
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. --- 118 unchanged lines hidden (view full) --- 153# Get the firmware name for the device dev on the bus. The default method will 154# return NULL, which means the device doesn't have such a property. 155METHOD const char * get_name { 156 device_t bus; 157 device_t dev; 158} DEFAULT ofw_bus_default_get_name; 159 160# Get the firmware node for the device dev on the bus. The default method will | 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. --- 118 unchanged lines hidden (view full) --- 153# Get the firmware name for the device dev on the bus. The default method will 154# return NULL, which means the device doesn't have such a property. 155METHOD const char * get_name { 156 device_t bus; 157 device_t dev; 158} DEFAULT ofw_bus_default_get_name; 159 160# Get the firmware node for the device dev on the bus. The default method will |
161# return 0, which signals that there is no such node. | 161# return -1, which signals that there is no such node. |
162METHOD phandle_t get_node { 163 device_t bus; 164 device_t dev; 165} DEFAULT ofw_bus_default_get_node; 166 167# Get the firmware device type for the device dev on the bus. The default 168# method will return NULL, which means the device doesn't have such a property. 169METHOD const char * get_type { --- 22 unchanged lines hidden --- | 162METHOD phandle_t get_node { 163 device_t bus; 164 device_t dev; 165} DEFAULT ofw_bus_default_get_node; 166 167# Get the firmware device type for the device dev on the bus. The default 168# method will return NULL, which means the device doesn't have such a property. 169METHOD const char * get_type { --- 22 unchanged lines hidden --- |