diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2014-10-09 15:15:55 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2014-10-10 10:17:17 -0500 |
commit | e160e41361105109a12edd6dfe04058ddcefac84 (patch) | |
tree | 7b3c1e8c6401bc3e4e48588cc9ae9c534fbc42e8 /c/src/lib/libbsp/powerpc/ep1a/console/polled_io.c | |
parent | powerpc/ep1a: Fix multiple warnings (diff) | |
download | rtems-e160e41361105109a12edd6dfe04058ddcefac84.tar.bz2 |
powerpc/ep1a: Remove if 0 sections
There may be useful nuggets for debug and alternate configurations
in this code. There may be methods directly called by the application
which are beyond normal APIs. We have no way of knowing this based
on the comments in these files. There were no public prototypes
so the routines and code in question should have be unused private
methods.
These will always be in the source code control system as a deletion.
If some of the code is needed, justify it and provide a patch to restore
it along with a prototype in a public place if needed and a better name.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/ep1a/console/polled_io.c')
-rw-r--r-- | c/src/lib/libbsp/powerpc/ep1a/console/polled_io.c | 100 |
1 files changed, 0 insertions, 100 deletions
diff --git a/c/src/lib/libbsp/powerpc/ep1a/console/polled_io.c b/c/src/lib/libbsp/powerpc/ep1a/console/polled_io.c index 69ee43827e..e0ae919c2e 100644 --- a/c/src/lib/libbsp/powerpc/ep1a/console/polled_io.c +++ b/c/src/lib/libbsp/powerpc/ep1a/console/polled_io.c @@ -409,106 +409,6 @@ static board_memory_map mem_map = { board_memory_map *ptr_mem_map = &mem_map; -#if 0 -struct _console_global_data { - console_log *log; - int vacuum_sent; - int lines; - int cols; - int orig_x; - int orig_y; - u_char shfts, ctls, alts, caps; -} console_global_data = {NULL, 0, 25, 80, 0, 24, 0, 0, 0, 0}; - -typedef struct console_io { - void (*putc) (const u_char); - int (*getc) (void); - int (*tstc) (void); -}console_io; - -extern console_io* curIo; - -void debug_putc(const u_char c) -{ - curIo->putc(c); -} - -/* const char arg to be compatible with BSP_output_char decl. */ -void -debug_putc_onlcr(const char c) -{ - if ('\n'==c) - debug_putc('\r'); - debug_putc(c); -} - -int debug_getc(void) -{ - return curIo->getc(); -} - -int debug_tstc(void) -{ - return curIo->tstc(); -} - -#define vidmem ((__io_ptr)(ptr_mem_map->isa_mem_base+0xb8000)) - -void vacuum_putc(u_char c) { - console_global_data.vacuum_sent++; -} - -int vacuum_getc(void) { - return -1; -} - -int vacuum_tstc(void) { - return 0; -} - -/* - * COM1 NS16550 support - */ - -#define rbr 0 -#define ier 1 -#define fcr 2 -#define lcr 3 -#define mcr 4 -#define lsr 5 -#define msr 6 -#define scr 7 -#define thr rbr -#define iir fcr -#define dll rbr -#define dlm ier - -#define LSR_DR 0x01 /* Data ready */ -#define LSR_OE 0x02 /* Overrun */ -#define LSR_PE 0x04 /* Parity error */ -#define LSR_FE 0x08 /* Framing error */ -#define LSR_BI 0x10 /* Break */ -#define LSR_THRE 0x20 /* Xmit holding register empty */ -#define LSR_TEMT 0x40 /* Xmitter empty */ -#define LSR_ERR 0x80 /* Error */ - - -#ifdef STATIC_LOG_ALLOC -static int global_index = 0; - -static void *__palloc(int s) -{ - if (global_index ==( STATIC_LOG_DATA_PAGE_NB - 1) ) return (void*) 0; - return (void*) &(log_page_pool [PAGE_SIZE * global_index++]); -} - -static void pfree(void* p) -{ - --global_index; -} -#endif - - void log_putc(const u_char c) { console_log *l; for(l=console_global_data.log; l; l=l->next) { |