Changeset 76cec1e in mainline for arch/ia32/src/drivers/i8259.c


Ignore:
Timestamp:
2005-07-15T21:57:30Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b4a4c5e3
Parents:
e41c47e
Message:

Huge indentation fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/ia32/src/drivers/i8259.c

    re41c47e r76cec1e  
    4545        /* ICW2: IRQ 0 maps to INT IRQBASE */
    4646        outb(PIC_PIC0PORT2, IVT_IRQBASE);
    47    
     47
    4848        /* ICW3: pic1 using IRQ IRQ_PIC1 */
    4949        outb(PIC_PIC0PORT2, 1 << IRQ_PIC1);
    50    
    51         /* ICW4: i8086 mode */   
     50
     51        /* ICW4: i8086 mode */
    5252        outb(PIC_PIC0PORT2, 1);
    5353
     
    5555        outb(PIC_PIC1PORT1, PIC_ICW1 | PIC_NEEDICW4);
    5656
    57         /* ICW2: IRQ 8 maps to INT (IVT_IRQBASE + 8) */   
     57        /* ICW2: IRQ 8 maps to INT (IVT_IRQBASE + 8) */
    5858        outb(PIC_PIC1PORT2, IVT_IRQBASE + 8);
    5959
     
    6161        outb(PIC_PIC1PORT2, PIC_PIC1ID);
    6262
    63         /* ICW4: i8086 mode */   
     63        /* ICW4: i8086 mode */
    6464        outb(PIC_PIC1PORT2, 1);
    6565
     
    7676        disable_irqs_function = pic_disable_irqs;
    7777        eoi_function = pic_eoi;
    78    
     78
    7979        pic_disable_irqs(0xffff);               /* disable all irq's */
    8080        pic_enable_irqs(1<<IRQ_PIC1);           /* but enable pic1 */
     
    8484{
    8585        __u8 x;
    86    
     86
    8787        if (irqmask & 0xff) {
    88                 x = inb(PIC_PIC0PORT2);
     88                x = inb(PIC_PIC0PORT2);
    8989                outb(PIC_PIC0PORT2, x & (~(irqmask & 0xff)));
    9090        }
    9191        if (irqmask >> 8) {
    92                 x = inb(PIC_PIC1PORT2);
     92                x = inb(PIC_PIC1PORT2);
    9393                outb(PIC_PIC1PORT2, x & (~(irqmask >> 8)));
    9494        }
     
    9898{
    9999        __u8 x;
    100    
     100
    101101        if (irqmask & 0xff) {
    102                 x = inb(PIC_PIC0PORT2);
     102                x = inb(PIC_PIC0PORT2);
    103103                outb(PIC_PIC0PORT2, x | (irqmask & 0xff));
    104104        }
    105105        if (irqmask >> 8) {
    106                 x = inb(PIC_PIC1PORT2);
     106                x = inb(PIC_PIC1PORT2);
    107107                outb(PIC_PIC1PORT2, x | (irqmask >> 8));
    108108        }
     
    112112{
    113113        outb(0x20,0x20);
    114         outb(0xa0,0x20);
     114        outb(0xa0,0x20);
    115115}
    116116
Note: See TracChangeset for help on using the changeset viewer.