提交 4d9a6e61 编写于 作者: P Pavel Machek 提交者: Thomas Gleixner

x86: i8259: cleanup codingstyle

Signed-off-by: NPavel Machek <pavel@suse.cz>
Cc: macro@ds2.pg.gda.pl
Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
上级 4f6f3bac
...@@ -129,14 +129,14 @@ static inline int i8259A_irq_real(unsigned int irq) ...@@ -129,14 +129,14 @@ static inline int i8259A_irq_real(unsigned int irq)
int irqmask = 1<<irq; int irqmask = 1<<irq;
if (irq < 8) { if (irq < 8) {
outb(0x0B,PIC_MASTER_CMD); /* ISR register */ outb(0x0B, PIC_MASTER_CMD); /* ISR register */
value = inb(PIC_MASTER_CMD) & irqmask; value = inb(PIC_MASTER_CMD) & irqmask;
outb(0x0A,PIC_MASTER_CMD); /* back to the IRR register */ outb(0x0A, PIC_MASTER_CMD); /* back to the IRR register */
return value; return value;
} }
outb(0x0B,PIC_SLAVE_CMD); /* ISR register */ outb(0x0B, PIC_SLAVE_CMD); /* ISR register */
value = inb(PIC_SLAVE_CMD) & (irqmask >> 8); value = inb(PIC_SLAVE_CMD) & (irqmask >> 8);
outb(0x0A,PIC_SLAVE_CMD); /* back to the IRR register */ outb(0x0A, PIC_SLAVE_CMD); /* back to the IRR register */
return value; return value;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册