bus_if.m (294883) | bus_if.m (295755) |
---|---|
1#- 2# Copyright (c) 1998-2004 Doug Rabson 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions 7# are met: 8# 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24# SUCH DAMAGE. 25# | 1#- 2# Copyright (c) 1998-2004 Doug Rabson 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions 7# are met: 8# 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24# SUCH DAMAGE. 25# |
26# $FreeBSD: head/sys/kern/bus_if.m 294883 2016-01-27 02:23:54Z jhibbits $ | 26# $FreeBSD: head/sys/kern/bus_if.m 295755 2016-02-18 13:00:04Z zbb $ |
27# 28 29#include <sys/types.h> 30#include <sys/systm.h> 31#include <sys/bus.h> 32 33/** 34 * @defgroup BUS bus - KObj methods for drivers of devices with children --- 597 unchanged lines hidden (view full) --- 632 * @param _child the device to which the tag will belong 633 */ 634METHOD bus_dma_tag_t get_dma_tag { 635 device_t _dev; 636 device_t _child; 637} DEFAULT bus_generic_get_dma_tag; 638 639/** | 27# 28 29#include <sys/types.h> 30#include <sys/systm.h> 31#include <sys/bus.h> 32 33/** 34 * @defgroup BUS bus - KObj methods for drivers of devices with children --- 597 unchanged lines hidden (view full) --- 632 * @param _child the device to which the tag will belong 633 */ 634METHOD bus_dma_tag_t get_dma_tag { 635 device_t _dev; 636 device_t _child; 637} DEFAULT bus_generic_get_dma_tag; 638 639/** |
640 * @brief Returns bus_space_tag_t for use w/ devices on the bus. 641 * 642 * @param _dev the parent device of @p _child 643 * @param _child the device to which the tag will belong 644 */ 645METHOD bus_space_tag_t get_bus_tag { 646 device_t _dev; 647 device_t _child; 648} DEFAULT bus_generic_get_bus_tag; 649 650/** |
|
640 * @brief Allow the bus to determine the unit number of a device. 641 * 642 * @param _dev the parent device of @p _child 643 * @param _child the device whose unit is to be wired 644 * @param _name the name of the device's new devclass 645 * @param _unitp a pointer to the device's new unit value 646 */ 647METHOD void hint_device_unit { --- 62 unchanged lines hidden --- | 651 * @brief Allow the bus to determine the unit number of a device. 652 * 653 * @param _dev the parent device of @p _child 654 * @param _child the device whose unit is to be wired 655 * @param _name the name of the device's new devclass 656 * @param _unitp a pointer to the device's new unit value 657 */ 658METHOD void hint_device_unit { --- 62 unchanged lines hidden --- |