summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2014-10-08 17:38:12 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2014-10-09 10:11:58 -0500
commit78a38fa2ae36b68b1adf461354721188f9a6e8a2 (patch)
treee5651aa38de4e526fc8a5c0f263fc33234765404 /c/src/lib/libbsp
parentlibchip/rtc/mc146818a*: Fix prototypes to use uintptr_t and fix set but unuse... (diff)
downloadrtems-78a38fa2ae36b68b1adf461354721188f9a6e8a2.tar.bz2
Eliminate use of /*PAGE and clean up formatting
Diffstat (limited to 'c/src/lib/libbsp')
-rw-r--r--c/src/lib/libbsp/m68k/mrm332/console/console.c28
-rw-r--r--c/src/lib/libbsp/powerpc/score603e/PCI_bus/flash.c12
-rw-r--r--c/src/lib/libbsp/powerpc/score603e/console/85c30.c8
-rw-r--r--c/src/lib/libbsp/powerpc/score603e/startup/bspstart.c4
-rw-r--r--c/src/lib/libbsp/powerpc/score603e/startup/vmeintr.c18
-rw-r--r--c/src/lib/libbsp/shared/tod.c60
6 files changed, 31 insertions, 99 deletions
diff --git a/c/src/lib/libbsp/m68k/mrm332/console/console.c b/c/src/lib/libbsp/m68k/mrm332/console/console.c
index 94fb8032bb..360be8d0b6 100644
--- a/c/src/lib/libbsp/m68k/mrm332/console/console.c
+++ b/c/src/lib/libbsp/m68k/mrm332/console/console.c
@@ -1,9 +1,4 @@
/*
- * This file contains the generic console driver shell used
- * by all console drivers using libchip.
- *
- * This driver uses the termios pseudo driver.
- *
* COPYRIGHT (c) 1989-1997.
* On-Line Applications Research Corporation (OAR).
*
@@ -17,13 +12,11 @@
#include <termios.h>
#include "sci.h"
-/*PAGE
- *
+/*
* console_open
*
* open a port as a termios console.
*/
-
rtems_device_driver console_open(
rtems_device_major_number major,
rtems_device_minor_number minor,
@@ -47,13 +40,11 @@ rtems_device_driver console_open(
return status;
}
-/*PAGE
- *
+/*
* console_close
*
* This routine closes a port that has been opened as console.
*/
-
rtems_device_driver console_close(
rtems_device_major_number major,
rtems_device_minor_number minor,
@@ -63,13 +54,11 @@ rtems_device_driver console_close(
return rtems_termios_close (arg);
}
-/*PAGE
- *
+/*
* console_read
*
* This routine uses the termios driver to read a character.
*/
-
rtems_device_driver console_read(
rtems_device_major_number major,
rtems_device_minor_number minor,
@@ -79,13 +68,11 @@ rtems_device_driver console_read(
return rtems_termios_read (arg);
}
-/*PAGE
- *
+/*
* console_write
*
* this routine uses the termios driver to write a character.
*/
-
rtems_device_driver console_write(
rtems_device_major_number major,
rtems_device_minor_number minor,
@@ -95,8 +82,7 @@ rtems_device_driver console_write(
return rtems_termios_write (arg);
}
-/*PAGE
- *
+/*
* console_control
*
* this routine uses the termios driver to process io
@@ -111,13 +97,11 @@ rtems_device_driver console_control(
return rtems_termios_ioctl (arg);
}
-/*PAGE
- *
+/*
* console_initialize
*
* Routine called to initialize the console device driver.
*/
-
rtems_device_driver console_initialize(
rtems_device_major_number major,
rtems_device_minor_number minor_arg,
diff --git a/c/src/lib/libbsp/powerpc/score603e/PCI_bus/flash.c b/c/src/lib/libbsp/powerpc/score603e/PCI_bus/flash.c
index ef174f72ee..c50c09b0af 100644
--- a/c/src/lib/libbsp/powerpc/score603e/PCI_bus/flash.c
+++ b/c/src/lib/libbsp/powerpc/score603e/PCI_bus/flash.c
@@ -1,5 +1,4 @@
/*
- *
* COPYRIGHT (c) 1989-2009.
* On-Line Applications Research Corporation (OAR).
*
@@ -17,13 +16,11 @@
#include <bsp/irq.h>
#include "PCI.h"
-/*PAGE
- *
+/*
* SCORE603e_FLASH_Disable
*/
-
unsigned int SCORE603e_FLASH_Disable(
- uint32_t area /* IN */
+ uint32_t area
)
{
uint8_t value;
@@ -83,12 +80,11 @@ unsigned int SCORE603e_FLASH_pci_reset_reg(
return RTEMS_SUCCESSFUL;
}
-/*PAGE
- *
+/*
* SCORE603e_FLASH_Enable_writes
*/
unsigned int SCORE603e_FLASH_Enable_writes(
- uint32_t area /* IN */
+ uint32_t area
)
{
uint8_t ctrl_value;
diff --git a/c/src/lib/libbsp/powerpc/score603e/console/85c30.c b/c/src/lib/libbsp/powerpc/score603e/console/85c30.c
index 6f842cc4ac..42dafce02f 100644
--- a/c/src/lib/libbsp/powerpc/score603e/console/85c30.c
+++ b/c/src/lib/libbsp/powerpc/score603e/console/85c30.c
@@ -3,7 +3,9 @@
* z85c30 chip.
*
* Currently only polled mode is supported.
- *
+ */
+
+/*
* COPYRIGHT (c) 1989-2009.
* On-Line Applications Research Corporation (OAR).
*
@@ -359,10 +361,8 @@ int inbyte_nonblocking_85c30(
#if CONSOLE_USE_INTERRUPTS
-/*PAGE
- *
+/*
* Z8530_Async_Channel_ISR
- *
*/
/* RR0 */
diff --git a/c/src/lib/libbsp/powerpc/score603e/startup/bspstart.c b/c/src/lib/libbsp/powerpc/score603e/startup/bspstart.c
index 75bc17f4ae..70933afebe 100644
--- a/c/src/lib/libbsp/powerpc/score603e/startup/bspstart.c
+++ b/c/src/lib/libbsp/powerpc/score603e/startup/bspstart.c
@@ -71,13 +71,11 @@ void _BSP_Fatal_error(unsigned int v)
__asm__ __volatile ("sc");
}
-/*PAGE
- *
+/*
* bsp_predriver_hook
*
* Before drivers are setup initialize interupt vectors.
*/
-
void init_RTC(void);
void initialize_PMC(void);
diff --git a/c/src/lib/libbsp/powerpc/score603e/startup/vmeintr.c b/c/src/lib/libbsp/powerpc/score603e/startup/vmeintr.c
index 8a6ad550cb..5d455b9159 100644
--- a/c/src/lib/libbsp/powerpc/score603e/startup/vmeintr.c
+++ b/c/src/lib/libbsp/powerpc/score603e/startup/vmeintr.c
@@ -1,6 +1,8 @@
/*
* VMEbus support routines for the Generation I board.
- *
+ */
+
+/*
* COPYRIGHT (c) 1989-2008.
* On-Line Applications Research Corporation (OAR).
*
@@ -13,13 +15,10 @@
#include <bsp.h>
#include <rtems/vmeintr.h>
-/*PAGE
- *
+/*
* VME_interrupt_Disable
- *
*/
-
-void VME_interrupt_Disable (
+void VME_interrupt_Disable(
VME_interrupt_Mask mask /* IN */
)
{
@@ -32,13 +31,10 @@ void VME_interrupt_Disable (
*VME_interrupt_enable = value;
}
-/*PAGE
- *
+/*
* VME_interrupt_Enable
- *
*/
-
-void VME_interrupt_Enable (
+void VME_interrupt_Enable(
VME_interrupt_Mask mask /* IN */
)
{
diff --git a/c/src/lib/libbsp/shared/tod.c b/c/src/lib/libbsp/shared/tod.c
index 64007d6397..2a69bc95b1 100644
--- a/c/src/lib/libbsp/shared/tod.c
+++ b/c/src/lib/libbsp/shared/tod.c
@@ -1,6 +1,8 @@
/*
* Real Time Clock Driver Wrapper for Libchip
- *
+ */
+
+/*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rtems.org/license/LICENSE.
@@ -16,7 +18,6 @@
/*
* Configuration Information
*/
-
extern size_t RTC_Count;
extern rtems_device_minor_number RTC_Minor;
@@ -29,7 +30,6 @@ extern void setRealTimeToRTEMS(void);
*
* Initialize the RTC driver
*/
-
rtems_device_driver rtc_initialize(
rtems_device_major_number major,
rtems_device_minor_number minor_arg,
@@ -66,7 +66,6 @@ rtems_device_driver rtc_initialize(
/*
* Register and initialize the primary RTC's
*/
-
status = rtems_io_register_name( RTC_DEVICE_NAME, major, RTC_Minor );
if (status != RTEMS_SUCCESSFUL) {
rtems_fatal_error_occurred(status);
@@ -77,7 +76,6 @@ rtems_device_driver rtc_initialize(
/*
* Now initialize any secondary RTC's
*/
-
for ( minor++ ; minor<RTC_Count ; minor++) {
/*
* First perform the configuration dependent probe, then the
@@ -96,7 +94,6 @@ rtems_device_driver rtc_initialize(
/*
* Initialize the hardware device.
*/
-
RTC_Table[minor].pDeviceFns->deviceInitialize(minor);
}
@@ -201,17 +198,9 @@ rtems_device_driver rtc_control(
return RTEMS_NOT_IMPLEMENTED;
}
-/*PAGE
- *
+/*
* This routine copies the time from the real time clock to RTEMS
- *
- * Input parameters: NONE
- *
- * Output parameters: NONE
- *
- * Return values: NONE
*/
-
void setRealTimeToRTEMS()
{
rtems_time_of_day rtc_tod;
@@ -223,19 +212,11 @@ void setRealTimeToRTEMS()
rtems_clock_set( &rtc_tod );
}
-/*PAGE
- *
+/*
* setRealTimeFromRTEMS
*
* This routine copies the time from RTEMS to the real time clock
- *
- * Input parameters: NONE
- *
- * Output parameters: NONE
- *
- * Return values: NONE
*/
-
void setRealTimeFromRTEMS(void)
{
rtems_time_of_day rtems_tod;
@@ -247,19 +228,11 @@ void setRealTimeFromRTEMS(void)
RTC_Table[RTC_Minor].pDeviceFns->deviceSetTime(RTC_Minor, &rtems_tod);
}
-/*PAGE
- *
+/*
* getRealTime
*
* This routine reads the current time from the RTC.
- *
- * Input parameters: NONE
- *
- * Output parameters: NONE
- *
- * Return values: NONE
*/
-
void getRealTime(
rtems_time_of_day *tod
)
@@ -270,17 +243,10 @@ void getRealTime(
RTC_Table[RTC_Minor].pDeviceFns->deviceGetTime(RTC_Minor, tod);
}
-/*PAGE
- *
+/*
* setRealTime
*
* This routine sets the RTC.
- *
- * Input parameters: NONE
- *
- * Output parameters: NONE
- *
- * Return values: NONE
*/
int setRealTime(
const rtems_time_of_day *tod
@@ -296,19 +262,11 @@ int setRealTime(
return 0;
}
-/*PAGE
- *
+/*
* checkRealTime
*
* This routine reads the returns the variance betweent the real time and
- * rtems time.
- *
- * Input parameters: NONE
- *
- * Output parameters: NONE
- *
- * Return values:
- * int The differance between the real time clock and rtems time.
+ * RTEMS time.
*/
int checkRealTime(void)
{