Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
3ab0fe24
Commit
3ab0fe24
authored
May 26, 2003
by
Alexander Viro
Committed by
Linus Torvalds
May 26, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] callout removal: vme
callout removal: vme
parent
5968822d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
33 deletions
+5
-33
drivers/char/vme_scc.c
drivers/char/vme_scc.c
+5
-33
No files found.
drivers/char/vme_scc.c
View file @
3ab0fe24
...
@@ -90,7 +90,7 @@ static irqreturn_t scc_spcond_int(int irq, void *data, struct pt_regs *fp);
...
@@ -90,7 +90,7 @@ static irqreturn_t scc_spcond_int(int irq, void *data, struct pt_regs *fp);
static
void
scc_setsignals
(
struct
scc_port
*
port
,
int
dtr
,
int
rts
);
static
void
scc_setsignals
(
struct
scc_port
*
port
,
int
dtr
,
int
rts
);
static
void
scc_break_ctl
(
struct
tty_struct
*
tty
,
int
break_state
);
static
void
scc_break_ctl
(
struct
tty_struct
*
tty
,
int
break_state
);
static
struct
tty_driver
scc_driver
,
scc_callout_driver
;
static
struct
tty_driver
scc_driver
;
static
struct
tty_struct
*
scc_table
[
2
]
=
{
NULL
,
};
static
struct
tty_struct
*
scc_table
[
2
]
=
{
NULL
,
};
static
struct
termios
*
scc_termios
[
2
];
static
struct
termios
*
scc_termios
[
2
];
...
@@ -167,26 +167,11 @@ static int scc_init_drivers(void)
...
@@ -167,26 +167,11 @@ static int scc_init_drivers(void)
scc_driver
.
hangup
=
gs_hangup
;
scc_driver
.
hangup
=
gs_hangup
;
scc_driver
.
break_ctl
=
scc_break_ctl
;
scc_driver
.
break_ctl
=
scc_break_ctl
;
scc_callout_driver
=
scc_driver
;
#ifdef CONFIG_DEVFS_FS
scc_callout_driver
.
name
=
"cua/"
;
#else
scc_callout_driver
.
name
=
"cua"
;
#endif
scc_callout_driver
.
major
=
TTYAUX_MAJOR
;
scc_callout_driver
.
subtype
=
SERIAL_TYPE_CALLOUT
;
if
((
error
=
tty_register_driver
(
&
scc_driver
)))
{
if
((
error
=
tty_register_driver
(
&
scc_driver
)))
{
printk
(
KERN_ERR
"scc: Couldn't register scc driver, error = %d
\n
"
,
printk
(
KERN_ERR
"scc: Couldn't register scc driver, error = %d
\n
"
,
error
);
error
);
return
1
;
return
1
;
}
}
if
((
error
=
tty_register_driver
(
&
scc_callout_driver
)))
{
tty_unregister_driver
(
&
scc_driver
);
printk
(
KERN_ERR
"scc: Couldn't register scc callout driver, error = %d
\n
"
,
error
);
return
1
;
}
return
0
;
return
0
;
}
}
...
@@ -202,7 +187,6 @@ static void scc_init_portstructs(void)
...
@@ -202,7 +187,6 @@ static void scc_init_portstructs(void)
for
(
i
=
0
;
i
<
2
;
i
++
)
{
for
(
i
=
0
;
i
<
2
;
i
++
)
{
port
=
scc_ports
+
i
;
port
=
scc_ports
+
i
;
port
->
gs
.
callout_termios
=
tty_std_termios
;
port
->
gs
.
normal_termios
=
tty_std_termios
;
port
->
gs
.
normal_termios
=
tty_std_termios
;
port
->
gs
.
magic
=
SCC_MAGIC
;
port
->
gs
.
magic
=
SCC_MAGIC
;
port
->
gs
.
close_delay
=
HZ
/
2
;
port
->
gs
.
close_delay
=
HZ
/
2
;
...
@@ -599,20 +583,13 @@ static irqreturn_t scc_stat_int(int irq, void *data, struct pt_regs *fp)
...
@@ -599,20 +583,13 @@ static irqreturn_t scc_stat_int(int irq, void *data, struct pt_regs *fp)
if
(
!
(
port
->
gs
.
flags
&
ASYNC_CHECK_CD
))
if
(
!
(
port
->
gs
.
flags
&
ASYNC_CHECK_CD
))
;
/* Don't report DCD changes */
;
/* Don't report DCD changes */
else
if
(
port
->
c_dcd
)
{
else
if
(
port
->
c_dcd
)
{
if
(
~
(
port
->
gs
.
flags
&
ASYNC_NORMAL_ACTIVE
)
||
~
(
port
->
gs
.
flags
&
ASYNC_CALLOUT_ACTIVE
))
{
/* Are we blocking in open?*/
wake_up_interruptible
(
&
port
->
gs
.
open_wait
);
wake_up_interruptible
(
&
port
->
gs
.
open_wait
);
}
}
}
else
{
else
{
if
(
!
((
port
->
gs
.
flags
&
ASYNC_CALLOUT_ACTIVE
)
&&
(
port
->
gs
.
flags
&
ASYNC_CALLOUT_NOHUP
)))
{
if
(
port
->
gs
.
tty
)
if
(
port
->
gs
.
tty
)
tty_hangup
(
port
->
gs
.
tty
);
tty_hangup
(
port
->
gs
.
tty
);
}
}
}
}
}
SCCwrite
(
COMMAND_REG
,
CR_EXTSTAT_RESET
);
SCCwrite
(
COMMAND_REG
,
CR_EXTSTAT_RESET
);
SCCwrite_NB
(
COMMAND_REG
,
CR_HIGHEST_IUS_RESET
);
SCCwrite_NB
(
COMMAND_REG
,
CR_HIGHEST_IUS_RESET
);
return
IRQ_HANDLED
;
return
IRQ_HANDLED
;
...
@@ -949,15 +926,10 @@ static int scc_open (struct tty_struct * tty, struct file * filp)
...
@@ -949,15 +926,10 @@ static int scc_open (struct tty_struct * tty, struct file * filp)
}
}
if
((
port
->
gs
.
count
==
1
)
&&
(
port
->
gs
.
flags
&
ASYNC_SPLIT_TERMIOS
))
{
if
((
port
->
gs
.
count
==
1
)
&&
(
port
->
gs
.
flags
&
ASYNC_SPLIT_TERMIOS
))
{
if
(
tty
->
driver
->
subtype
==
SERIAL_TYPE_NORMAL
)
*
tty
->
termios
=
port
->
gs
.
normal_termios
;
*
tty
->
termios
=
port
->
gs
.
normal_termios
;
else
*
tty
->
termios
=
port
->
gs
.
callout_termios
;
scc_set_real_termios
(
port
);
scc_set_real_termios
(
port
);
}
}
port
->
gs
.
session
=
current
->
session
;
port
->
gs
.
pgrp
=
current
->
pgrp
;
port
->
c_dcd
=
scc_get_CD
(
port
);
port
->
c_dcd
=
scc_get_CD
(
port
);
scc_enable_rx_interrupts
(
port
);
scc_enable_rx_interrupts
(
port
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment