Changeset 76cec1e in mainline for arch/ia32/src/drivers


Ignore:
Timestamp:
2005-07-15T21:57:30Z (21 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.

Location:
arch/ia32/src/drivers
Files:
3 edited

Legend:

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

    re41c47e r76cec1e  
    7070{
    7171        if (ega_cursor < SCREEN)
    72             return;
     72                return;
    7373
    7474        memcopy(PA2KA(VIDEORAM) + ROW*2, PA2KA(VIDEORAM), (SCREEN - ROW)*2);
     
    8686        switch (ch) {
    8787            case '\n':
    88                     ega_cursor = (ega_cursor + ROW) - ega_cursor % ROW;
    89                     break;
     88                ega_cursor = (ega_cursor + ROW) - ega_cursor % ROW;
     89                break;
    9090            case '\t':
    91                     ega_cursor = (ega_cursor + 8) - ega_cursor % 8;
    92                     break;
     91                ega_cursor = (ega_cursor + 8) - ega_cursor % 8;
     92                break;
    9393            default:
    94                     ega_display_char(ch);
    95                     ega_cursor++;
    96                     break;
     94                ega_display_char(ch);
     95                ega_cursor++;
     96                break;
    9797        }
    9898        ega_check_cursor();
    9999        ega_move_cursor();
    100        
     100
    101101        spinlock_unlock(&egalock);
    102102        cpu_priority_restore(pri);
  • arch/ia32/src/drivers/i8254.c

    re41c47e r76cec1e  
    8484
    8585        do {
    86                 /* will read both status and count */
     86                /* will read both status and count */
    8787                outb(CLK_PORT4, 0xc2);
    8888                not_ok = (inb(CLK_PORT1)>>6)&1;
     
    110110        o2 |= inb(CLK_PORT1) << 8;
    111111
    112 
    113         CPU->delay_loop_const = ((MAGIC_NUMBER*LOOPS)/1000) / ((t1-t2)-(o1-o2)) +
    114                                     (((MAGIC_NUMBER*LOOPS)/1000) % ((t1-t2)-(o1-o2)) ? 1 : 0);
    115        
     112        CPU->delay_loop_const = ((MAGIC_NUMBER*LOOPS)/1000) / ((t1-t2)-(o1-o2)) + (((MAGIC_NUMBER*LOOPS)/1000) % ((t1-t2)-(o1-o2)) ? 1 : 0);
    116113
    117114        clk1 = rdtsc();
  • 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.