bus_if.m (298933) | bus_if.m (298951) |
---|---|
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 298933 2016-05-02 18:00:38Z jhb $ | 26# $FreeBSD: head/sys/kern/bus_if.m 298951 2016-05-03 01:17:40Z jhb $ |
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 --- 691 unchanged lines hidden (view full) --- 726 * @param _child the child device 727 * @param _domain a pointer to the bus's domain handle identifier 728 */ 729METHOD int get_domain { 730 device_t _dev; 731 device_t _child; 732 int *_domain; 733} DEFAULT bus_generic_get_domain; | 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 --- 691 unchanged lines hidden (view full) --- 726 * @param _child the child device 727 * @param _domain a pointer to the bus's domain handle identifier 728 */ 729METHOD int get_domain { 730 device_t _dev; 731 device_t _child; 732 int *_domain; 733} DEFAULT bus_generic_get_domain; |
734 735/** 736 * @brief Request a set of CPUs 737 * 738 * @param _dev the bus device 739 * @param _child the child device 740 * @param _op type of CPUs to request 741 * @param _setsize the size of the set passed in _cpuset 742 * @param _cpuset a pointer to a cpuset to receive the requested 743 * set of CPUs 744 */ 745METHOD int get_cpus { 746 device_t _dev; 747 device_t _child; 748 enum cpu_sets _op; 749 size_t _setsize; 750 cpuset_t *_cpuset; 751} DEFAULT bus_generic_get_cpus; | |