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
nexedi
linux
Commits
40f4e407
Commit
40f4e407
authored
Mar 06, 2003
by
Alan Cox
Committed by
Linus Torvalds
Mar 06, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] remove 2.2 compatmac stuff from rio driver
parent
f3d26f44
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
11 additions
and
23 deletions
+11
-23
drivers/char/rio/rio_linux.c
drivers/char/rio/rio_linux.c
+11
-14
drivers/char/rio/rioboot.c
drivers/char/rio/rioboot.c
+0
-1
drivers/char/rio/riocmd.c
drivers/char/rio/riocmd.c
+0
-1
drivers/char/rio/rioctrl.c
drivers/char/rio/rioctrl.c
+0
-1
drivers/char/rio/rioinit.c
drivers/char/rio/rioinit.c
+0
-1
drivers/char/rio/riointr.c
drivers/char/rio/riointr.c
+0
-1
drivers/char/rio/rioparam.c
drivers/char/rio/rioparam.c
+0
-1
drivers/char/rio/rioroute.c
drivers/char/rio/rioroute.c
+0
-1
drivers/char/rio/riotable.c
drivers/char/rio/riotable.c
+0
-1
drivers/char/rio/riotty.c
drivers/char/rio/riotty.c
+0
-1
No files found.
drivers/char/rio/rio_linux.c
View file @
40f4e407
...
...
@@ -59,7 +59,6 @@
#include <linux/miscdevice.h>
#include <linux/init.h>
#include <linux/compatmac.h>
#include <linux/generic_serial.h>
#if BITS_PER_LONG != 32
...
...
@@ -725,14 +724,14 @@ static int rio_ioctl (struct tty_struct * tty, struct file * filp,
switch
(
cmd
)
{
#if 0
case TIOCGSOFTCAR:
rc =
P
ut_user(((tty->termios->c_cflag & CLOCAL) ? 1 : 0),
rc =
p
ut_user(((tty->termios->c_cflag & CLOCAL) ? 1 : 0),
(unsigned int *) arg);
break;
#endif
case
TIOCSSOFTCAR
:
if
((
rc
=
verify_area
(
VERIFY_READ
,
(
void
*
)
arg
,
sizeof
(
int
)))
==
0
)
{
G
et_user
(
ival
,
(
unsigned
int
*
)
arg
);
g
et_user
(
ival
,
(
unsigned
int
*
)
arg
);
tty
->
termios
->
c_cflag
=
(
tty
->
termios
->
c_cflag
&
~
CLOCAL
)
|
(
ival
?
CLOCAL
:
0
);
...
...
@@ -784,7 +783,7 @@ static int rio_ioctl (struct tty_struct * tty, struct file * filp,
case TIOCMBIS:
if ((rc = verify_area(VERIFY_READ, (void *) arg,
sizeof(unsigned int))) == 0) {
G
et_user(ival, (unsigned int *) arg);
g
et_user(ival, (unsigned int *) arg);
rio_setsignals(port, ((ival & TIOCM_DTR) ? 1 : -1),
((ival & TIOCM_RTS) ? 1 : -1));
}
...
...
@@ -792,7 +791,7 @@ static int rio_ioctl (struct tty_struct * tty, struct file * filp,
case TIOCMBIC:
if ((rc = verify_area(VERIFY_READ, (void *) arg,
sizeof(unsigned int))) == 0) {
G
et_user(ival, (unsigned int *) arg);
g
et_user(ival, (unsigned int *) arg);
rio_setsignals(port, ((ival & TIOCM_DTR) ? 0 : -1),
((ival & TIOCM_RTS) ? 0 : -1));
}
...
...
@@ -800,7 +799,7 @@ static int rio_ioctl (struct tty_struct * tty, struct file * filp,
case TIOCMSET:
if ((rc = verify_area(VERIFY_READ, (void *) arg,
sizeof(unsigned int))) == 0) {
G
et_user(ival, (unsigned int *) arg);
g
et_user(ival, (unsigned int *) arg);
rio_setsignals(port, ((ival & TIOCM_DTR) ? 1 : 0),
((ival & TIOCM_RTS) ? 1 : 0));
}
...
...
@@ -1126,7 +1125,7 @@ void fix_rio_pci (PDEV)
t
,
CNTRL_REG_GOODVALUE
);
writel
(
CNTRL_REG_GOODVALUE
,
rebase
+
CNTRL_REG_OFFSET
);
}
my_iounmap
(
hwbase
,
rebase
);
iounmap
((
char
*
)
rebase
);
}
#endif
...
...
@@ -1201,7 +1200,7 @@ static int __init rio_init(void)
hp
=
&
p
->
RIOHosts
[
p
->
RIONumHosts
];
hp
->
PaddrP
=
tint
&
PCI_BASE_ADDRESS_MEM_MASK
;
hp
->
Ivec
=
get_irq
(
pdev
)
;
hp
->
Ivec
=
pdev
->
irq
;
if
(((
1
<<
hp
->
Ivec
)
&
rio_irqmask
)
==
0
)
hp
->
Ivec
=
0
;
hp
->
CardP
=
(
struct
DpRam
*
)
...
...
@@ -1234,8 +1233,7 @@ static int __init rio_init(void)
p
->
RIONumHosts
++
;
found
++
;
}
else
{
my_iounmap
(
p
->
RIOHosts
[
p
->
RIONumHosts
].
PaddrP
,
p
->
RIOHosts
[
p
->
RIONumHosts
].
Caddr
);
iounmap
((
char
*
)
(
p
->
RIOHosts
[
p
->
RIONumHosts
].
Caddr
));
}
#ifdef TWO_ZERO
...
...
@@ -1272,7 +1270,7 @@ static int __init rio_init(void)
hp
=
&
p
->
RIOHosts
[
p
->
RIONumHosts
];
hp
->
PaddrP
=
tint
&
PCI_BASE_ADDRESS_MEM_MASK
;
hp
->
Ivec
=
get_irq
(
pdev
)
;
hp
->
Ivec
=
pdev
->
irq
;
if
(((
1
<<
hp
->
Ivec
)
&
rio_irqmask
)
==
0
)
hp
->
Ivec
=
0
;
hp
->
Ivec
|=
0x8000
;
/* Mark as non-sharable */
...
...
@@ -1307,8 +1305,7 @@ static int __init rio_init(void)
p
->
RIONumHosts
++
;
found
++
;
}
else
{
my_iounmap
(
p
->
RIOHosts
[
p
->
RIONumHosts
].
PaddrP
,
p
->
RIOHosts
[
p
->
RIONumHosts
].
Caddr
);
iounmap
((
char
*
)
(
p
->
RIOHosts
[
p
->
RIONumHosts
].
Caddr
));
}
#else
printk
(
KERN_ERR
"Found an older RIO PCI card, but the driver is not "
...
...
@@ -1361,7 +1358,7 @@ static int __init rio_init(void)
}
if
(
!
okboard
)
my_iounmap
(
hp
->
PaddrP
,
hp
->
Caddr
);
iounmap
((
char
*
)
(
hp
->
Caddr
)
);
}
}
...
...
drivers/char/rio/rioboot.c
View file @
40f4e407
...
...
@@ -48,7 +48,6 @@ static char *_rioboot_c_sccs_ = "@(#)rioboot.c 1.3";
#include <linux/termios.h>
#include <linux/serial.h>
#include <linux/compatmac.h>
#include <linux/generic_serial.h>
...
...
drivers/char/rio/riocmd.c
View file @
40f4e407
...
...
@@ -47,7 +47,6 @@ static char *_riocmd_c_sccs_ = "@(#)riocmd.c 1.2";
#include <linux/termios.h>
#include <linux/serial.h>
#include <linux/compatmac.h>
#include <linux/generic_serial.h>
#include "linux_compat.h"
...
...
drivers/char/rio/rioctrl.c
View file @
40f4e407
...
...
@@ -47,7 +47,6 @@ static char *_rioctrl_c_sccs_ = "@(#)rioctrl.c 1.3";
#include <linux/termios.h>
#include <linux/serial.h>
#include <linux/compatmac.h>
#include <linux/generic_serial.h>
...
...
drivers/char/rio/rioinit.c
View file @
40f4e407
...
...
@@ -47,7 +47,6 @@ static char *_rioinit_c_sccs_ = "@(#)rioinit.c 1.3";
#include <linux/termios.h>
#include <linux/serial.h>
#include <linux/compatmac.h>
#include <linux/generic_serial.h>
...
...
drivers/char/rio/riointr.c
View file @
40f4e407
...
...
@@ -48,7 +48,6 @@ static char *_riointr_c_sccs_ = "@(#)riointr.c 1.2";
#include <linux/termios.h>
#include <linux/serial.h>
#include <linux/compatmac.h>
#include <linux/generic_serial.h>
#include <linux/delay.h>
...
...
drivers/char/rio/rioparam.c
View file @
40f4e407
...
...
@@ -48,7 +48,6 @@ static char *_rioparam_c_sccs_ = "@(#)rioparam.c 1.3";
#include <linux/termios.h>
#include <linux/serial.h>
#include <linux/compatmac.h>
#include <linux/generic_serial.h>
...
...
drivers/char/rio/rioroute.c
View file @
40f4e407
...
...
@@ -46,7 +46,6 @@ static char *_rioroute_c_sccs_ = "@(#)rioroute.c 1.3";
#include <linux/termios.h>
#include <linux/serial.h>
#include <linux/compatmac.h>
#include <linux/generic_serial.h>
...
...
drivers/char/rio/riotable.c
View file @
40f4e407
...
...
@@ -48,7 +48,6 @@ static char *_riotable_c_sccs_ = "@(#)riotable.c 1.2";
#include <linux/termios.h>
#include <linux/serial.h>
#include <linux/compatmac.h>
#include <linux/generic_serial.h>
...
...
drivers/char/rio/riotty.c
View file @
40f4e407
...
...
@@ -51,7 +51,6 @@ static char *_riotty_c_sccs_ = "@(#)riotty.c 1.3";
#include <linux/serial.h>
#include <linux/compatmac.h>
#include <linux/generic_serial.h>
...
...
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