ar71xx_pci.c (285121) | ar71xx_pci.c (287882) |
---|---|
1/*- 2 * Copyright (c) 2009, Oleksandr Tymoshenko <gonzo@FreeBSD.org> 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 --- 12 unchanged lines hidden (view full) --- 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 */ 27 28#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2009, Oleksandr Tymoshenko <gonzo@FreeBSD.org> 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 --- 12 unchanged lines hidden (view full) --- 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 */ 27 28#include <sys/cdefs.h> |
29__FBSDID("$FreeBSD: head/sys/mips/atheros/ar71xx_pci.c 285121 2015-07-04 03:05:57Z adrian $"); | 29__FBSDID("$FreeBSD: head/sys/mips/atheros/ar71xx_pci.c 287882 2015-09-16 23:34:51Z zbb $"); |
30 31#include "opt_ar71xx.h" 32 33#include <sys/param.h> 34#include <sys/systm.h> 35 36#include <sys/bus.h> 37#include <sys/interrupt.h> --- 419 unchanged lines hidden (view full) --- 457 * Hard-code a check for slot 17 and 18 - these are 458 * the two PCI slots which may have a PCI device that 459 * requires "fixing". 460 */ 461 ar71xx_pci_slot_fixup(dev, 0, 17, 0); 462 ar71xx_pci_slot_fixup(dev, 0, 18, 0); 463#endif /* AR71XX_ATH_EEPROM */ 464 | 30 31#include "opt_ar71xx.h" 32 33#include <sys/param.h> 34#include <sys/systm.h> 35 36#include <sys/bus.h> 37#include <sys/interrupt.h> --- 419 unchanged lines hidden (view full) --- 457 * Hard-code a check for slot 17 and 18 - these are 458 * the two PCI slots which may have a PCI device that 459 * requires "fixing". 460 */ 461 ar71xx_pci_slot_fixup(dev, 0, 17, 0); 462 ar71xx_pci_slot_fixup(dev, 0, 18, 0); 463#endif /* AR71XX_ATH_EEPROM */ 464 |
465 device_add_child(dev, "pci", busno); | 465 device_add_child(dev, "pci", -1); |
466 return (bus_generic_attach(dev)); 467} 468 469static int 470ar71xx_pci_read_ivar(device_t dev, device_t child, int which, 471 uintptr_t *result) 472{ 473 struct ar71xx_pci_softc *sc = device_get_softc(dev); --- 233 unchanged lines hidden --- | 466 return (bus_generic_attach(dev)); 467} 468 469static int 470ar71xx_pci_read_ivar(device_t dev, device_t child, int which, 471 uintptr_t *result) 472{ 473 struct ar71xx_pci_softc *sc = device_get_softc(dev); --- 233 unchanged lines hidden --- |