summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/shared
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2004-04-21 10:43:04 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2004-04-21 10:43:04 +0000
commit6128a4aa5e791ed4e0a655bfd346a52d92da7883 (patch)
treeaf53ca3f67ce405b6fbc6c98399c8e0c87e01a9e /c/src/lib/libbsp/shared
parent2004-04-20 Ralf Corsepius <ralf_corsepius@rtems.org> (diff)
downloadrtems-6128a4aa5e791ed4e0a655bfd346a52d92da7883.tar.bz2
Remove stray white spaces.
Diffstat (limited to 'c/src/lib/libbsp/shared')
-rw-r--r--c/src/lib/libbsp/shared/bootcard.c4
-rw-r--r--c/src/lib/libbsp/shared/bsppost.c2
-rw-r--r--c/src/lib/libbsp/shared/clockdrv_shell.c26
-rw-r--r--c/src/lib/libbsp/shared/console-polled.c14
-rw-r--r--c/src/lib/libbsp/shared/console.c18
-rw-r--r--c/src/lib/libbsp/shared/gdbstub/rtems-stub-glue.c100
-rw-r--r--c/src/lib/libbsp/shared/gnatinstallhandler.c4
-rw-r--r--c/src/lib/libbsp/shared/ide_ctrl.c28
-rw-r--r--c/src/lib/libbsp/shared/main.c2
-rw-r--r--c/src/lib/libbsp/shared/setvec.c2
-rw-r--r--c/src/lib/libbsp/shared/timerstub.c2
-rw-r--r--c/src/lib/libbsp/shared/tod.c48
-rw-r--r--c/src/lib/libbsp/shared/vmeUniverse/vmeUniverse.c34
-rw-r--r--c/src/lib/libbsp/shared/vmeUniverse/vmeUniverse.h16
14 files changed, 150 insertions, 150 deletions
diff --git a/c/src/lib/libbsp/shared/bootcard.c b/c/src/lib/libbsp/shared/bootcard.c
index 52d938d88e..dfecda6643 100644
--- a/c/src/lib/libbsp/shared/bootcard.c
+++ b/c/src/lib/libbsp/shared/bootcard.c
@@ -1,7 +1,7 @@
/*
* A simple main which can be used on any embedded target.
*
- * This style of initialization insures that the C++ global
+ * This style of initialization insures that the C++ global
* constructors are executed after RTEMS is initialized.
*
* Thanks to Chris Johns <cjohns@plessey.com.au> for this idea.
@@ -130,7 +130,7 @@ int boot_card(int argc, char **argv, char **envp)
* Perform any BSP specific shutdown actions.
*/
- bsp_cleanup();
+ bsp_cleanup();
/*
* Now return to the start code.
diff --git a/c/src/lib/libbsp/shared/bsppost.c b/c/src/lib/libbsp/shared/bsppost.c
index 3442df4f4d..3b44239ff5 100644
--- a/c/src/lib/libbsp/shared/bsppost.c
+++ b/c/src/lib/libbsp/shared/bsppost.c
@@ -1,5 +1,5 @@
/*
- * This is a basic BSP post driver hook.
+ * This is a basic BSP post driver hook.
*
* After drivers are setup, register some "filenames"
* and open stdin, stdout, stderr files
diff --git a/c/src/lib/libbsp/shared/clockdrv_shell.c b/c/src/lib/libbsp/shared/clockdrv_shell.c
index c36fbebc83..d9b98e2bc9 100644
--- a/c/src/lib/libbsp/shared/clockdrv_shell.c
+++ b/c/src/lib/libbsp/shared/clockdrv_shell.c
@@ -41,11 +41,11 @@ volatile uint32_t Clock_driver_ticks;
rtems_isr_entry Old_ticker;
void Clock_exit( void );
-
+
/*
* Major and minor number.
*/
-
+
rtems_device_major_number rtems_clock_major = ~0;
rtems_device_minor_number rtems_clock_minor;
@@ -74,7 +74,7 @@ rtems_isr Clock_isr(
Clock_driver_ticks += 1;
#ifdef CLOCK_DRIVER_USE_FAST_IDLE
- do {
+ do {
rtems_clock_tick();
} while ( _Thread_Executing == _Thread_Idle &&
_Thread_Heir == _Thread_Executing);
@@ -169,7 +169,7 @@ void Clock_exit( void )
/* do not restore old vector */
}
-
+
/*
* Clock_initialize
*
@@ -193,14 +193,14 @@ rtems_device_driver Clock_initialize(
)
{
Install_clock( Clock_isr );
-
+
/*
* make major/minor avail to others such as shared memory driver
*/
-
+
rtems_clock_major = major;
rtems_clock_minor = minor;
-
+
/*
* If we are counting ISRs per tick, then initialize the counter.
*/
@@ -211,7 +211,7 @@ rtems_device_driver Clock_initialize(
return RTEMS_SUCCESSFUL;
}
-
+
/*
* Clock_control
*
@@ -237,18 +237,18 @@ rtems_device_driver Clock_control(
uint32_t isrlevel;
rtems_libio_ioctl_args_t *args = pargp;
rtems_isr_entry ignored_ticker;
-
+
if (args == 0)
goto done;
-
+
/*
* This is hokey, but until we get a defined interface
* to do this, it will just be this simple...
*/
-
+
if (args->command == rtems_build_name('I', 'S', 'R', ' '))
{
-
+
Clock_isr(CLOCK_VECTOR);
}
else if (args->command == rtems_build_name('N', 'E', 'W', ' '))
@@ -257,7 +257,7 @@ rtems_device_driver Clock_control(
Clock_driver_support_install_isr( args->buffer, ignored_ticker );
rtems_interrupt_enable( isrlevel );
}
-
+
done:
return RTEMS_SUCCESSFUL;
}
diff --git a/c/src/lib/libbsp/shared/console-polled.c b/c/src/lib/libbsp/shared/console-polled.c
index 32b2a3ea34..e95863c51e 100644
--- a/c/src/lib/libbsp/shared/console-polled.c
+++ b/c/src/lib/libbsp/shared/console-polled.c
@@ -1,5 +1,5 @@
/*
- * This file contains the hardware independent portion of a polled
+ * This file contains the hardware independent portion of a polled
* console device driver. If a BSP chooses to use this, then it
* only has to provide a few board dependent routines.
*
@@ -56,7 +56,7 @@ int console_write_support (
* Console Device Driver Entry Points
*
*/
-
+
rtems_device_driver console_initialize(
rtems_device_major_number major,
rtems_device_minor_number minor,
@@ -106,12 +106,12 @@ rtems_device_driver console_open(
assert( minor <= 1 );
if ( minor > 2 )
return RTEMS_INVALID_NUMBER;
-
+
sc = rtems_termios_open (major, minor, arg, &pollCallbacks );
return RTEMS_SUCCESSFUL;
}
-
+
rtems_device_driver console_close(
rtems_device_major_number major,
rtems_device_minor_number minor,
@@ -120,7 +120,7 @@ rtems_device_driver console_close(
{
return rtems_termios_close (arg);
}
-
+
rtems_device_driver console_read(
rtems_device_major_number major,
rtems_device_minor_number minor,
@@ -129,7 +129,7 @@ rtems_device_driver console_read(
{
return rtems_termios_read (arg);
}
-
+
rtems_device_driver console_write(
rtems_device_major_number major,
rtems_device_minor_number minor,
@@ -138,7 +138,7 @@ rtems_device_driver console_write(
{
return rtems_termios_write (arg);
}
-
+
rtems_device_driver console_control(
rtems_device_major_number major,
rtems_device_minor_number minor,
diff --git a/c/src/lib/libbsp/shared/console.c b/c/src/lib/libbsp/shared/console.c
index 0b1fbcecb7..c897544a79 100644
--- a/c/src/lib/libbsp/shared/console.c
+++ b/c/src/lib/libbsp/shared/console.c
@@ -30,7 +30,7 @@
extern console_data Console_Port_Data[];
extern unsigned long Console_Port_Count;
extern rtems_device_minor_number Console_Port_Minor;
-
+
/*PAGE
*
* console_open
@@ -74,17 +74,17 @@ rtems_device_driver console_open(
Callbacks.startRemoteTx = cptr->pDeviceFlow->deviceStartRemoteTx;
Callbacks.outputUsesInterrupts = cptr->pDeviceFns->deviceOutputUsesInterrupts;
- /* XXX what about
+ /* XXX what about
* Console_Port_Tbl[minor].ulMargin,
* Console_Port_Tbl[minor].ulHysteresis);
*/
status = rtems_termios_open ( major, minor, arg, &Callbacks );
Console_Port_Data[minor].termios_data = args->iop->data1;
-
+
/* Get tty pointeur from the Console_Port_Data */
current_tty = Console_Port_Data[minor].termios_data;
-
+
if ( (current_tty->refcount == 1) ) {
/*
* If it's the first open, modified, if need, the port parameters
@@ -112,7 +112,7 @@ rtems_device_driver console_open(
return status;
}
-
+
/*PAGE
*
* console_close
@@ -136,7 +136,7 @@ rtems_device_driver console_close(
return rtems_termios_close (arg);
}
-
+
/*PAGE
*
* console_read
@@ -152,7 +152,7 @@ rtems_device_driver console_read(
{
return rtems_termios_read (arg);
}
-
+
/*PAGE
*
* console_write
@@ -168,7 +168,7 @@ rtems_device_driver console_write(
{
return rtems_termios_write (arg);
}
-
+
/*PAGE
*
* console_control
@@ -228,7 +228,7 @@ rtems_device_driver console_initialize(
*/
rtems_fatal_error_occurred(RTEMS_IO_ERROR);
}
-
+
Console_Port_Minor=minor;
/*
diff --git a/c/src/lib/libbsp/shared/gdbstub/rtems-stub-glue.c b/c/src/lib/libbsp/shared/gdbstub/rtems-stub-glue.c
index 54288eaa21..bbb038dfa1 100644
--- a/c/src/lib/libbsp/shared/gdbstub/rtems-stub-glue.c
+++ b/c/src/lib/libbsp/shared/gdbstub/rtems-stub-glue.c
@@ -9,16 +9,16 @@
* as far as this copyight notice is kept unchanged, but does not imply
* an endorsement by T.sqware of the product in which it is included.
*
- *
+ *
* Modifications for RTEMS threads and more
*
- * Copyright (C) 2000 Quality Quorum, Inc.
- *
+ * Copyright (C) 2000 Quality Quorum, Inc.
+ *
* All Rights Reserved
- *
- * Permission to use, copy, modify, and distribute this software and its
- * documentation for any purpose and without fee is hereby granted.
- *
+ *
+ * Permission to use, copy, modify, and distribute this software and its
+ * documentation for any purpose and without fee is hereby granted.
+ *
* QQI DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
* ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
* QQI BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
@@ -35,7 +35,7 @@
/* Change it to something meaningful when debugging */
#undef ASSERT
-#define ASSERT(x)
+#define ASSERT(x)
extern const char gdb_hexchars[];
@@ -45,7 +45,7 @@ extern const char gdb_hexchars[];
* at the bottom of this file.
*/
-void rtems_gdb_stub_get_registers_from_context(
+void rtems_gdb_stub_get_registers_from_context(
int *registers,
Thread_Control *th
);
@@ -85,7 +85,7 @@ int rtems_gdb_stub_id_to_index(
if (_System_state_Get() != SYSTEM_STATE_UP) {
/* We have one thread let us use value reserved for idle thread */
- return 1;
+ return 1;
}
if (_Thread_Executing == _Thread_Idle) {
@@ -109,7 +109,7 @@ int rtems_gdb_stub_id_to_index(
min_id = _Objects_Information_table[OBJECTS_POSIX_API][1]->minimum_id;
return first_posix_id + (thread_obj_id - min_id);
-}
+}
@@ -208,7 +208,7 @@ int rtems_gdb_stub_get_next_thread(int athread)
}
first_rtems_id = 2;
-
+
obj_info = _Objects_Information_table[OBJECTS_CLASSIC_API][1];
min_id = obj_info->minimum_id;
@@ -229,7 +229,7 @@ int rtems_gdb_stub_get_next_thread(int athread)
}
}
}
-
+
first_posix_id = first_rtems_id + (max_id - min_id) + 1;
obj_info = _Objects_Information_table[OBJECTS_POSIX_API][1];
@@ -245,7 +245,7 @@ int rtems_gdb_stub_get_next_thread(int athread)
} else {
start = 1 + athread;
}
-
+
for (id=start; id<=lim; id++) {
if (obj_info->local_table[id - first_posix_id + 1] != NULL) {
return id;
@@ -262,7 +262,7 @@ int rtems_gdb_stub_get_next_thread(int athread)
-/* Get thread registers, return 0 if thread does not
+/* Get thread registers, return 0 if thread does not
exist, and 1 otherwise */
int rtems_gdb_stub_get_thread_regs(
int thread,
@@ -286,8 +286,8 @@ int rtems_gdb_stub_get_thread_regs(
-/* Set thread registers, return 0 if thread does not
- exist or register values will screw up the threads,
+/* Set thread registers, return 0 if thread does not
+ exist or register values will screw up the threads,
and 1 otherwise */
int rtems_gdb_stub_set_thread_regs(
@@ -296,7 +296,7 @@ int rtems_gdb_stub_set_thread_regs(
)
{
/* In current situation there is no point in changing any registers here
- thread status is displayed as being deep inside thread switching
+ thread status is displayed as being deep inside thread switching
and we better do not screw up anything there - it may be fixed eventually
though */
return 1;
@@ -307,7 +307,7 @@ int rtems_gdb_stub_set_thread_regs(
-/* Get thread information, return 0 if thread does not
+/* Get thread information, return 0 if thread does not
exist and 1 otherwise */
int rtems_gdb_stub_get_thread_info(
int thread,
@@ -343,14 +343,14 @@ int rtems_gdb_stub_get_thread_info(
/* Let us figure out thread_id for gdb */
first_rtems_id = 2;
-
+
obj_info = _Objects_Information_table[OBJECTS_CLASSIC_API][1];
min_id = obj_info->minimum_id;
max_id = obj_info->maximum_id;
if (thread <= (first_rtems_id + (max_id - min_id))) {
- th = (Thread_Control *)(obj_info->local_table[thread -
+ th = (Thread_Control *)(obj_info->local_table[thread -
first_rtems_id + 1]);
if (th == NULL) {
@@ -374,7 +374,7 @@ int rtems_gdb_stub_get_thread_info(
#if 0
name = *(uint32_t*)(obj_info->local_table[thread]->name);
#else
- name = *(uint32_t*)(obj_info->local_table[thread -
+ name = *(uint32_t*)(obj_info->local_table[thread -
first_rtems_id + 1]->name);
#endif
info->name[0] = (name >> 24) & 0xff;
@@ -416,7 +416,7 @@ int rtems_gdb_stub_get_thread_info(
strcat(info->display, tmp_buf);
- name = *(uint32_t*)(obj_info->local_table[thread -
+ name = *(uint32_t*)(obj_info->local_table[thread -
first_posix_id + 1]->name);
info->name[0] = (name >> 24) & 0xff;
@@ -426,7 +426,7 @@ int rtems_gdb_stub_get_thread_info(
info->name[4] = 0;
info->more_display[0] = 0; /* Nothing */
-
+
return 1;
}
@@ -441,7 +441,7 @@ int rtems_gdb_stub_get_thread_info(
int parse_zbreak(const char *in, int *type, unsigned char **addr, int *len)
{
int ttmp, atmp, ltmp;
-
+
ASSERT(in != NULL);
ASSERT(type != NULL);
ASSERT(addr != NULL);
@@ -681,7 +681,7 @@ pack_qm_header(char *out, int count, int done, int athread)
-void rtems_gdb_process_query(
+void rtems_gdb_process_query(
char *inbuffer,
char *outbuffer,
int do_threads,
@@ -689,7 +689,7 @@ void rtems_gdb_process_query(
)
{
char *optr;
-
+
switch(inbuffer[1]) {
case 'C':
/* Current thread query query - return stopped thread */
@@ -865,7 +865,7 @@ thread2vhstr(char *buf, int thread)
for(i=0, shift=28; i<8; i++, shift-=4)
{
nibble = (thread >> shift) & 0x0f;
-
+
if (nibble != 0)
{
break;
@@ -988,7 +988,7 @@ vhstr2thread(const char *buf, int *thread)
*thread = val;
return buf;
}
-
+
ASSERT(nibble >= 0 && nibble < 16);
val = (val << 4) | nibble;
@@ -999,7 +999,7 @@ vhstr2thread(const char *buf, int *thread)
/* Value is too long */
return NULL;
}
-
+
*thread = val;
return buf;
}
@@ -1016,7 +1016,7 @@ int2vhstr(char *buf, int val)
for(i=0, shift=28; i<8; i++, shift-=4)
{
nibble = (val >> shift) & 0x0f;
-
+
if (nibble != 0)
{
break;
@@ -1126,7 +1126,7 @@ vhstr2int(const char *buf, int *ival)
*ival = val;
return buf;
}
-
+
ASSERT(nibble >= 0 && nibble < 16);
val = (val << 4) | nibble;
@@ -1159,7 +1159,7 @@ hstr2byte(const char *buf, int *bval)
return 1;
}
-int
+int
hstr2nibble(const char *buf, int *nibble)
{
int ch;
@@ -1196,7 +1196,7 @@ static void (*volatile mem_fault_routine) (void) = NULL;
-/* convert count bytes of the memory pointed to by mem into hex string,
+/* convert count bytes of the memory pointed to by mem into hex string,
placing result in buf, return pointer to next location in hex strng
in case of success or NULL otherwise */
char*
@@ -1208,7 +1208,7 @@ mem2hstr(char *buf, const unsigned char *mem, int count)
mem_err = 0;
mem_fault_routine = set_mem_err;
-
+
for (i = 0; i<count; i++, mem++)
{
ch = get_byte (mem);
@@ -1217,11 +1217,11 @@ mem2hstr(char *buf, const unsigned char *mem, int count)
mem_fault_routine = NULL;
return NULL;
}
-
+
*buf++ = gdb_hexchars[ch >> 4];
*buf++ = gdb_hexchars[ch & 0x0f];
}
-
+
*buf = 0;
mem_fault_routine = NULL;
@@ -1248,7 +1248,7 @@ hstr2mem (unsigned char *mem, const char *buf, int count)
mem_fault_routine = NULL;
return 0;
}
-
+
ASSERT(bval >=0 && bval < 256);
set_byte (mem, bval);
@@ -1276,7 +1276,7 @@ set_mem_err (void)
to mem_fault, they won't get restored, so there better not be any
saved). */
-unsigned char
+unsigned char
get_byte (const unsigned char *addr)
{
return *addr;
@@ -1315,7 +1315,7 @@ enum i386_stub_regnames {
I386_STUB_REG_FS, I386_STUB_REG_GS
};
-void rtems_gdb_stub_get_registers_from_context(
+void rtems_gdb_stub_get_registers_from_context(
int *registers,
Thread_Control *th
)
@@ -1331,7 +1331,7 @@ void rtems_gdb_stub_get_registers_from_context(
registers[I386_STUB_REG_PC] = *(int *)th->Registers.esp;
registers[I386_STUB_REG_PS] = (int)th->Registers.eflags;
- /* RTEMS never changes base registers (especially once
+ /* RTEMS never changes base registers (especially once
threads are running) */
registers[I386_STUB_REG_CS] = 0x8; /* We just know these values */
@@ -1344,7 +1344,7 @@ void rtems_gdb_stub_get_registers_from_context(
int rtems_gdb_stub_get_offsets(
unsigned char **text_addr,
- unsigned char **data_addr,
+ unsigned char **data_addr,
unsigned char **bss_addr
)
{
@@ -1366,7 +1366,7 @@ int rtems_gdb_stub_get_offsets(
#elif defined(__mips__)
-void rtems_gdb_stub_get_registers_from_context(
+void rtems_gdb_stub_get_registers_from_context(
int *registers,
Thread_Control *th
)
@@ -1390,10 +1390,10 @@ void rtems_gdb_stub_get_registers_from_context(
int rtems_gdb_stub_get_offsets(
unsigned char **text_addr,
- unsigned char **data_addr,
+ unsigned char **data_addr,
unsigned char **bss_addr
)
-{
+{
/*
extern uint32_t _ftext;
extern uint32_t _fdata;
@@ -1412,7 +1412,7 @@ int rtems_gdb_stub_get_offsets(
#elif defined(__mc68000__)
-void rtems_gdb_stub_get_registers_from_context(
+void rtems_gdb_stub_get_registers_from_context(
int *registers,
Thread_Control *th
)
@@ -1422,7 +1422,7 @@ void rtems_gdb_stub_get_registers_from_context(
* they are located on thread stack ...
* -> they are not needed for context switch
*/
- registers[D0] = 0;
+ registers[D0] = 0;
registers[D1] = 0;
registers[D2] = (uint32_t)th->Registers.d2;
registers[D3] = (uint32_t)th->Registers.d3;
@@ -1439,7 +1439,7 @@ void rtems_gdb_stub_get_registers_from_context(
registers[A5] = (uint32_t)th->Registers.a5;
registers[A6] = (uint32_t)th->Registers.a6;
registers[A7] = (uint32_t)th->Registers.a7_msp;
-
+
registers[PS] = (uint32_t)th->Registers.sr;
#if 0
registers[PC] = *(uint32_t*)th->Registers.a7_msp; /* *SP = ret adr */
@@ -1451,10 +1451,10 @@ void rtems_gdb_stub_get_registers_from_context(
int rtems_gdb_stub_get_offsets(
unsigned char **text_addr,
- unsigned char **data_addr,
+ unsigned char **data_addr,
unsigned char **bss_addr
)
-{
+{
/*
extern uint32_t _ftext;
extern uint32_t _fdata;
diff --git a/c/src/lib/libbsp/shared/gnatinstallhandler.c b/c/src/lib/libbsp/shared/gnatinstallhandler.c
index 64ce384625..6c9d0b8de4 100644
--- a/c/src/lib/libbsp/shared/gnatinstallhandler.c
+++ b/c/src/lib/libbsp/shared/gnatinstallhandler.c
@@ -1,11 +1,11 @@
/*
- * Default implementation of __gnat_install_handler to satisfy
+ * Default implementation of __gnat_install_handler to satisfy
* reference in a-init.c in GNAT's run-time. Each BSP really
* should provide its own version of this routine but this
* version lets programs link.
*
* This routine is responsible for installing fault/exception/trap
- * handlers that map them onto POSIX signals so they can be
+ * handlers that map them onto POSIX signals so they can be
* propagated to the GNAT run-time. See the sparc/erc32 BSP
* for an example.
*
diff --git a/c/src/lib/libbsp/shared/ide_ctrl.c b/c/src/lib/libbsp/shared/ide_ctrl.c
index 57349b824a..444ae961d5 100644
--- a/c/src/lib/libbsp/shared/ide_ctrl.c
+++ b/c/src/lib/libbsp/shared/ide_ctrl.c
@@ -1,6 +1,6 @@
/*
* ide_controller.c
- *
+ *
* This is generic rtems driver for IDE controllers.
*
* Copyright (C) 2001 OKTET Ltd., St.-Petersburg, Russia
@@ -10,7 +10,7 @@
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rtems.com/license/LICENSE.
- *
+ *
* $Id$
*
*/
@@ -23,7 +23,7 @@
/*
* ide_controller_initialize --
- * Initializes all configured IDE controllers. Controllers configuration
+ * Initializes all configured IDE controllers. Controllers configuration
* table is provided by BSP
*
* PARAMETERS:
@@ -35,7 +35,7 @@
* RTEMS_SUCCESSFUL on success, or error code if
* error occured
*/
-rtems_device_driver
+rtems_device_driver
ide_controller_initialize(rtems_device_major_number major,
rtems_device_minor_number minor_arg,
void *args)
@@ -46,22 +46,22 @@ ide_controller_initialize(rtems_device_major_number major,
/* FIXME: may be it should be done on compilation phase */
if (IDE_Controller_Count > IDE_CTRL_MAX_MINOR_NUMBER)
rtems_fatal_error_occurred(RTEMS_TOO_MANY);
-
+
for (minor=0; minor < IDE_Controller_Count; minor++)
{
IDE_Controller_Table[minor].status = IDE_CTRL_NON_INITIALIZED;
-
- if ((IDE_Controller_Table[minor].probe != NULL &&
+
+ if ((IDE_Controller_Table[minor].probe != NULL &&
IDE_Controller_Table[minor].probe(minor)) ||
IDE_Controller_Table[minor].fns->ctrl_probe(minor))
{
- status = rtems_io_register_name(IDE_Controller_Table[minor].name,
+ status = rtems_io_register_name(IDE_Controller_Table[minor].name,
major, minor);
- if (status != RTEMS_SUCCESSFUL)
+ if (status != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred(status);
IDE_Controller_Table[minor].fns->ctrl_initialize(minor);
-
+
IDE_Controller_Table[minor].status = IDE_CTRL_INITIALIZED;
}
}
@@ -133,7 +133,7 @@ ide_controller_write_data_block(rtems_device_minor_number minor,
*/
void
ide_controller_read_register(rtems_device_minor_number minor,
- int reg,
+ int reg,
uint16_t *value)
{
IDE_Controller_Table[minor].fns->ctrl_reg_read(minor, reg, value);
@@ -152,7 +152,7 @@ ide_controller_read_register(rtems_device_minor_number minor,
* NONE
*/
void
-ide_controller_write_register(rtems_device_minor_number minor, int reg,
+ide_controller_write_register(rtems_device_minor_number minor, int reg,
uint16_t value)
{
IDE_Controller_Table[minor].fns->ctrl_reg_write(minor, reg, value);
@@ -170,10 +170,10 @@ ide_controller_write_register(rtems_device_minor_number minor, int reg,
* RTEMS_SUCCESSFUL on success, or error code if
* error occured
*/
-rtems_status_code
+rtems_status_code
ide_controller_config_io_speed(int minor, uint8_t modes_avaible)
{
return IDE_Controller_Table[minor].fns->ctrl_config_io_speed(
- minor,
+ minor,
modes_avaible);
}
diff --git a/c/src/lib/libbsp/shared/main.c b/c/src/lib/libbsp/shared/main.c
index 0e1f080176..8397902bd3 100644
--- a/c/src/lib/libbsp/shared/main.c
+++ b/c/src/lib/libbsp/shared/main.c
@@ -1,7 +1,7 @@
/*
* A simple main which can be used on any embedded target.
*
- * This style of initialization insures that the C++ global
+ * This style of initialization insures that the C++ global
* constructors are executed after RTEMS is initialized.
*
* Thanks to Chris Johns <cjohns@plessey.com.au> for this idea.
diff --git a/c/src/lib/libbsp/shared/setvec.c b/c/src/lib/libbsp/shared/setvec.c
index 0658acbfcd..826f13b399 100644
--- a/c/src/lib/libbsp/shared/setvec.c
+++ b/c/src/lib/libbsp/shared/setvec.c
@@ -34,7 +34,7 @@ rtems_isr_entry set_vector( /* returns old vector */
if ( type )
rtems_interrupt_catch( handler, vector, &previous_isr );
- else
+ else
_CPU_ISR_install_raw_handler( vector, handler, (void *)&previous_isr );
return previous_isr;
diff --git a/c/src/lib/libbsp/shared/timerstub.c b/c/src/lib/libbsp/shared/timerstub.c
index bba07bcf7c..dc3144c928 100644
--- a/c/src/lib/libbsp/shared/timerstub.c
+++ b/c/src/lib/libbsp/shared/timerstub.c
@@ -1,4 +1,4 @@
-/*
+/*
* This file implements a stub benchmark timer that is sufficient to
* satisfy linking the RTEMS Benchmarks.
*
diff --git a/c/src/lib/libbsp/shared/tod.c b/c/src/lib/libbsp/shared/tod.c
index 14a588ac58..0f90f11915 100644
--- a/c/src/lib/libbsp/shared/tod.c
+++ b/c/src/lib/libbsp/shared/tod.c
@@ -6,7 +6,7 @@
* http://www.rtems.com/license/LICENSE.
*
* $Id$
- */
+ */
#include <rtems.h>
#include <libchip/rtc.h>
@@ -36,13 +36,13 @@ rtems_device_driver rtc_initialize(
rtems_status_code status;
for (minor=0; minor < RTC_Count ; minor++) {
- /*
+ /*
* First perform the configuration dependent probe, then the
* device dependent probe
*/
if (RTC_Table[minor].deviceProbe && RTC_Table[minor].deviceProbe(minor)) {
- /*
+ /*
* Use this device as the primary RTC
*/
RTC_Minor = minor;
@@ -52,7 +52,7 @@ rtems_device_driver rtc_initialize(
}
if ( !RTC_Present ) {
- /*
+ /*
* Failed to find an RTC -- this is not a fatal error.
*/
@@ -71,7 +71,7 @@ rtems_device_driver rtc_initialize(
RTC_Table[minor].pDeviceFns->deviceInitialize( RTC_Minor );
/*
- * Now initialize any secondary RTC's
+ * Now initialize any secondary RTC's
*/
for ( minor++ ; minor<RTC_Count ; minor++) {
@@ -105,9 +105,9 @@ rtems_device_driver rtc_initialize(
/*PAGE
*
* This routine copies the time from the real time clock to RTEMS
- *
+ *
* Input parameters: NONE
- *
+ *
* Output parameters: NONE
*
* Return values: NONE
@@ -129,9 +129,9 @@ void setRealTimeToRTEMS()
* setRealTimeFromRTEMS
*
* This routine copies the time from RTEMS to the real time clock
- *
+ *
* Input parameters: NONE
- *
+ *
* Output parameters: NONE
*
* Return values: NONE
@@ -153,9 +153,9 @@ void setRealTimeFromRTEMS()
* getRealTime
*
* This routine reads the current time from the RTC.
- *
+ *
* Input parameters: NONE
- *
+ *
* Output parameters: NONE
*
* Return values: NONE
@@ -173,29 +173,29 @@ void getRealTime(
}
/*PAGE
- *
+ *
* setRealTime
- *
+ *
* This routine sets the RTC.
- *
+ *
* Input parameters: NONE
- *
+ *
* Output parameters: NONE
*
* Return values: NONE
*/
-/* XXX this routine should be part of the public RTEMS interface */
+/* XXX this routine should be part of the public RTEMS interface */
rtems_boolean _TOD_Validate( rtems_time_of_day *tod );
int setRealTime(
rtems_time_of_day *tod
)
{
-
+
if (!RTC_Present)
return -1;
-
+
if ( !_TOD_Validate(tod) )
return -1;
@@ -210,16 +210,16 @@ int setRealTime(
*
* This routine reads the returns the variance betweent the real time and
* rtems time.
- *
+ *
* Input parameters: NONE
- *
+ *
* Output parameters: NONE
*
- * Return values:
+ * Return values:
* int The differance between the real time clock and rtems time.
*/
-/* XXX this routine should be part of the public RTEMS interface */
+/* XXX this routine should be part of the public RTEMS interface */
uint32_t _TOD_To_seconds( rtems_time_of_day *tod );
int checkRealTime()
@@ -235,8 +235,8 @@ int checkRealTime()
rtems_clock_get( RTEMS_CLOCK_GET_TOD, &rtems_tod );
RTC_Table[RTC_Minor].pDeviceFns->deviceGetTime(RTC_Minor, &rtc_tod);
- rtems_time = _TOD_To_seconds( &rtems_tod );
- rtc_time = _TOD_To_seconds( &rtc_tod );
+ rtems_time = _TOD_To_seconds( &rtems_tod );
+ rtc_time = _TOD_To_seconds( &rtc_tod );
return rtems_time - rtc_time;
}
diff --git a/c/src/lib/libbsp/shared/vmeUniverse/vmeUniverse.c b/c/src/lib/libbsp/shared/vmeUniverse/vmeUniverse.c
index 9a521446df..47c9d3d1d0 100644
--- a/c/src/lib/libbsp/shared/vmeUniverse/vmeUniverse.c
+++ b/c/src/lib/libbsp/shared/vmeUniverse/vmeUniverse.c
@@ -131,7 +131,7 @@ WRITE_LE(
#warning "SYNC instruction unknown for this architecture"
#endif
-/* registers should be mapped to guarded, non-cached memory; hence
+/* registers should be mapped to guarded, non-cached memory; hence
* subsequent stores are ordered. eieio is only needed to enforce
* ordering of loads with respect to stores.
*/
@@ -174,11 +174,11 @@ return READ_LE0((volatile LERegister *)(((unsigned long)adrs)+off));
}
#define PORT_UNALIGNED(addr,port) \
- ( (port)%4 ? ((addr) & 0xffff) : ((addr) & 4095) )
+ ( (port)%4 ? ((addr) & 0xffff) : ((addr) & 4095) )
#define UNIV_REV(base) (READ_LE(base,2*sizeof(LERegister)) & 0xff)
-
+
#if defined(__rtems__) && 0
static int
uprintk(char *fmt, va_list ap)
@@ -213,7 +213,7 @@ va_list ap;
* to a buffer.
*/
vprintk(fmt,ap);
- } else
+ } else
#endif
{
vfprintf(f,fmt,ap);
@@ -440,7 +440,7 @@ unsigned long mode=0;
*/
if (ismaster)
mode |= UNIV_MCTL_EN | UNIV_MCTL_PWEN | UNIV_MCTL_VDW64 | UNIV_MCTL_VCT;
- else
+ else
mode |= UNIV_SCTL_EN | UNIV_SCTL_PWEN | UNIV_SCTL_PREN;
#ifdef TSILL
@@ -521,7 +521,7 @@ showUniversePort(
cntrl&UNIV_MCTL_PGM ? "Pgm" : "Dat",
cntrl&UNIV_MCTL_SUPER ? "Sup" : "Usr");
} else {
- uprintf(f,"%s %s %s %s",
+ uprintf(f,"%s %s %s %s",
cntrl&UNIV_SCTL_PGM ? "Pgm," : " ",
cntrl&UNIV_SCTL_DAT ? "Dat," : " ",
cntrl&UNIV_SCTL_SUPER ? "Sup," : " ",
@@ -614,7 +614,7 @@ int rval;
uprintf(stderr,"unable to find the universe in pci config space\n");
return -1;
}
- rptr = (base +
+ rptr = (base +
(ismaster ? UNIV_REGOFF_PCITGT0_CTRL : UNIV_REGOFF_VMESLV0_CTRL)/sizeof(LERegister));
#undef TSILL
#ifdef TSILL
@@ -629,7 +629,7 @@ int rval;
/* only rev. 2 has 8 ports */
if (UNIV_REV(base)<2) return -1;
- rptr = (base +
+ rptr = (base +
(ismaster ? UNIV_REGOFF_PCITGT4_CTRL : UNIV_REGOFF_VMESLV4_CTRL)/sizeof(LERegister));
for (port=4; port<UNIV_NUM_MPORTS; port++) {
if ((rval=func(ismaster,port,rptr,arg))) return rval;
@@ -724,7 +724,7 @@ vmeUniverseReset(void)
vmeUniverseDisableAllSlaves();
vmeUniverseDisableAllMasters();
-
+
vmeUniverseWriteReg(UNIV_VCSR_CLR_SYSFAIL, UNIV_REGOFF_VCSR_CLR);
/* clear interrupt status bits */
@@ -955,14 +955,14 @@ register unsigned long status;
* like this:
*
*
- * VME IRQ ------
- * & ----- LINT_STAT ----
+ * VME IRQ ------
+ * & ----- LINT_STAT ----
* | & ---------- PCI LINE
* | |
- * | |
- * LINT_EN ---------------------------
+ * | |
+ * LINT_EN ---------------------------
*
- * I.e.
+ * I.e.
* - if LINT_EN is disabled, a VME IRQ will not set LINT_STAT.
* - while LINT_STAT is set, it will pull the PCI line unless
* masked by LINT_EN.
@@ -999,7 +999,7 @@ unsigned long lvl,msk,lintstat,linten,status;
/* try the special handler */
universeSpecialISR();
- /*
+ /*
* let the pic end this cycle
*/
BSP_PIC_DO_EOI;
@@ -1165,7 +1165,7 @@ vmeUniverseIntEnable(unsigned int level)
if (!vmeUniverseIrqMgrInstalled || level<1 || level>7)
return -1;
vmeUniverseWriteReg(
- (vmeUniverseReadReg(UNIV_REGOFF_LINT_EN) |
+ (vmeUniverseReadReg(UNIV_REGOFF_LINT_EN) |
(UNIV_LINT_EN_VIRQ1 << (level-1))
),
UNIV_REGOFF_LINT_EN);
@@ -1178,7 +1178,7 @@ vmeUniverseIntDisable(unsigned int level)
if (!vmeUniverseIrqMgrInstalled || level<1 || level>7)
return -1;
vmeUniverseWriteReg(
- (vmeUniverseReadReg(UNIV_REGOFF_LINT_EN) &
+ (vmeUniverseReadReg(UNIV_REGOFF_LINT_EN) &
~ (UNIV_LINT_EN_VIRQ1 << (level-1))
),
UNIV_REGOFF_LINT_EN);
diff --git a/c/src/lib/libbsp/shared/vmeUniverse/vmeUniverse.h b/c/src/lib/libbsp/shared/vmeUniverse/vmeUniverse.h
index 6e62b9040f..06ecffedf9 100644
--- a/c/src/lib/libbsp/shared/vmeUniverse/vmeUniverse.h
+++ b/c/src/lib/libbsp/shared/vmeUniverse/vmeUniverse.h
@@ -361,7 +361,7 @@ typedef struct VmeUniverseDMAPacketRec_ {
/* Location Monitor control register */
#define UNIV_REGOFF_LM_CTL 0xf64
-# define UNIV_LM_CTL_EN (1<<31) /* image enable */
+# define UNIV_LM_CTL_EN (1<<31) /* image enable */
# define UNIV_LM_CTL_PGM (1<<23) /* program AM */
# define UNIV_LM_CTL_DATA (1<<22) /* data AM */
# define UNIV_LM_CTL_SUPER (1<<21) /* supervisor AM */
@@ -375,7 +375,7 @@ typedef struct VmeUniverseDMAPacketRec_ {
/* VMEbus register access image control register */
#define UNIV_REGOFF_VRAI_CTL 0xf70
-# define UNIV_VRAI_CTL_EN (1<<31) /* image enable */
+# define UNIV_VRAI_CTL_EN (1<<31) /* image enable */
# define UNIV_VRAI_CTL_PGM (1<<23) /* program AM */
# define UNIV_VRAI_CTL_DATA (1<<22) /* data AM */
# define UNIV_VRAI_CTL_SUPER (1<<21) /* supervisor AM */
@@ -453,7 +453,7 @@ vmeUniverseReset(void);
* #include <vmeUniverse.h>
*/
#ifdef _VME_UNIVERSE_DECLARE_SHOW_ROUTINES
-/* print the current configuration of all master ports to
+/* print the current configuration of all master ports to
* f (stderr if NULL)
*/
void
@@ -638,7 +638,7 @@ vmeUniverseIntDisable(unsigned int level);
/* use these special vectors to connect a handler to the
- * universe specific interrupts (such as "DMA done",
+ * universe specific interrupts (such as "DMA done",
* VOWN, error irqs etc.)
* NOTE: The wrapper clears all status LINT bits (except
* for regular VME irqs). Also note that it is the user's
@@ -649,7 +649,7 @@ vmeUniverseIntDisable(unsigned int level);
* DO NOT CHANGE THE ORDER OF THESE VECTORS - THE DRIVER
* DEPENDS ON IT
* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- *
+ *
*/
#define UNIV_VOWN_INT_VEC 256
#define UNIV_DMA_INT_VEC 257
@@ -674,7 +674,7 @@ vmeUniverseIntDisable(unsigned int level);
* (VME) interrupts to 8 different lines (some of) which may be hooked up
* in a (board specific) way to a PIC.
*
- * This driver only supports at most two lines. It routes the 7 VME
+ * This driver only supports at most two lines. It routes the 7 VME
* interrupts to the main line and optionally, it routes the 'special'
* interrupts generated by the universe itself (DMA done, VOWN etc.)
* to a second line. If no second line is available, all IRQs are routed
@@ -689,7 +689,7 @@ vmeUniverseIntDisable(unsigned int level);
* are wired.
* Optionally, the first PIC input line can be read from PCI config space
* but the second must be passed to this routine. Note that the info read
- * from PCI config space is wrong for many boards!
+ * from PCI config space is wrong for many boards!
*
* PARAMETERS:
* vmeIrqUnivOut: to which output pin (of the universe) should the 7
@@ -705,7 +705,7 @@ vmeUniverseIntDisable(unsigned int level);
* the PIC is determined by reading PCI config space.
*
* RETURNS: 0 on success, -1 on failure.
- *
+ *
*/
int
vmeUniverseInstallIrqMgr(int vmeIrqUnivOut,