Deleted Added
full compact
mvreg.h (294416) mvreg.h (294426)
1/*-
2 * Copyright (C) 2007-2011 MARVELL INTERNATIONAL LTD.
3 * All rights reserved.
4 *
5 * Developed by Semihalf.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

23 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 * SUCH DAMAGE.
30 *
1/*-
2 * Copyright (C) 2007-2011 MARVELL INTERNATIONAL LTD.
3 * All rights reserved.
4 *
5 * Developed by Semihalf.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

23 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 * SUCH DAMAGE.
30 *
31 * $FreeBSD: head/sys/arm/mv/mvreg.h 294416 2016-01-20 13:14:36Z zbb $
31 * $FreeBSD: head/sys/arm/mv/mvreg.h 294426 2016-01-20 13:55:51Z zbb $
32 */
33
34#ifndef _MVREG_H_
35#define _MVREG_H_
36
32 */
33
34#ifndef _MVREG_H_
35#define _MVREG_H_
36
37#include <arm/mv/mvwin.h>
38
37#if defined(SOC_MV_DISCOVERY)
38#define IRQ_CAUSE_ERROR 0x0
39#define IRQ_CAUSE 0x4
40#define IRQ_CAUSE_HI 0x8
41#define IRQ_MASK_ERROR 0xC
42#define IRQ_MASK 0x10
43#define IRQ_MASK_HI 0x14
44#define IRQ_CAUSE_SELECT 0x18

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

447#define MV_DRBL_CAUSE(d,u) (0x60 + 0x20 * (d) + 0x8 * (u))
448#define MV_DRBL_MASK(d,u) (0x60 + 0x20 * (d) + 0x8 * (u) + 0x4)
449#define MV_DRBL_MSG(m,d,u) (0x8 * (u) + 0x20 * (d) + 0x4 * (m))
450#else
451#define MV_DRBL_CAUSE(d,u) (0x10 * (u) + 0x8 * (d))
452#define MV_DRBL_MASK(d,u) (0x10 * (u) + 0x8 * (d) + 0x4)
453#define MV_DRBL_MSG(m,d,u) (0x10 * (u) + 0x8 * (d) + 0x4 * (m) + 0x30)
454#endif
39#if defined(SOC_MV_DISCOVERY)
40#define IRQ_CAUSE_ERROR 0x0
41#define IRQ_CAUSE 0x4
42#define IRQ_CAUSE_HI 0x8
43#define IRQ_MASK_ERROR 0xC
44#define IRQ_MASK 0x10
45#define IRQ_MASK_HI 0x14
46#define IRQ_CAUSE_SELECT 0x18

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

449#define MV_DRBL_CAUSE(d,u) (0x60 + 0x20 * (d) + 0x8 * (u))
450#define MV_DRBL_MASK(d,u) (0x60 + 0x20 * (d) + 0x8 * (u) + 0x4)
451#define MV_DRBL_MSG(m,d,u) (0x8 * (u) + 0x20 * (d) + 0x4 * (m))
452#else
453#define MV_DRBL_CAUSE(d,u) (0x10 * (u) + 0x8 * (d))
454#define MV_DRBL_MASK(d,u) (0x10 * (u) + 0x8 * (d) + 0x4)
455#define MV_DRBL_MSG(m,d,u) (0x10 * (u) + 0x8 * (d) + 0x4 * (m) + 0x30)
456#endif
457
458/*
459 * SCU
460 */
461#if defined(SOC_MV_ARMADA38X)
462#define MV_SCU_BASE (MV_BASE + 0xc000)
463#define MV_SCU_REGS_LEN 0x100
464#define MV_SCU_REG_CTRL 0
465#define MV_SCU_ENABLE 1
466#endif
467
455#endif /* _MVREG_H_ */
468#endif /* _MVREG_H_ */