tkernel_2/driver/tef_em1d/console/src/portdef.h | bare source | permlink (0.02 seconds) |
1: /* 2: *---------------------------------------------------------------------- 3: * T-Kernel 2.0 Software Package 4: * 5: * Copyright 2011 by Ken Sakamura. 6: * This software is distributed under the latest version of T-License 2.x. 7: *---------------------------------------------------------------------- 8: * 9: * Released by T-Engine Forum(http://www.t-engine.org/) at 2011/05/17. 10: * Modified by T-Engine Forum at 2013/03/01. 11: * Modified by TRON Forum(http://www.tron.org/) at 2015/06/01. 12: * 13: *---------------------------------------------------------------------- 14: */ 15: 16: /* 17: * portdef.h Console/Low-level serial I/O driver 18: * 19: * Serial line low-level driver system-dependent port definition(EM1-D512) 20: */ 21: 22: /* Port definition */ 23: IMPORT SC_FUNC ScFuncNS16450; 24: 25: #define N_PORTS 1 26: 27: LOCAL SC_DEFS PortDefs[N_PORTS] = { 28: /* Port #0: UART0 */ 29: { 30: &ScFuncNS16450, 31: { 0x50000000, /* I/O base address */ 32: 4, /* iostep */ 33: IV_IRQ(9) /* Interrupt Vector */ 34: }, 35: 0, /* fctl register value */ 36: {0, 0, 0}, /* dt[3]: Not used */ 37: {0, 3, 0, 0, 38400}, /* default mode */ 38: {0, 0, 1, 1, 0, 0, 0}, /* default flow control */ 39: {0, 0, 0}, /* default flow status */ 40: } 41: }; 42: 43: #define INIT_AUXPORT(sup) /* Nothing */ 44: #define START_AUXPORT(sup) /* Nothing */