Deleted Added
full compact
econa.c (266363) econa.c (278613)
1/*-
2 * Copyright (c) 2009 Yohanes Nugroho <yohanes@gmail.com>
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

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

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2009 Yohanes Nugroho <yohanes@gmail.com>
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

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

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: stable/10/sys/arm/cavium/cns11xx/econa.c 257342 2013-10-29 14:32:33Z nwhitehorn $");
28__FBSDID("$FreeBSD: stable/10/sys/arm/cavium/cns11xx/econa.c 278613 2015-02-12 03:50:33Z ian $");
29
30#include <sys/param.h>
31#include <sys/systm.h>
32#include <sys/bus.h>
33#include <sys/types.h>
34#include <sys/kernel.h>
35#include <sys/malloc.h>
36#include <sys/module.h>
37#include <sys/rman.h>
38#include <vm/vm.h>
39#include <vm/vm_kern.h>
40#include <vm/pmap.h>
41#include <vm/vm_page.h>
42#include <vm/vm_extern.h>
43
44#define _ARM32_BUS_DMA_PRIVATE
29
30#include <sys/param.h>
31#include <sys/systm.h>
32#include <sys/bus.h>
33#include <sys/types.h>
34#include <sys/kernel.h>
35#include <sys/malloc.h>
36#include <sys/module.h>
37#include <sys/rman.h>
38#include <vm/vm.h>
39#include <vm/vm_kern.h>
40#include <vm/pmap.h>
41#include <vm/vm_page.h>
42#include <vm/vm_extern.h>
43
44#define _ARM32_BUS_DMA_PRIVATE
45#include <machine/armreg.h>
45#include <machine/bus.h>
46#include <machine/intr.h>
47#include <machine/resource.h>
48
49#include "econa_reg.h"
50#include "econa_var.h"
51
52static struct econa_softc *econa_softc;

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

503 }
504
505 get_system_clock();
506
507 econa_cpu_add_builtin_children(dev, sc);
508
509 bus_generic_probe(dev);
510 bus_generic_attach(dev);
46#include <machine/bus.h>
47#include <machine/intr.h>
48#include <machine/resource.h>
49
50#include "econa_reg.h"
51#include "econa_var.h"
52
53static struct econa_softc *econa_softc;

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

504 }
505
506 get_system_clock();
507
508 econa_cpu_add_builtin_children(dev, sc);
509
510 bus_generic_probe(dev);
511 bus_generic_attach(dev);
511 enable_interrupts(I32_bit | F32_bit);
512 enable_interrupts(PSR_I | PSR_F);
512
513 return (0);
514}
515
516static struct resource *
517econa_alloc_resource(device_t dev, device_t child, int type, int *rid,
518 u_long start, u_long end, u_long count, u_int flags)
519{

--- 240 unchanged lines hidden ---
513
514 return (0);
515}
516
517static struct resource *
518econa_alloc_resource(device_t dev, device_t child, int type, int *rid,
519 u_long start, u_long end, u_long count, u_int flags)
520{

--- 240 unchanged lines hidden ---