/* * vgacons_write_polled * * This routine polls out the requested character. */ VGACONS_STATIC void vgacons_write_polled( int minor, char c ) { _IBMPC_outch( c ); if( c == '\n') _IBMPC_outch( '\r' ); /* LF = LF + CR */ }
void BSP_outch(char ch) { #if BSP_ENABLE_VGA if ( BSPPrintkPort == BSP_CONSOLE_VGA ) { _IBMPC_outch( ch ); return; } #endif console_tbl *cptr; cptr = &Console_Configuration_Ports[BSPPrintkPort]; cptr->pDeviceFns->deviceWritePolled( BSPPrintkPort, ch ); }
void BSP_outch(char ch) { #if BSP_ENABLE_VGA bool isVga = BSPPrintkPort == BSP_CONSOLE_VGA; #else bool isVga = false; #endif if ( !isVga ) { console_tbl *port = Console_Port_Tbl[BSPPrintkPort]; if (port->pDeviceFns && port->pDeviceFns->deviceWritePolled) { port->pDeviceFns->deviceWritePolled( BSPPrintkPort, ch ); } return; } #if BSP_ENABLE_VGA _IBMPC_outch( ch ); #endif }