Deleted Added
full compact
ar724x_pci.c (285121) ar724x_pci.c (287882)
1/*-
2 * Copyright (c) 2009, Oleksandr Tymoshenko <gonzo@FreeBSD.org>
3 * Copyright (c) 2011, Luiz Otavio O Souza.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 */
28
29#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2009, Oleksandr Tymoshenko <gonzo@FreeBSD.org>
3 * Copyright (c) 2011, Luiz Otavio O Souza.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 */
28
29#include <sys/cdefs.h>
30__FBSDID("$FreeBSD: head/sys/mips/atheros/ar724x_pci.c 285121 2015-07-04 03:05:57Z adrian $");
30__FBSDID("$FreeBSD: head/sys/mips/atheros/ar724x_pci.c 287882 2015-09-16 23:34:51Z zbb $");
31
32#include "opt_ar71xx.h"
33
34#include <sys/param.h>
35#include <sys/systm.h>
36
37#include <sys/bus.h>
38#include <sys/interrupt.h>

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

424#endif /* AR71XX_ATH_EEPROM */
425
426 /* Fixup internal PCI bridge */
427 ar724x_pci_write_config(dev, 0, 0, 0, PCIR_COMMAND,
428 PCIM_CMD_BUSMASTEREN | PCIM_CMD_MEMEN
429 | PCIM_CMD_SERRESPEN | PCIM_CMD_BACKTOBACK
430 | PCIM_CMD_PERRESPEN | PCIM_CMD_MWRICEN, 2);
431
31
32#include "opt_ar71xx.h"
33
34#include <sys/param.h>
35#include <sys/systm.h>
36
37#include <sys/bus.h>
38#include <sys/interrupt.h>

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

424#endif /* AR71XX_ATH_EEPROM */
425
426 /* Fixup internal PCI bridge */
427 ar724x_pci_write_config(dev, 0, 0, 0, PCIR_COMMAND,
428 PCIM_CMD_BUSMASTEREN | PCIM_CMD_MEMEN
429 | PCIM_CMD_SERRESPEN | PCIM_CMD_BACKTOBACK
430 | PCIM_CMD_PERRESPEN | PCIM_CMD_MWRICEN, 2);
431
432 device_add_child(dev, "pci", busno);
432 device_add_child(dev, "pci", -1);
433 return (bus_generic_attach(dev));
434}
435
436static int
437ar724x_pci_read_ivar(device_t dev, device_t child, int which, uintptr_t *result)
438{
439 struct ar71xx_pci_softc *sc = device_get_softc(dev);
440

--- 226 unchanged lines hidden ---
433 return (bus_generic_attach(dev));
434}
435
436static int
437ar724x_pci_read_ivar(device_t dev, device_t child, int which, uintptr_t *result)
438{
439 struct ar71xx_pci_softc *sc = device_get_softc(dev);
440

--- 226 unchanged lines hidden ---