Deleted Added
full compact
3c3
< # Copyright (c) 2004 by Marius Strobl <marius@FreeBSD.org>
---
> # Copyright (c) 2004, 2005 by Marius Strobl <marius@FreeBSD.org>
26c26
< # $FreeBSD: head/sys/dev/ofw/ofw_bus_if.m 139749 2005-01-06 01:43:34Z imp $
---
> # $FreeBSD: head/sys/dev/ofw/ofw_bus_if.m 152683 2005-11-22 16:37:45Z marius $
27a28,35
> # Interface for retrieving the package handle and a subset, namely
> # 'compatible', 'device_type', 'model' and 'name', of the standard
> # properties of a device on an Open Firmware assisted bus for use
> # in device drivers. The rest of the standard properties, 'address',
> # 'interrupts', 'reg' and 'status', are not covered by this interface
> # as they are expected to be only of interest in the respective bus
> # driver.
>
29d36
< #include <machine/bus.h>
34a42,51
> HEADER {
> struct ofw_bus_devinfo {
> phandle_t obd_node;
> char *obd_compat;
> char *obd_model;
> char *obd_name;
> char *obd_type;
> };
> };
>
35a53
> static ofw_bus_get_devinfo_t ofw_bus_default_get_devinfo;
41a60,66
> static const struct ofw_bus_devinfo *
> ofw_bus_default_get_devinfo(device_t bus, device_t dev)
> {
>
> return (NULL);
> }
>
77a103,111
> # Get the ofw_bus_devinfo struct for the device dev on the bus. Used for bus
> # drivers which use the generic methods in ofw_bus_subr.c to implement the
> # reset of this interface. The default method will return NULL, which means
> # there is no such struct associated with the device.
> METHOD const struct ofw_bus_devinfo * get_devinfo {
> device_t bus;
> device_t dev;
> } DEFAULT ofw_bus_default_get_devinfo;
>