11 #include <linux/kernel.h>
18 #define irq2port(x) (M32R_ICU_CR1_PORTL + ((x - 1) * sizeof(unsigned long)))
22 static void disable_mappi2_irq(
unsigned int irq)
26 if ((irq == 0) ||(irq >=
NR_IRQS)) {
27 printk(
"bad irq 0x%08x\n", irq);
35 static void enable_mappi2_irq(
unsigned int irq)
39 if ((irq == 0) ||(irq >=
NR_IRQS)) {
40 printk(
"bad irq 0x%08x\n", irq);
48 static void mask_mappi2(
struct irq_data *data)
50 disable_mappi2_irq(data->
irq);
53 static void unmask_mappi2(
struct irq_data *data)
55 enable_mappi2_irq(data->
irq);
58 static void shutdown_mappi2(
struct irq_data *data)
66 static struct irq_chip mappi2_irq_type =
69 .irq_shutdown = shutdown_mappi2,
70 .irq_mask = mask_mappi2,
71 .irq_unmask = unmask_mappi2,
76 #if defined(CONFIG_SMC91X)
90 #ifdef CONFIG_SERIAL_M32R_SIO
115 #if defined(CONFIG_USB)
129 #if defined(CONFIG_M32R_CFC)
144 #define LAN_IOSTART 0x300
145 #define LAN_IOEND 0x320
146 static struct resource smc91x_resources[] = {
162 .num_resources =
ARRAY_SIZE(smc91x_resources),
163 .resource = smc91x_resources,
166 static int __init platform_init(
void)