summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/m68k/mvme167/console
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/lib/libbsp/m68k/mvme167/console')
-rw-r--r--c/src/lib/libbsp/m68k/mvme167/console/console-recording.h19
-rw-r--r--c/src/lib/libbsp/m68k/mvme167/console/console.c28
2 files changed, 0 insertions, 47 deletions
diff --git a/c/src/lib/libbsp/m68k/mvme167/console/console-recording.h b/c/src/lib/libbsp/m68k/mvme167/console/console-recording.h
index 9aa0d597b8..f4c1eae9aa 100644
--- a/c/src/lib/libbsp/m68k/mvme167/console/console-recording.h
+++ b/c/src/lib/libbsp/m68k/mvme167/console/console-recording.h
@@ -24,7 +24,6 @@
#define CD2401_RECORD_DRAIN_OUTPUT
#define CD2401_RECORD_DELAY
-
/* Call the data recording functions */
#ifdef CD2401_RECORD_WRITE
#define CD2401_RECORD_WRITE_INFO( args ) cd2401_record_write_info args
@@ -104,7 +103,6 @@
#define CD2401_RECORD_DELAY_INFO( args )
#endif
-
/* Define the data and the recording functions */
#define CD2401_DEBUG_BUFFER_SIZE 256
#define CD2401_DEBUG_CHAR_BUFSIZE 64
@@ -124,7 +122,6 @@
#define CD2401_DRAIN_OUTPUT_INFO 14
#define CD2401_DELAY_INFO 15
-
struct cd2401_debug_info {
short discriminant;
short record_size;
@@ -244,7 +241,6 @@ int cd2401_get_record_size(
return size + 4;
}
-
void cd2401_record_write_info(
int len,
const char * buf,
@@ -266,7 +262,6 @@ void cd2401_record_write_info(
cd2401_debug_index = (cd2401_debug_index + 1 ) % CD2401_DEBUG_BUFFER_SIZE;
}
-
void cd2401_record_tx_isr_info(
unsigned char ch,
unsigned char status,
@@ -288,7 +283,6 @@ void cd2401_record_tx_isr_info(
cd2401_debug_index = (cd2401_debug_index + 1 ) % CD2401_DEBUG_BUFFER_SIZE;
}
-
void cd2401_record_tx_isr_spurious_info(
unsigned char ch,
unsigned char status,
@@ -312,7 +306,6 @@ void cd2401_record_tx_isr_spurious_info(
cd2401_debug_index = (cd2401_debug_index + 1 ) % CD2401_DEBUG_BUFFER_SIZE;
}
-
void cd2401_record_tx_isr_buserr_info(
unsigned char ch,
unsigned char status,
@@ -336,7 +329,6 @@ void cd2401_record_tx_isr_buserr_info(
cd2401_debug_index = (cd2401_debug_index + 1 ) % CD2401_DEBUG_BUFFER_SIZE;
}
-
void cd2401_record_rx_isr_info(
unsigned char ch,
unsigned char total,
@@ -357,7 +349,6 @@ void cd2401_record_rx_isr_info(
cd2401_debug_index = (cd2401_debug_index + 1 ) % CD2401_DEBUG_BUFFER_SIZE;
}
-
void cd2401_record_rx_isr_spurious_info(
unsigned char ch,
unsigned char status,
@@ -377,7 +368,6 @@ void cd2401_record_rx_isr_spurious_info(
cd2401_debug_index = (cd2401_debug_index + 1 ) % CD2401_DEBUG_BUFFER_SIZE;
}
-
void cd2401_record_re_isr_spurious_info(
unsigned char ch,
uint32_t spur_dev,
@@ -395,7 +385,6 @@ void cd2401_record_re_isr_spurious_info(
cd2401_debug_index = (cd2401_debug_index + 1 ) % CD2401_DEBUG_BUFFER_SIZE;
}
-
void cd2401_record_modem_isr_spurious_info(
unsigned char ch,
uint32_t spur_dev,
@@ -413,7 +402,6 @@ void cd2401_record_modem_isr_spurious_info(
cd2401_debug_index = (cd2401_debug_index + 1 ) % CD2401_DEBUG_BUFFER_SIZE;
}
-
void cd2401_record_first_open_info(
unsigned char ch,
uint8_t init_count
@@ -429,7 +417,6 @@ void cd2401_record_first_open_info(
cd2401_debug_index = (cd2401_debug_index + 1 ) % CD2401_DEBUG_BUFFER_SIZE;
}
-
void cd2401_record_last_close_info(
unsigned char ch,
uint8_t init_count
@@ -445,7 +432,6 @@ void cd2401_record_last_close_info(
cd2401_debug_index = (cd2401_debug_index + 1 ) % CD2401_DEBUG_BUFFER_SIZE;
}
-
void cd2401_record_start_remote_tx_info(
unsigned char ch
)
@@ -459,7 +445,6 @@ void cd2401_record_start_remote_tx_info(
cd2401_debug_index = (cd2401_debug_index + 1 ) % CD2401_DEBUG_BUFFER_SIZE;
}
-
void cd2401_record_stop_remote_tx_info(
unsigned char ch
)
@@ -473,7 +458,6 @@ void cd2401_record_stop_remote_tx_info(
cd2401_debug_index = (cd2401_debug_index + 1 ) % CD2401_DEBUG_BUFFER_SIZE;
}
-
void cd2401_record_set_attributes_info(
int minor,
uint8_t need_reinit,
@@ -530,7 +514,6 @@ void cd2401_record_set_attributes_info(
cd2401_debug_index = (cd2401_debug_index + 1 ) % CD2401_DEBUG_BUFFER_SIZE;
}
-
void cd2401_record_drain_output_info(
uint8_t txEmpty,
uint8_t own_buf_A,
@@ -548,7 +531,6 @@ void cd2401_record_drain_output_info(
cd2401_debug_index = (cd2401_debug_index + 1 ) % CD2401_DEBUG_BUFFER_SIZE;
}
-
void cd2401_record_delay_info(
rtems_interval start,
rtems_interval end,
@@ -568,7 +550,6 @@ void cd2401_record_delay_info(
cd2401_debug_index = (cd2401_debug_index + 1 ) % CD2401_DEBUG_BUFFER_SIZE;
}
-
#else
/* Do not call the data recording functions */
diff --git a/c/src/lib/libbsp/m68k/mvme167/console/console.c b/c/src/lib/libbsp/m68k/mvme167/console/console.c
index 3d760e14a8..60880b6289 100644
--- a/c/src/lib/libbsp/m68k/mvme167/console/console.c
+++ b/c/src/lib/libbsp/m68k/mvme167/console/console.c
@@ -157,12 +157,10 @@ int cd2401_drainOutput( int minor );
int _167Bug_pollRead( int minor );
int _167Bug_pollWrite( int minor, const char *buf, int len );
-
/* Printk function */
static void _BSP_output_char( char c );
BSP_output_char_function_type BSP_output_char = _BSP_output_char;
-
/* Channel info */
/* static */ volatile struct {
void *tty; /* Really a struct rtems_termios_tty * */
@@ -188,19 +186,16 @@ BSP_output_char_function_type BSP_output_char = _BSP_output_char;
*/
uint8_t Init_count;
-
/* Record previous handlers */
rtems_isr_entry Prev_re_isr; /* Previous rx exception isr */
rtems_isr_entry Prev_rx_isr; /* Previous rx isr */
rtems_isr_entry Prev_tx_isr; /* Previous tx isr */
rtems_isr_entry Prev_modem_isr; /* Previous modem/timer isr */
-
/* Define the following symbol to trace the calls to this driver */
/* #define CD2401_RECORD_DEBUG_INFO */
#include "console-recording.h"
-
/*
* Utility functions.
*/
@@ -236,7 +231,6 @@ rtems_isr_entry Prev_modem_isr; /* Previous modem/timer isr */
CD2401_RECORD_DELAY_INFO(( start_ticks, end_ticks, current_ticks, i ));
}
-
/*
* cd2401_chan_cmd
*
@@ -274,7 +268,6 @@ void cd2401_chan_cmd(
}
}
-
/*
* cd2401_bitrate_divisor
*
@@ -314,7 +307,6 @@ uint16_t cd2401_bitrate_divisor(
return( clksource | divisor );
}
-
/*
* cd2401_initialize
*
@@ -401,7 +393,6 @@ void cd2401_initialize( void )
cd2401->tpr = 0x0A; /* Same value as 167Bug */
}
-
/*
* cd2401_interrupts_initialize
*
@@ -445,7 +436,6 @@ void cd2401_interrupts_initialize(
}
}
-
/* ISRs */
/*
@@ -481,7 +471,6 @@ rtems_isr cd2401_modem_isr(
CD2401_Channel_Info[ch].spur_cnt ));
}
-
/*
* cd2401_re_isr
*
@@ -519,7 +508,6 @@ rtems_isr cd2401_re_isr(
CD2401_Channel_Info[ch].spur_cnt ));
}
-
/*
* cd2401_rx_isr
*
@@ -567,7 +555,6 @@ rtems_isr cd2401_rx_isr(
}
}
-
/*
* cd2401_tx_isr
*
@@ -664,7 +651,6 @@ rtems_isr cd2401_tx_isr(
}
}
-
/*
* termios callbacks
*/
@@ -751,7 +737,6 @@ int cd2401_firstOpen(
return RTEMS_SUCCESSFUL;
}
-
/*
* cd2401_lastClose
*
@@ -794,7 +779,6 @@ int cd2401_lastClose(
return RTEMS_SUCCESSFUL;
}
-
/*
* cd2401_setAttributes
*
@@ -1083,7 +1067,6 @@ int cd2401_setAttributes(
return RTEMS_SUCCESSFUL;
}
-
/*
* cd2401_startRemoreTx
*
@@ -1124,7 +1107,6 @@ int cd2401_startRemoteTx(
return RTEMS_SUCCESSFUL;
}
-
/*
* cd2401_stopRemoteTx
*
@@ -1166,7 +1148,6 @@ int cd2401_stopRemoteTx(
return RTEMS_SUCCESSFUL;
}
-
/*
* cd2401_write
*
@@ -1266,7 +1247,6 @@ int cd2401_drainOutput(
}
#endif
-
/*
* _167Bug_pollRead
*
@@ -1324,7 +1304,6 @@ int _167Bug_pollRead(
return (int)c;
}
-
/*
* _167Bug_pollWrite
*
@@ -1362,7 +1341,6 @@ int _167Bug_pollWrite(
return RTEMS_SUCCESSFUL;
}
-
/*
* do_poll_read
*
@@ -1443,7 +1421,6 @@ rtems_status_code do_poll_write(
return RTEMS_SUCCESSFUL;
}
-
/*
* _BSP_output_char
*
@@ -1469,7 +1446,6 @@ void _BSP_output_char(char c)
_167Bug_pollWrite(printk_minor, &cr, 1);
}
-
/*
***************
* BOILERPLATE *
@@ -1601,7 +1577,6 @@ rtems_device_driver console_open(
#endif
}
-
/*
* Close the device
*/
@@ -1631,7 +1606,6 @@ rtems_device_driver console_close(
#endif
}
-
/*
* Read from the device
*/
@@ -1661,7 +1635,6 @@ rtems_device_driver console_read(
#endif
}
-
/*
* Write to the device
*/
@@ -1691,7 +1664,6 @@ rtems_device_driver console_write(
#endif
}
-
/*
* Handle ioctl request.
*/