提交 1525e06e 编写于 作者: G Geert Uytterhoeven

m68k/apollo: Rename "timer" to "apollo_timer"

In file included from include/linux/kgdb.h:17,
                 from include/linux/fb.h:8,
                 from drivers/video/dnfb.c:15:
include/linux/serial_8250.h:71: error: expected identifier or ‘(’ before numeric constant
include/linux/serial_8250.h:72: error: expected ‘;’ before ‘struct’
make[1]: *** [drivers/video/dnfb.o] Error 1

This is caused by

    #define timer (IO_BASE + timer_physaddr)

in <asm/apollohw.h>, which conflicts with the new "timer" struct member in
<linux/serial_8250.h>.

Rename "timer" to "apollo_timer", as it's a way too generic name for a
global #define.
Signed-off-by: NGeert Uytterhoeven <geert@linux-m68k.org>
--
http://kisskb.ellerman.id.au/kisskb/buildresult/6739606/
上级 897f3325
...@@ -177,8 +177,8 @@ irqreturn_t dn_timer_int(int irq, void *dev_id) ...@@ -177,8 +177,8 @@ irqreturn_t dn_timer_int(int irq, void *dev_id)
timer_handler(irq, dev_id); timer_handler(irq, dev_id);
x=*(volatile unsigned char *)(timer+3); x = *(volatile unsigned char *)(apollo_timer + 3);
x=*(volatile unsigned char *)(timer+5); x = *(volatile unsigned char *)(apollo_timer + 5);
return IRQ_HANDLED; return IRQ_HANDLED;
} }
...@@ -186,17 +186,17 @@ irqreturn_t dn_timer_int(int irq, void *dev_id) ...@@ -186,17 +186,17 @@ irqreturn_t dn_timer_int(int irq, void *dev_id)
void dn_sched_init(irq_handler_t timer_routine) void dn_sched_init(irq_handler_t timer_routine)
{ {
/* program timer 1 */ /* program timer 1 */
*(volatile unsigned char *)(timer+3)=0x01; *(volatile unsigned char *)(apollo_timer + 3) = 0x01;
*(volatile unsigned char *)(timer+1)=0x40; *(volatile unsigned char *)(apollo_timer + 1) = 0x40;
*(volatile unsigned char *)(timer+5)=0x09; *(volatile unsigned char *)(apollo_timer + 5) = 0x09;
*(volatile unsigned char *)(timer+7)=0xc4; *(volatile unsigned char *)(apollo_timer + 7) = 0xc4;
/* enable IRQ of PIC B */ /* enable IRQ of PIC B */
*(volatile unsigned char *)(pica+1)&=(~8); *(volatile unsigned char *)(pica+1)&=(~8);
#if 0 #if 0
printk("*(0x10803) %02x\n",*(volatile unsigned char *)(timer+0x3)); printk("*(0x10803) %02x\n",*(volatile unsigned char *)(apollo_timer + 0x3));
printk("*(0x10803) %02x\n",*(volatile unsigned char *)(timer+0x3)); printk("*(0x10803) %02x\n",*(volatile unsigned char *)(apollo_timer + 0x3));
#endif #endif
if (request_irq(IRQ_APOLLO, dn_timer_int, 0, "time", timer_routine)) if (request_irq(IRQ_APOLLO, dn_timer_int, 0, "time", timer_routine))
......
...@@ -98,7 +98,7 @@ extern u_long timer_physaddr; ...@@ -98,7 +98,7 @@ extern u_long timer_physaddr;
#define cpuctrl (*(volatile unsigned int *)(IO_BASE + cpuctrl_physaddr)) #define cpuctrl (*(volatile unsigned int *)(IO_BASE + cpuctrl_physaddr))
#define pica (IO_BASE + pica_physaddr) #define pica (IO_BASE + pica_physaddr)
#define picb (IO_BASE + picb_physaddr) #define picb (IO_BASE + picb_physaddr)
#define timer (IO_BASE + timer_physaddr) #define apollo_timer (IO_BASE + timer_physaddr)
#define addr_xlat_map ((unsigned short *)(IO_BASE + 0x17000)) #define addr_xlat_map ((unsigned short *)(IO_BASE + 0x17000))
#define isaIO2mem(x) (((((x) & 0x3f8) << 7) | (((x) & 0xfc00) >> 6) | ((x) & 0x7)) + 0x40000 + IO_BASE) #define isaIO2mem(x) (((((x) & 0x3f8) << 7) | (((x) & 0xfc00) >> 6) | ((x) & 0x7)) + 0x40000 + IO_BASE)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册