@ -1091,6 +1095,44 @@ static int up_ioctl(struct file *filep, int cmd, unsigned long arg)
@@ -1091,6 +1095,44 @@ static int up_ioctl(struct file *filep, int cmd, unsigned long arg)
}
break;
#ifdef CONFIG_SERIAL_TERMIOS
caseTCGETS:
{
structtermios*termiosp=(structtermios*)arg;
if(!termiosp)
{
ret=-EINVAL;
break;
}
/* TODO: Other termios fields are not yet returned.
@ -1248,9 +1248,12 @@ static int up_ioctl(struct file *filep, int cmd, unsigned long arg)
@@ -1248,9 +1248,12 @@ static int up_ioctl(struct file *filep, int cmd, unsigned long arg)
break;
}
/* TODO: Other termios fields are not yet returned. */
/* TODO: Other termios fields are not yet returned.
@ -591,6 +595,43 @@ static int up_ioctl(struct file *filep, int cmd, unsigned long arg)
@@ -591,6 +595,43 @@ static int up_ioctl(struct file *filep, int cmd, unsigned long arg)
casexxx:/* Add commands here */
break;
caseTCGETS:
{
structtermios*termiosp=(structtermios*)arg;
if(!termiosp)
{
ret=-EINVAL;
break;
}
/* TODO: Other termios fields are not yet returned.