diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-06-17 22:05:39 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-06-17 22:05:39 +0000 |
commit | 73c421b8ff7be4f43ef17a6b752d82566e83a480 (patch) | |
tree | 44bd8ffe0cfa16af6572a53a04c3c36787b57262 | |
parent | 2009-06-17 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-73c421b8ff7be4f43ef17a6b752d82566e83a480.tar.bz2 |
2009-06-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* console/ps2_mouse.c: Fix inconsistent spacing.
-rw-r--r-- | c/src/lib/libbsp/i386/pc386/ChangeLog | 4 | ||||
-rw-r--r-- | c/src/lib/libbsp/i386/pc386/console/ps2_mouse.c | 32 |
2 files changed, 19 insertions, 17 deletions
diff --git a/c/src/lib/libbsp/i386/pc386/ChangeLog b/c/src/lib/libbsp/i386/pc386/ChangeLog index a5e514d726..abcf925048 100644 --- a/c/src/lib/libbsp/i386/pc386/ChangeLog +++ b/c/src/lib/libbsp/i386/pc386/ChangeLog @@ -1,3 +1,7 @@ +2009-06-17 Joel Sherrill <joel.sherrill@oarcorp.com> + + * console/ps2_mouse.c: Fix inconsistent spacing. + 2009-06-12 Chris Johns <chrisj@rtems.org> * ide/ide.c: Format the data output in DEBUG mode. 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; } /* |