Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
542ea6c3
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
542ea6c3
编写于
1月 16, 2006
作者:
A
Alan Cox
提交者:
Linus Torvalds
1月 16, 2006
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[PATCH] Remove unused code from rio_linux.c
Signed-off-by:
N
Linus Torvalds
<
torvalds@osdl.org
>
上级
283c9d54
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
0 addition
and
60 deletion
+0
-60
drivers/char/rio/rio_linux.c
drivers/char/rio/rio_linux.c
+0
-60
未找到文件。
drivers/char/rio/rio_linux.c
浏览文件 @
542ea6c3
...
...
@@ -132,16 +132,6 @@ more than 512 ports.... */
*/
#define IRQ_RATE_LIMIT 200
#if 0
/* Not implemented */
/*
* The following defines are mostly for testing purposes. But if you need
* some nice reporting in your syslog, you can define them also.
*/
#define RIO_REPORT_FIFO
#define RIO_REPORT_OVERRUN
#endif
/* These constants are derived from SCO Source */
static
struct
Conf
...
...
@@ -573,21 +563,6 @@ static void rio_shutdown_port(void *ptr)
PortP
=
(
struct
Port
*
)
ptr
;
PortP
->
gs
.
tty
=
NULL
;
#if 0
port->gs.flags &= ~GS_ACTIVE;
if (!port->gs.tty) {
rio_dprintk(RIO_DBUG_TTY, "No tty.\n");
return;
}
if (!port->gs.tty->termios) {
rio_dprintk(RIO_DEBUG_TTY, "No termios.\n");
return;
}
if (port->gs.tty->termios->c_cflag & HUPCL) {
rio_setsignals(port, 0, 0);
}
#endif
func_exit
();
}
...
...
@@ -663,11 +638,6 @@ static int rio_ioctl(struct tty_struct *tty, struct file *filp, unsigned int cmd
rc
=
0
;
switch
(
cmd
)
{
#if 0
case TIOCGSOFTCAR:
rc = put_user(((tty->termios->c_cflag & CLOCAL) ? 1 : 0), (unsigned int *) arg);
break;
#endif
case
TIOCSSOFTCAR
:
if
((
rc
=
get_user
(
ival
,
(
unsigned
int
*
)
arg
))
==
0
)
{
tty
->
termios
->
c_cflag
=
(
tty
->
termios
->
c_cflag
&
~
CLOCAL
)
|
(
ival
?
CLOCAL
:
0
);
...
...
@@ -709,36 +679,6 @@ static int rio_ioctl(struct tty_struct *tty, struct file *filp, unsigned int cmd
if
(
access_ok
(
VERIFY_READ
,
(
void
*
)
arg
,
sizeof
(
struct
serial_struct
)))
rc
=
gs_setserial
(
&
PortP
->
gs
,
(
struct
serial_struct
*
)
arg
);
break
;
#if 0
/*
* note: these IOCTLs no longer reach here. Use
* tiocmset/tiocmget driver methods instead. The
* #if 0 disablement predates this comment.
*/
case TIOCMGET:
rc = -EFAULT;
if (access_ok(VERIFY_WRITE, (void *) arg, sizeof(unsigned int))) {
rc = 0;
ival = rio_getsignals(port);
put_user(ival, (unsigned int *) arg);
}
break;
case TIOCMBIS:
if ((rc = get_user(ival, (unsigned int *) arg)) == 0) {
rio_setsignals(port, ((ival & TIOCM_DTR) ? 1 : -1), ((ival & TIOCM_RTS) ? 1 : -1));
}
break;
case TIOCMBIC:
if ((rc = get_user(ival, (unsigned int *) arg)) == 0) {
rio_setsignals(port, ((ival & TIOCM_DTR) ? 0 : -1), ((ival & TIOCM_RTS) ? 0 : -1));
}
break;
case TIOCMSET:
if ((rc = get_user(ival, (unsigned int *) arg)) == 0) {
rio_setsignals(port, ((ival & TIOCM_DTR) ? 1 : 0), ((ival & TIOCM_RTS) ? 1 : 0));
}
break;
#endif
default:
rc
=
-
ENOIOCTLCMD
;
break
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录