summaryrefslogtreecommitdiff
path: root/src/drivers/pc80/i8254.c
diff options
context:
space:
mode:
authorPaul Menzel <paulepanter@users.sourceforge.net>2015-06-07 11:11:23 +0200
committerPatrick Georgi <pgeorgi@google.com>2015-08-09 20:38:39 +0200
commit7580b1aca4251fb76c2302106a2fa69d7ae9759a (patch)
treec7cbc2a5f70b2843aab52e65502e978e4b4df88a /src/drivers/pc80/i8254.c
parent8fad21db54d1435333f832767fb65312db103eb2 (diff)
drivers/pc80/i8254.c: Indent with GNU indent 2.2.11
Run `indent -linux src/drivers/pc80/i8254.c` and manually put the `;` in the while loop back on a separate line. Change-Id: I58c4c5df3846a91ef92aafb608962dc26a21f811 Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-on: http://review.coreboot.org/10452 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/drivers/pc80/i8254.c')
-rw-r--r--src/drivers/pc80/i8254.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/drivers/pc80/i8254.c b/src/drivers/pc80/i8254.c
index 27a7b2bd0d..70f71d9b9e 100644
--- a/src/drivers/pc80/i8254.c
+++ b/src/drivers/pc80/i8254.c
@@ -26,30 +26,30 @@
void setup_i8254(void)
{
/* Timer 0 (taken from biosemu) */
- outb(TIMER0_SEL|WORD_ACCESS|MODE3|BINARY_COUNT, TIMER_MODE_PORT);
+ outb(TIMER0_SEL | WORD_ACCESS | MODE3 | BINARY_COUNT, TIMER_MODE_PORT);
outb(0x00, TIMER0_PORT);
outb(0x00, TIMER0_PORT);
/* Timer 1 */
- outb(TIMER1_SEL|LOBYTE_ACCESS|MODE3|BINARY_COUNT, TIMER_MODE_PORT);
+ outb(TIMER1_SEL | LOBYTE_ACCESS | MODE3 | BINARY_COUNT,
+ TIMER_MODE_PORT);
outb(0x12, TIMER1_PORT);
}
#if CONFIG_UDELAY_TIMER2
static void load_timer2(unsigned int ticks)
{
- /* Set up the timer gate, turn off the speaker */
- outb((inb(PPC_PORTB) & ~PPCB_SPKR) | PPCB_T2GATE, PPC_PORTB);
- outb(TIMER2_SEL|WORD_ACCESS|MODE0|BINARY_COUNT, TIMER_MODE_PORT);
- outb(ticks & 0xFF, TIMER2_PORT);
- outb(ticks >> 8, TIMER2_PORT);
+ /* Set up the timer gate, turn off the speaker */
+ outb((inb(PPC_PORTB) & ~PPCB_SPKR) | PPCB_T2GATE, PPC_PORTB);
+ outb(TIMER2_SEL | WORD_ACCESS | MODE0 | BINARY_COUNT, TIMER_MODE_PORT);
+ outb(ticks & 0xFF, TIMER2_PORT);
+ outb(ticks >> 8, TIMER2_PORT);
}
-
void udelay(int usecs)
{
- load_timer2((usecs*TICKS_PER_MS)/1000);
- while ((inb(PPC_PORTB) & PPCB_T2OUT) == 0)
- ;
+ load_timer2((usecs * TICKS_PER_MS) / 1000);
+ while ((inb(PPC_PORTB) & PPCB_T2OUT) == 0)
+ ;
}
#endif