Deleted Added
full compact
bus_if.m (300073) bus_if.m (300158)
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 300073 2016-05-17 19:34:07Z jhb $
26# $FreeBSD: head/sys/kern/bus_if.m 300158 2016-05-18 16:25:34Z rpokala $
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

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

525METHOD int child_present {
526 device_t _dev;
527 device_t _child;
528} DEFAULT bus_generic_child_present;
529
530/**
531 * @brief Returns the pnp info for this device.
532 *
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

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

525METHOD int child_present {
526 device_t _dev;
527 device_t _child;
528} DEFAULT bus_generic_child_present;
529
530/**
531 * @brief Returns the pnp info for this device.
532 *
533 * Return it as a string. If the string is insufficient for the
534 * storage, then return EOVERFLOW.
533 * Return it as a string. If the storage is insufficient for the
534 * string, then return EOVERFLOW.
535 *
536 * The string must be formatted as a space-separated list of
537 * name=value pairs. Names may only contain alphanumeric characters,
538 * underscores ('_') and hyphens ('-'). Values can contain any
539 * non-whitespace characters. Values containing whitespace can be
540 * quoted with double quotes ('"'). Double quotes and backslashes in
541 * quoted values can be escaped with backslashes ('\').
542 *

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

551 device_t _child;
552 char *_buf;
553 size_t _buflen;
554};
555
556/**
557 * @brief Returns the location for this device.
558 *
535 *
536 * The string must be formatted as a space-separated list of
537 * name=value pairs. Names may only contain alphanumeric characters,
538 * underscores ('_') and hyphens ('-'). Values can contain any
539 * non-whitespace characters. Values containing whitespace can be
540 * quoted with double quotes ('"'). Double quotes and backslashes in
541 * quoted values can be escaped with backslashes ('\').
542 *

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

551 device_t _child;
552 char *_buf;
553 size_t _buflen;
554};
555
556/**
557 * @brief Returns the location for this device.
558 *
559 * Return it as a string. If the string is insufficient for the
560 * storage, then return EOVERFLOW.
559 * Return it as a string. If the storage is insufficient for the
560 * string, then return EOVERFLOW.
561 *
562 * The string must be formatted as a space-separated list of
563 * name=value pairs. Names may only contain alphanumeric characters,
564 * underscores ('_') and hyphens ('-'). Values can contain any
565 * non-whitespace characters. Values containing whitespace can be
566 * quoted with double quotes ('"'). Double quotes and backslashes in
567 * quoted values can be escaped with backslashes ('\').
568 *

--- 197 unchanged lines hidden ---
561 *
562 * The string must be formatted as a space-separated list of
563 * name=value pairs. Names may only contain alphanumeric characters,
564 * underscores ('_') and hyphens ('-'). Values can contain any
565 * non-whitespace characters. Values containing whitespace can be
566 * quoted with double quotes ('"'). Double quotes and backslashes in
567 * quoted values can be escaped with backslashes ('\').
568 *

--- 197 unchanged lines hidden ---