11 #include <linux/kernel.h>
18 #define irq2port(x) (M32R_ICU_CR1_PORTL + ((x - 1) * sizeof(unsigned long)))
22 static void disable_mappi3_irq(
unsigned int irq)
26 if ((irq == 0) ||(irq >=
NR_IRQS)) {
27 printk(
"bad irq 0x%08x\n", irq);
35 static void enable_mappi3_irq(
unsigned int irq)
39 if ((irq == 0) ||(irq >=
NR_IRQS)) {
40 printk(
"bad irq 0x%08x\n", irq);
48 static void mask_mappi3(
struct irq_data *data)
50 disable_mappi3_irq(data->
irq);
53 static void unmask_mappi3(
struct irq_data *data)
55 enable_mappi3_irq(data->
irq);
58 static void shutdown_mappi3(
struct irq_data *data)
66 static struct irq_chip mappi3_irq_type = {
68 .irq_shutdown = shutdown_mappi3,
69 .irq_mask = mask_mappi3,
70 .irq_unmask = unmask_mappi3,
75 #if defined(CONFIG_SMC91X)
89 #ifdef CONFIG_SERIAL_M32R_SIO
114 #if defined(CONFIG_USB)
128 #if defined(CONFIG_M32R_CFC)
145 #if defined(CONFIG_SMC91X)
147 #define LAN_IOSTART 0x300
148 #define LAN_IOEND 0x320
149 static struct resource smc91x_resources[] = {
165 .num_resources =
ARRAY_SIZE(smc91x_resources),
166 .resource = smc91x_resources,
171 #if defined(CONFIG_FB_S1D13XXX)
178 .initregssize =
ARRAY_SIZE(s1d13xxxfb_initregs),
179 .platform_init_video =
NULL,
181 .platform_suspend_video =
NULL,
182 .platform_resume_video =
NULL,
186 static struct resource s1d13xxxfb_resources[] = {
193 .start = 0x1d400000
UL,
203 .platform_data = &s1d13xxxfb_data,
205 .num_resources =
ARRAY_SIZE(s1d13xxxfb_resources),
206 .resource = s1d13xxxfb_resources,
210 static int __init platform_init(
void)
212 #if defined(CONFIG_SMC91X)
215 #if defined(CONFIG_FB_S1D13XXX)