gt_pci.c (258780) | gt_pci.c (287882) |
---|---|
1/* $NetBSD: gt_pci.c,v 1.4 2003/07/15 00:24:54 lukem Exp $ */ 2 3/*- 4 * Copyright (c) 2001, 2002 Wasabi Systems, Inc. 5 * All rights reserved. 6 * 7 * Written by Jason R. Thorpe for Wasabi Systems, Inc. 8 * --- 26 unchanged lines hidden (view full) --- 35 * POSSIBILITY OF SUCH DAMAGE. 36 */ 37 38/* 39 * PCI configuration support for gt I/O Processor chip. 40 */ 41 42#include <sys/cdefs.h> | 1/* $NetBSD: gt_pci.c,v 1.4 2003/07/15 00:24:54 lukem Exp $ */ 2 3/*- 4 * Copyright (c) 2001, 2002 Wasabi Systems, Inc. 5 * All rights reserved. 6 * 7 * Written by Jason R. Thorpe for Wasabi Systems, Inc. 8 * --- 26 unchanged lines hidden (view full) --- 35 * POSSIBILITY OF SUCH DAMAGE. 36 */ 37 38/* 39 * PCI configuration support for gt I/O Processor chip. 40 */ 41 42#include <sys/cdefs.h> |
43__FBSDID("$FreeBSD: head/sys/mips/malta/gt_pci.c 258780 2013-11-30 22:17:27Z eadler $"); | 43__FBSDID("$FreeBSD: head/sys/mips/malta/gt_pci.c 287882 2015-09-16 23:34:51Z zbb $"); |
44 45#include <sys/param.h> 46#include <sys/systm.h> 47 48#include <sys/bus.h> 49#include <sys/endian.h> 50#include <sys/interrupt.h> 51#include <sys/malloc.h> --- 358 unchanged lines hidden (view full) --- 410 if ((bus_setup_intr(dev, sc->sc_irq, INTR_TYPE_MISC, 411 gt_pci_intr, NULL, sc, &sc->sc_ih))) { 412 device_printf(dev, 413 "WARNING: unable to register interrupt handler\n"); 414 return ENXIO; 415 } 416 417 /* Initialize memory and i/o rmans. */ | 44 45#include <sys/param.h> 46#include <sys/systm.h> 47 48#include <sys/bus.h> 49#include <sys/endian.h> 50#include <sys/interrupt.h> 51#include <sys/malloc.h> --- 358 unchanged lines hidden (view full) --- 410 if ((bus_setup_intr(dev, sc->sc_irq, INTR_TYPE_MISC, 411 gt_pci_intr, NULL, sc, &sc->sc_ih))) { 412 device_printf(dev, 413 "WARNING: unable to register interrupt handler\n"); 414 return ENXIO; 415 } 416 417 /* Initialize memory and i/o rmans. */ |
418 device_add_child(dev, "pci", busno); | 418 device_add_child(dev, "pci", -1); |
419 return (bus_generic_attach(dev)); 420} 421 422static int 423gt_pci_maxslots(device_t dev) 424{ 425 return (PCI_SLOTMAX); 426} --- 348 unchanged lines hidden --- | 419 return (bus_generic_attach(dev)); 420} 421 422static int 423gt_pci_maxslots(device_t dev) 424{ 425 return (PCI_SLOTMAX); 426} --- 348 unchanged lines hidden --- |