Deleted Added
sdiff udiff text old ( 139749 ) new ( 152683 )
full compact
1#-
2# Copyright (c) 2001, 2003 by Thomas Moestl <tmm@FreeBSD.org>
3# Copyright (c) 2004 by Marius Strobl
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# 1. Redistributions of source code must retain the above copyright
10# notice, this list of conditions and the following disclaimer.
11# 2. Redistributions in binary form must reproduce the above copyright

--- 6 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 139749 2005-01-06 01:43:34Z imp $
27
28#include <sys/bus.h>
29#include <machine/bus.h>
30
31#include <dev/ofw/openfirm.h>
32
33INTERFACE ofw_bus;
34
35CODE {
36 static ofw_bus_get_compat_t ofw_bus_default_get_compat;
37 static ofw_bus_get_model_t ofw_bus_default_get_model;
38 static ofw_bus_get_name_t ofw_bus_default_get_name;
39 static ofw_bus_get_node_t ofw_bus_default_get_node;
40 static ofw_bus_get_type_t ofw_bus_default_get_type;
41
42 static const char *
43 ofw_bus_default_get_compat(device_t bus, device_t dev)
44 {
45
46 return (NULL);
47 }
48
49 static const char *

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

70 static const char *
71 ofw_bus_default_get_type(device_t bus, device_t dev)
72 {
73
74 return (NULL);
75 }
76};
77
78# Get the alternate firmware name for the device dev on the bus. The default
79# method will return NULL, which means the device doesn't have such a property.
80METHOD const char * get_compat {
81 device_t bus;
82 device_t dev;
83} DEFAULT ofw_bus_default_get_compat;
84
85# Get the firmware model name for the device dev on the bus. The default method

--- 26 unchanged lines hidden ---