int is_server = !pty || Node == pty->ServerNode;
+ LOG("(%i,%p) %s", ID, Data, (is_server?"Server":"Client"));
+
switch(ID)
{
case DRV_IOCTL_TYPE: return DRV_TYPE_TERMINAL;
* drv/serial.c
* - Common serial port code
*/
+#define DEBUG 0
#include <acess.h>
#include <modules.h>
#include <fs_devfs.h>
void Serial_ByteReceived(tSerialPort *Port, char Ch)
{
+ LOG("Port=%p,Ch=%i", Port, Ch);
if( !Port )
return ;
if( Port == gSerial_KernelDebugPort )
}
if( Ch == '\r' )
Ch = '\n';
+ LOG("Dispatch to PTY");
PTY_SendInput(Port->PTY, &Ch, 1);
}