summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/i386/pc386/console/ps2_mouse.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-06-17 22:05:39 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-06-17 22:05:39 +0000
commit73c421b8ff7be4f43ef17a6b752d82566e83a480 (patch)
tree44bd8ffe0cfa16af6572a53a04c3c36787b57262 /c/src/lib/libbsp/i386/pc386/console/ps2_mouse.c
parent2009-06-17 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-73c421b8ff7be4f43ef17a6b752d82566e83a480.tar.bz2
2009-06-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* console/ps2_mouse.c: Fix inconsistent spacing.
Diffstat (limited to 'c/src/lib/libbsp/i386/pc386/console/ps2_mouse.c')
-rw-r--r--c/src/lib/libbsp/i386/pc386/console/ps2_mouse.c32
1 files changed, 15 insertions, 17 deletions
diff --git a/c/src/lib/libbsp/i386/pc386/console/ps2_mouse.c b/c/src/lib/libbsp/i386/pc386/console/ps2_mouse.c
index cc4e42eb13..e4635bd361 100644
--- a/c/src/lib/libbsp/i386/pc386/console/ps2_mouse.c
+++ b/c/src/lib/libbsp/i386/pc386/console/ps2_mouse.c
@@ -438,26 +438,24 @@ static int release_aux(void)
static int open_aux(void)
{
- rtems_status_code status;
+ int status;
- if (aux_count++) {
- return 0;
- }
- queue->head = queue->tail = 0; /* Flush input queue */
+ if (aux_count++) {
+ return 0;
+ }
+ queue->head = queue->tail = 0; /* Flush input queue */
- status = BSP_install_rtems_irq_handler( &ps2_isr_data );
- if( !status )
- {
- printk("Error installing ps2-mouse interrupt handler!\n" );
- rtems_fatal_error_occurred( status );
- }
+ status = BSP_install_rtems_irq_handler( &ps2_isr_data );
+ if( !status ) {
+ printk("Error installing ps2-mouse interrupt handler!\n" );
+ rtems_fatal_error_occurred( status );
+ }
- kbd_write_command_w(KBD_CCMD_MOUSE_ENABLE); /* Enable the
- auxiliary port on
- controller. */
- aux_write_ack(AUX_ENABLE_DEV); /* Enable aux device */
- kbd_write_cmd(AUX_INTS_ON); /* Enable controller ints */
- return 0;
+ kbd_write_command_w(KBD_CCMD_MOUSE_ENABLE); /* Enable the auxiliary port on
+ controller. */
+ aux_write_ack(AUX_ENABLE_DEV); /* Enable aux device */
+ kbd_write_cmd(AUX_INTS_ON); /* Enable controller ints */
+ return 0;
}
/*