summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/ep1a/console/polled_io.c
diff options
context:
space:
mode:
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.c100
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) {