swh:1:snp:32555a3fd8878f019c2ebd6c964bc1edcaeff337
Raw File
Tip revision: 9f9499ae8e6415cefc4fe0a96ad0e27864353c89 authored by Linus Torvalds on 14 December 2015, 01:42:58 UTC
Linux 4.4-rc5
Tip revision: 9f9499a
irqs.h
#ifndef __SHMOBILE_IRQS_H
#define __SHMOBILE_IRQS_H

#include "include/mach/irqs.h"

/* GIC */
#define gic_spi(nr)		((nr) + 32)
#define gic_iid(nr)		(nr) /* ICCIAR / interrupt ID */

/* GPIO IRQ */
#define _GPIO_IRQ_BASE		2500
#define GPIO_IRQ_BASE(x)	(_GPIO_IRQ_BASE + (32 * x))
#define GPIO_IRQ(x, y)		(_GPIO_IRQ_BASE + (32 * x) + y)

#endif /* __SHMOBILE_IRQS_H */
back to top