ixp425_pci.c (259329) | ixp425_pci.c (278613) |
---|---|
1/* $NetBSD: ixp425_pci.c,v 1.5 2006/04/10 03:36:03 simonb Exp $ */ 2 3/* 4 * Copyright (c) 2003 5 * Ichiro FUKUHARA <ichiro@ichiro.org>. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 20 unchanged lines hidden (view full) --- 29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33 * SUCH DAMAGE. 34 */ 35 36#include <sys/cdefs.h> | 1/* $NetBSD: ixp425_pci.c,v 1.5 2006/04/10 03:36:03 simonb Exp $ */ 2 3/* 4 * Copyright (c) 2003 5 * Ichiro FUKUHARA <ichiro@ichiro.org>. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 20 unchanged lines hidden (view full) --- 29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33 * SUCH DAMAGE. 34 */ 35 36#include <sys/cdefs.h> |
37__FBSDID("$FreeBSD: stable/10/sys/arm/xscale/ixp425/ixp425_pci.c 259329 2013-12-13 20:43:11Z ian $"); | 37__FBSDID("$FreeBSD: stable/10/sys/arm/xscale/ixp425/ixp425_pci.c 278613 2015-02-12 03:50:33Z ian $"); |
38 39#include <sys/param.h> 40#include <sys/systm.h> 41#include <sys/malloc.h> 42#define _ARM32_BUS_DMA_PRIVATE 43#include <sys/bus.h> 44#include <sys/kernel.h> 45#include <sys/module.h> 46#include <sys/rman.h> 47 48#include <dev/pci/pcivar.h> 49 | 38 39#include <sys/param.h> 40#include <sys/systm.h> 41#include <sys/malloc.h> 42#define _ARM32_BUS_DMA_PRIVATE 43#include <sys/bus.h> 44#include <sys/kernel.h> 45#include <sys/module.h> 46#include <sys/rman.h> 47 48#include <dev/pci/pcivar.h> 49 |
50#include <machine/armreg.h> |
|
50#include <machine/bus.h> 51#include <machine/cpu.h> 52#include <machine/pcb.h> 53 54#include <vm/vm.h> 55#include <vm/pmap.h> 56#include <vm/vm_extern.h> 57 --- 7 unchanged lines hidden (view full) --- 65extern struct ixp425_softc *ixp425_softc; 66 67#define PCI_CSR_WRITE_4(sc, reg, data) \ 68 bus_write_4(sc->sc_csr, reg, data) 69 70#define PCI_CSR_READ_4(sc, reg) \ 71 bus_read_4(sc->sc_csr, reg) 72 | 51#include <machine/bus.h> 52#include <machine/cpu.h> 53#include <machine/pcb.h> 54 55#include <vm/vm.h> 56#include <vm/pmap.h> 57#include <vm/vm_extern.h> 58 --- 7 unchanged lines hidden (view full) --- 66extern struct ixp425_softc *ixp425_softc; 67 68#define PCI_CSR_WRITE_4(sc, reg, data) \ 69 bus_write_4(sc->sc_csr, reg, data) 70 71#define PCI_CSR_READ_4(sc, reg) \ 72 bus_read_4(sc->sc_csr, reg) 73 |
73#define PCI_CONF_LOCK(s) (s) = disable_interrupts(I32_bit) | 74#define PCI_CONF_LOCK(s) (s) = disable_interrupts(PSR_I) |
74#define PCI_CONF_UNLOCK(s) restore_interrupts((s)) 75 76static device_probe_t ixppcib_probe; 77static device_attach_t ixppcib_attach; 78static bus_read_ivar_t ixppcib_read_ivar; 79static bus_write_ivar_t ixppcib_write_ivar; 80static bus_setup_intr_t ixppcib_setup_intr; 81static bus_teardown_intr_t ixppcib_teardown_intr; --- 395 unchanged lines hidden --- | 75#define PCI_CONF_UNLOCK(s) restore_interrupts((s)) 76 77static device_probe_t ixppcib_probe; 78static device_attach_t ixppcib_attach; 79static bus_read_ivar_t ixppcib_read_ivar; 80static bus_write_ivar_t ixppcib_write_ivar; 81static bus_setup_intr_t ixppcib_setup_intr; 82static bus_teardown_intr_t ixppcib_teardown_intr; --- 395 unchanged lines hidden --- |