Deleted Added
full compact
nexus.c (136521) nexus.c (143785)
1/*-
2 * Copyright 1998 Massachusetts Institute of Technology
3 *
4 * Permission to use, copy, modify, and distribute this software and
5 * its documentation for any purpose and without fee is hereby
6 * granted, provided that both the above copyright notice and this
7 * permission notice appear in all copies, that both the above
8 * copyright notice and this permission notice appear in all

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

23 * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
25 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
26 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 */
29
30#include <sys/cdefs.h>
1/*-
2 * Copyright 1998 Massachusetts Institute of Technology
3 *
4 * Permission to use, copy, modify, and distribute this software and
5 * its documentation for any purpose and without fee is hereby
6 * granted, provided that both the above copyright notice and this
7 * permission notice appear in all copies, that both the above
8 * copyright notice and this permission notice appear in all

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

23 * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
25 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
26 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 */
29
30#include <sys/cdefs.h>
31__FBSDID("$FreeBSD: head/sys/i386/i386/nexus.c 136521 2004-10-14 22:36:47Z njl $");
31__FBSDID("$FreeBSD: head/sys/i386/i386/nexus.c 143785 2005-03-18 05:19:50Z imp $");
32
33/*
34 * This code implements a `root nexus' for Intel Architecture
35 * machines. The function of the root nexus is to serve as an
36 * attachment point for both processors and buses, and to manage
37 * resources which are common to all of them. In particular,
38 * this code implements the core resource managers for interrupt
39 * requests, DMA requests (which rightfully should be a part of the

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

244
245static int
246nexus_print_all_resources(device_t dev)
247{
248 struct nexus_device *ndev = DEVTONX(dev);
249 struct resource_list *rl = &ndev->nx_resources;
250 int retval = 0;
251
32
33/*
34 * This code implements a `root nexus' for Intel Architecture
35 * machines. The function of the root nexus is to serve as an
36 * attachment point for both processors and buses, and to manage
37 * resources which are common to all of them. In particular,
38 * this code implements the core resource managers for interrupt
39 * requests, DMA requests (which rightfully should be a part of the

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

244
245static int
246nexus_print_all_resources(device_t dev)
247{
248 struct nexus_device *ndev = DEVTONX(dev);
249 struct resource_list *rl = &ndev->nx_resources;
250 int retval = 0;
251
252 if (SLIST_FIRST(rl))
252 if (STAILQ_FIRST(rl))
253 retval += printf(" at");
254
255 retval += resource_list_print_type(rl, "port", SYS_RES_IOPORT, "%#lx");
256 retval += resource_list_print_type(rl, "iomem", SYS_RES_MEMORY, "%#lx");
257 retval += resource_list_print_type(rl, "irq", SYS_RES_IRQ, "%ld");
258
259 return retval;
260}

--- 351 unchanged lines hidden ---
253 retval += printf(" at");
254
255 retval += resource_list_print_type(rl, "port", SYS_RES_IOPORT, "%#lx");
256 retval += resource_list_print_type(rl, "iomem", SYS_RES_MEMORY, "%#lx");
257 retval += resource_list_print_type(rl, "irq", SYS_RES_IRQ, "%ld");
258
259 return retval;
260}

--- 351 unchanged lines hidden ---