Deleted Added
full compact
mvs.h (220830) mvs.h (230865)
1/*-
2 * Copyright (c) 2010 Alexander Motin <mav@FreeBSD.org>
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

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

18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 *
1/*-
2 * Copyright (c) 2010 Alexander Motin <mav@FreeBSD.org>
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

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

18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 *
26 * $FreeBSD: head/sys/dev/mvs/mvs.h 220830 2011-04-19 10:57:40Z mav $
26 * $FreeBSD: head/sys/dev/mvs/mvs.h 230865 2012-02-01 13:39:52Z raj $
27 */
28
29#include "mvs_if.h"
30
31/* Chip registers */
32#define CHIP_PCIEIC 0x1900 /* PCIe Interrupt Cause */
33#define CHIP_PCIEIM 0x1910 /* PCIe Interrupt Mask */
34#define CHIP_PCIIC 0x1d58 /* PCI Interrupt Cause */

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

56#define IC_SELF_INT (1 << 23)
57#define IC_TWSI_INT (1 << 24)
58#define IC_MAIN_RSVD (0xfe000000) /* bits 31-25 */
59#define IC_MAIN_RSVD_5 (0xfff10000) /* bits 31-19 */
60#define IC_MAIN_RSVD_SOC (0xfffffec0) /* bits 31-9, 7-6 */
61
62#define CHIP_SOC_LED 0x2C /* SoC LED Configuration */
63
27 */
28
29#include "mvs_if.h"
30
31/* Chip registers */
32#define CHIP_PCIEIC 0x1900 /* PCIe Interrupt Cause */
33#define CHIP_PCIEIM 0x1910 /* PCIe Interrupt Mask */
34#define CHIP_PCIIC 0x1d58 /* PCI Interrupt Cause */

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

56#define IC_SELF_INT (1 << 23)
57#define IC_TWSI_INT (1 << 24)
58#define IC_MAIN_RSVD (0xfe000000) /* bits 31-25 */
59#define IC_MAIN_RSVD_5 (0xfff10000) /* bits 31-19 */
60#define IC_MAIN_RSVD_SOC (0xfffffec0) /* bits 31-9, 7-6 */
61
62#define CHIP_SOC_LED 0x2C /* SoC LED Configuration */
63
64/* Additional mask for SoC devices with less than 4 channels */
65#define CHIP_SOC_HC0_MASK(num) (0xff >> ((4 - (num)) * 2))
66
64/* Chip CCC registers */
65#define CHIP_ICC 0x18008
66#define CHIP_ICC_ALL_PORTS (1 << 4) /* all ports irq event */
67#define CHIP_ICT 0x180cc
68#define CHIP_ITT 0x180d0
69#define CHIP_TRAN_COAL_CAUSE_LO 0x18088
70#define CHIP_TRAN_COAL_CAUSE_HI 0x1808c
71

--- 582 unchanged lines hidden ---
67/* Chip CCC registers */
68#define CHIP_ICC 0x18008
69#define CHIP_ICC_ALL_PORTS (1 << 4) /* all ports irq event */
70#define CHIP_ICT 0x180cc
71#define CHIP_ITT 0x180d0
72#define CHIP_TRAN_COAL_CAUSE_LO 0x18088
73#define CHIP_TRAN_COAL_CAUSE_HI 0x1808c
74

--- 582 unchanged lines hidden ---