diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-11-30 05:09:41 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-11-30 05:09:41 +0000 |
commit | 359e5374164ccb2a66833354b412a859c144ea2f (patch) | |
tree | 6f065d7d6247bc255f43ddb0152fc26c50bd4f87 /c/src/lib/libcpu/arm/at91rm9200/dbgu/dbgu.c | |
parent | Whitespace removal. (diff) | |
download | rtems-359e5374164ccb2a66833354b412a859c144ea2f.tar.bz2 |
Whitespace removal.
Diffstat (limited to 'c/src/lib/libcpu/arm/at91rm9200/dbgu/dbgu.c')
-rw-r--r-- | c/src/lib/libcpu/arm/at91rm9200/dbgu/dbgu.c | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/c/src/lib/libcpu/arm/at91rm9200/dbgu/dbgu.c b/c/src/lib/libcpu/arm/at91rm9200/dbgu/dbgu.c index 7faabab5a1..4dbd16e536 100644 --- a/c/src/lib/libcpu/arm/at91rm9200/dbgu/dbgu.c +++ b/c/src/lib/libcpu/arm/at91rm9200/dbgu/dbgu.c @@ -1,7 +1,7 @@ /* * Console driver for AT91RM9200 DBGU port * - * This driver uses the shared console driver in + * This driver uses the shared console driver in * ...../libbsp/shared/console.c * * Copyright (c) 2003 by Cogent Computer Systems @@ -38,8 +38,8 @@ static void dbgu_write_polled(int minor, char c); static int dbgu_set_attributes(int minor, const struct termios *t); /* Pointers to functions for handling the UART. */ -console_fns dbgu_fns = -{ +console_fns dbgu_fns = +{ libchip_serial_default_probe, dbgu_first_open, dbgu_last_close, @@ -54,23 +54,23 @@ console_fns dbgu_fns = /* Functions called via callbacks (i.e. the ones in uart_fns */ /*********************************************************************/ -/* +/* * This is called the first time each device is opened. Since - * the driver is polled, we don't have to do anything. If the driver - * were interrupt driven, we'd enable interrupts here. + * the driver is polled, we don't have to do anything. If the driver + * were interrupt driven, we'd enable interrupts here. */ -static int dbgu_first_open(int major, int minor, void *arg) +static int dbgu_first_open(int major, int minor, void *arg) { return 0; } -/* +/* * This is called the last time each device is closed. Since - * the driver is polled, we don't have to do anything. If the driver - * were interrupt driven, we'd disable interrupts here. + * the driver is polled, we don't have to do anything. If the driver + * were interrupt driven, we'd disable interrupts here. */ -static int dbgu_last_close(int major, int minor, void *arg) +static int dbgu_last_close(int major, int minor, void *arg) { return 0; } @@ -82,7 +82,7 @@ static int dbgu_last_close(int major, int minor, void *arg) * return -1 if there's no data, otherwise return * the character in lowest 8 bits of returned int. */ -static int dbgu_read(int minor) +static int dbgu_read(int minor) { char c; console_tbl *console_entry; @@ -99,15 +99,15 @@ static int dbgu_read(int minor) if (!(dbgu->sr & DBGU_INT_RXRDY)) { return -1; } - - c = dbgu->rhr & 0xff; - + + c = dbgu->rhr & 0xff; + return c; } -/* - * Write buffer to UART +/* + * Write buffer to UART * * return 1 on success, -1 on error */ @@ -133,17 +133,17 @@ static int dbgu_write(int minor, const char *buf, int len) break; } } - + c = (char) buf[i]; dbgu->thr = c; - + /* the TXRDY flag does not seem to update right away (is this true?) */ /* so we wait a bit before continuing */ for (x = 0; x < 100; x++) { dbg_dly++; /* using a global so this doesn't get optimized out */ } } - + return 1; } @@ -186,7 +186,7 @@ static void dbgu_write_polled(int minor, char c) } /* This is for setting baud rate, bits, etc. */ -static int dbgu_set_attributes(int minor, const struct termios *t) +static int dbgu_set_attributes(int minor, const struct termios *t) { return 0; } @@ -197,7 +197,7 @@ static int dbgu_set_attributes(int minor, const struct termios *t) * functions use them instead. */ /***********************************************************************/ -/* +/* * Read from UART. This is used in the exit code, and can't * rely on interrupts. */ @@ -208,7 +208,7 @@ int dbgu_poll_read(int minor) /* - * Write a character to the console. This is used by printk() and + * Write a character to the console. This is used by printk() and * maybe other low level functions. It should not use interrupts or any * RTEMS system calls. It needs to be very simple */ |