irq-mbigen.c (ad7cc3c0c57d77b442db323056354d0e49833569) irq-mbigen.c (9459a04b6a5a09967eec94a1b66f0a74312819d9)
1/*
2 * Copyright (C) 2015 Hisilicon Limited, All Rights Reserved.
3 * Author: Jun Ma <majun258@huawei.com>
4 * Author: Yun Wu <wuyun.wu@huawei.com>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.

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

101
102 *addr = ofst + nid * MBIGEN_NODE_OFFSET
103 + REG_MBIGEN_TYPE_OFFSET;
104}
105
106static inline void get_mbigen_clear_reg(irq_hw_number_t hwirq,
107 u32 *mask, u32 *addr)
108{
1/*
2 * Copyright (C) 2015 Hisilicon Limited, All Rights Reserved.
3 * Author: Jun Ma <majun258@huawei.com>
4 * Author: Yun Wu <wuyun.wu@huawei.com>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.

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

101
102 *addr = ofst + nid * MBIGEN_NODE_OFFSET
103 + REG_MBIGEN_TYPE_OFFSET;
104}
105
106static inline void get_mbigen_clear_reg(irq_hw_number_t hwirq,
107 u32 *mask, u32 *addr)
108{
109 unsigned int ofst;
109 unsigned int ofst = (hwirq / 32) * 4;
110
110
111 hwirq -= RESERVED_IRQ_PER_MBIGEN_CHIP;
112 ofst = hwirq / 32 * 4;
113
114 *mask = 1 << (hwirq % 32);
115 *addr = ofst + REG_MBIGEN_CLEAR_OFFSET;
116}
117
118static void mbigen_eoi_irq(struct irq_data *data)
119{
120 void __iomem *base = data->chip_data;
121 u32 mask, addr;

--- 272 unchanged lines hidden ---
111 *mask = 1 << (hwirq % 32);
112 *addr = ofst + REG_MBIGEN_CLEAR_OFFSET;
113}
114
115static void mbigen_eoi_irq(struct irq_data *data)
116{
117 void __iomem *base = data->chip_data;
118 u32 mask, addr;

--- 272 unchanged lines hidden ---