Deleted Added
full compact
at91sam9x5.c (237742) at91sam9x5.c (237743)
1/*-
2 * Copyright (c) 2005 Olivier Houchard. All rights reserved.
3 * Copyright (c) 2010 Greg Ansley. All rights reserved.
4 * Copyright (c) 2012 M. Warner Losh.. 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:

--- 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) 2005 Olivier Houchard. All rights reserved.
3 * Copyright (c) 2010 Greg Ansley. All rights reserved.
4 * Copyright (c) 2012 M. Warner Losh.. 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:

--- 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/arm/at91/at91sam9x25.c 237742 2012-06-29 04:18:52Z imp $");
29__FBSDID("$FreeBSD: head/sys/arm/at91/at91sam9x25.c 237743 2012-06-29 04:49:50Z imp $");
30
31#include <sys/param.h>
32#include <sys/systm.h>
33#include <sys/bus.h>
34#include <sys/kernel.h>
35#include <sys/malloc.h>
36#include <sys/module.h>
37

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

54};
55
56/*
57 * Standard priority levels for the system. 0 is lowest and 7 is highest.
58 * These values are the ones Atmel uses for its Linux port
59 */
60static const int at91_irq_prio[32] =
61{
30
31#include <sys/param.h>
32#include <sys/systm.h>
33#include <sys/bus.h>
34#include <sys/kernel.h>
35#include <sys/malloc.h>
36#include <sys/module.h>
37

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

54};
55
56/*
57 * Standard priority levels for the system. 0 is lowest and 7 is highest.
58 * These values are the ones Atmel uses for its Linux port
59 */
60static const int at91_irq_prio[32] =
61{
62 7, /* Advanced Interrupt Controller */
62 7, /* Advanced Interrupt Controller (FIQ) */
63 7, /* System Peripherals */
63 7, /* System Peripherals */
64 1, /* Parallel IO Controller A */
65 1, /* Parallel IO Controller B */
66 1, /* Parallel IO Controller C */
67 0, /* Analog-to-Digital Converter */
64 1, /* Parallel IO Controller A and B */
65 1, /* Parallel IO Controller C and D */
66 4, /* Soft Modem */
68 5, /* USART 0 */
69 5, /* USART 1 */
70 5, /* USART 2 */
67 5, /* USART 0 */
68 5, /* USART 1 */
69 5, /* USART 2 */
71 0, /* Multimedia Card Interface */
72 2, /* USB Device Port */
73 6, /* Two-Wire Interface */
70 5, /* USART 3 */
71 6, /* Two-Wire Interface 0 */
72 6, /* Two-Wire Interface 1 */
73 6, /* Two-Wire Interface 2 */
74 0, /* Multimedia Card Interface 0 */
74 5, /* Serial Peripheral Interface 0 */
75 5, /* Serial Peripheral Interface 1 */
75 5, /* Serial Peripheral Interface 0 */
76 5, /* Serial Peripheral Interface 1 */
76 5, /* Serial Synchronous Controller */
77 0, /* (reserved) */
78 0, /* (reserved) */
79 0, /* Timer Counter 0 */
80 0, /* Timer Counter 1 */
81 0, /* Timer Counter 2 */
82 2, /* USB Host port */
83 3, /* Ethernet */
84 0, /* Image Sensor Interface */
85 5, /* USART 3 */
86 5, /* USART 4 */
87 5, /* USART 5 */
88 0, /* Timer Counter 3 */
89 0, /* Timer Counter 4 */
90 0, /* Timer Counter 5 */
91 0, /* Advanced Interrupt Controller IRQ0 */
92 0, /* Advanced Interrupt Controller IRQ1 */
93 0, /* Advanced Interrupt Controller IRQ2 */
77 5, /* UART 0 */
78 5, /* UART 1 */
79 0, /* Timer Counter 0, 1, 2, 3, 4 and 5 */
80 0, /* Pulse Width Modulation Controller */
81 0, /* ADC Controller */
82 0, /* DMA Controller 0 */
83 0, /* DMA Controller 1 */
84 2, /* USB Host High Speed port */
85 2, /* USB Device High speed port */
86 3, /* Ethernet MAC 0 */
87 3, /* LDC Controller or Image Sensor Interface */
88 0, /* Multimedia Card Interface 1 */
89 3, /* Ethernet MAC 1 */
90 4, /* Synchronous Serial Interface */
91 4, /* CAN Controller 0 */
92 4, /* CAN Controller 1 */
93 0, /* Advanced Interrupt Controller (IRQ0) */
94};
95
96#define DEVICE(_name, _id, _unit) \
97 { \
98 _name, _unit, \
99 AT91SAM9X25_ ## _id ##_BASE, \
100 AT91SAM9X25_ ## _id ## _SIZE, \
101 AT91SAM9X25_IRQ_ ## _id \

--- 242 unchanged lines hidden ---
94};
95
96#define DEVICE(_name, _id, _unit) \
97 { \
98 _name, _unit, \
99 AT91SAM9X25_ ## _id ##_BASE, \
100 AT91SAM9X25_ ## _id ## _SIZE, \
101 AT91SAM9X25_IRQ_ ## _id \

--- 242 unchanged lines hidden ---