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
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 @@
...
@@ -59,7 +59,6 @@
#include <linux/miscdevice.h>
#include <linux/miscdevice.h>
#include <linux/init.h>
#include <linux/init.h>
#include <linux/compatmac.h>
#include <linux/generic_serial.h>
#include <linux/generic_serial.h>
#if BITS_PER_LONG != 32
#if BITS_PER_LONG != 32
...
@@ -725,14 +724,14 @@ static int rio_ioctl (struct tty_struct * tty, struct file * filp,
...
@@ -725,14 +724,14 @@ static int rio_ioctl (struct tty_struct * tty, struct file * filp,
switch
(
cmd
)
{
switch
(
cmd
)
{
#if 0
#if 0
case TIOCGSOFTCAR:
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);
(unsigned int *) arg);
break;
break;
#endif
#endif
case
TIOCSSOFTCAR
:
case
TIOCSSOFTCAR
:
if
((
rc
=
verify_area
(
VERIFY_READ
,
(
void
*
)
arg
,
if
((
rc
=
verify_area
(
VERIFY_READ
,
(
void
*
)
arg
,
sizeof
(
int
)))
==
0
)
{
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
=
(
tty
->
termios
->
c_cflag
&
~
CLOCAL
)
|
(
tty
->
termios
->
c_cflag
&
~
CLOCAL
)
|
(
ival
?
CLOCAL
:
0
);
(
ival
?
CLOCAL
:
0
);
...
@@ -784,7 +783,7 @@ static int rio_ioctl (struct tty_struct * tty, struct file * filp,
...
@@ -784,7 +783,7 @@ static int rio_ioctl (struct tty_struct * tty, struct file * filp,
case TIOCMBIS:
case TIOCMBIS:
if ((rc = verify_area(VERIFY_READ, (void *) arg,
if ((rc = verify_area(VERIFY_READ, (void *) arg,
sizeof(unsigned int))) == 0) {
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),
rio_setsignals(port, ((ival & TIOCM_DTR) ? 1 : -1),
((ival & TIOCM_RTS) ? 1 : -1));
((ival & TIOCM_RTS) ? 1 : -1));
}
}
...
@@ -792,7 +791,7 @@ static int rio_ioctl (struct tty_struct * tty, struct file * filp,
...
@@ -792,7 +791,7 @@ static int rio_ioctl (struct tty_struct * tty, struct file * filp,
case TIOCMBIC:
case TIOCMBIC:
if ((rc = verify_area(VERIFY_READ, (void *) arg,
if ((rc = verify_area(VERIFY_READ, (void *) arg,
sizeof(unsigned int))) == 0) {
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),
rio_setsignals(port, ((ival & TIOCM_DTR) ? 0 : -1),
((ival & TIOCM_RTS) ? 0 : -1));
((ival & TIOCM_RTS) ? 0 : -1));
}
}
...
@@ -800,7 +799,7 @@ static int rio_ioctl (struct tty_struct * tty, struct file * filp,
...
@@ -800,7 +799,7 @@ static int rio_ioctl (struct tty_struct * tty, struct file * filp,
case TIOCMSET:
case TIOCMSET:
if ((rc = verify_area(VERIFY_READ, (void *) arg,
if ((rc = verify_area(VERIFY_READ, (void *) arg,
sizeof(unsigned int))) == 0) {
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),
rio_setsignals(port, ((ival & TIOCM_DTR) ? 1 : 0),
((ival & TIOCM_RTS) ? 1 : 0));
((ival & TIOCM_RTS) ? 1 : 0));
}
}
...
@@ -1126,7 +1125,7 @@ void fix_rio_pci (PDEV)
...
@@ -1126,7 +1125,7 @@ void fix_rio_pci (PDEV)
t
,
CNTRL_REG_GOODVALUE
);
t
,
CNTRL_REG_GOODVALUE
);
writel
(
CNTRL_REG_GOODVALUE
,
rebase
+
CNTRL_REG_OFFSET
);
writel
(
CNTRL_REG_GOODVALUE
,
rebase
+
CNTRL_REG_OFFSET
);
}
}
my_iounmap
(
hwbase
,
rebase
);
iounmap
((
char
*
)
rebase
);
}
}
#endif
#endif
...
@@ -1201,7 +1200,7 @@ static int __init rio_init(void)
...
@@ -1201,7 +1200,7 @@ static int __init rio_init(void)
hp
=
&
p
->
RIOHosts
[
p
->
RIONumHosts
];
hp
=
&
p
->
RIOHosts
[
p
->
RIONumHosts
];
hp
->
PaddrP
=
tint
&
PCI_BASE_ADDRESS_MEM_MASK
;
hp
->
PaddrP
=
tint
&
PCI_BASE_ADDRESS_MEM_MASK
;
hp
->
Ivec
=
get_irq
(
pdev
)
;
hp
->
Ivec
=
pdev
->
irq
;
if
(((
1
<<
hp
->
Ivec
)
&
rio_irqmask
)
==
0
)
if
(((
1
<<
hp
->
Ivec
)
&
rio_irqmask
)
==
0
)
hp
->
Ivec
=
0
;
hp
->
Ivec
=
0
;
hp
->
CardP
=
(
struct
DpRam
*
)
hp
->
CardP
=
(
struct
DpRam
*
)
...
@@ -1234,8 +1233,7 @@ static int __init rio_init(void)
...
@@ -1234,8 +1233,7 @@ static int __init rio_init(void)
p
->
RIONumHosts
++
;
p
->
RIONumHosts
++
;
found
++
;
found
++
;
}
else
{
}
else
{
my_iounmap
(
p
->
RIOHosts
[
p
->
RIONumHosts
].
PaddrP
,
iounmap
((
char
*
)
(
p
->
RIOHosts
[
p
->
RIONumHosts
].
Caddr
));
p
->
RIOHosts
[
p
->
RIONumHosts
].
Caddr
);
}
}
#ifdef TWO_ZERO
#ifdef TWO_ZERO
...
@@ -1272,7 +1270,7 @@ static int __init rio_init(void)
...
@@ -1272,7 +1270,7 @@ static int __init rio_init(void)
hp
=
&
p
->
RIOHosts
[
p
->
RIONumHosts
];
hp
=
&
p
->
RIOHosts
[
p
->
RIONumHosts
];
hp
->
PaddrP
=
tint
&
PCI_BASE_ADDRESS_MEM_MASK
;
hp
->
PaddrP
=
tint
&
PCI_BASE_ADDRESS_MEM_MASK
;
hp
->
Ivec
=
get_irq
(
pdev
)
;
hp
->
Ivec
=
pdev
->
irq
;
if
(((
1
<<
hp
->
Ivec
)
&
rio_irqmask
)
==
0
)
if
(((
1
<<
hp
->
Ivec
)
&
rio_irqmask
)
==
0
)
hp
->
Ivec
=
0
;
hp
->
Ivec
=
0
;
hp
->
Ivec
|=
0x8000
;
/* Mark as non-sharable */
hp
->
Ivec
|=
0x8000
;
/* Mark as non-sharable */
...
@@ -1307,8 +1305,7 @@ static int __init rio_init(void)
...
@@ -1307,8 +1305,7 @@ static int __init rio_init(void)
p
->
RIONumHosts
++
;
p
->
RIONumHosts
++
;
found
++
;
found
++
;
}
else
{
}
else
{
my_iounmap
(
p
->
RIOHosts
[
p
->
RIONumHosts
].
PaddrP
,
iounmap
((
char
*
)
(
p
->
RIOHosts
[
p
->
RIONumHosts
].
Caddr
));
p
->
RIOHosts
[
p
->
RIONumHosts
].
Caddr
);
}
}
#else
#else
printk
(
KERN_ERR
"Found an older RIO PCI card, but the driver is not "
printk
(
KERN_ERR
"Found an older RIO PCI card, but the driver is not "
...
@@ -1361,7 +1358,7 @@ static int __init rio_init(void)
...
@@ -1361,7 +1358,7 @@ static int __init rio_init(void)
}
}
if
(
!
okboard
)
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";
...
@@ -48,7 +48,6 @@ static char *_rioboot_c_sccs_ = "@(#)rioboot.c 1.3";
#include <linux/termios.h>
#include <linux/termios.h>
#include <linux/serial.h>
#include <linux/serial.h>
#include <linux/compatmac.h>
#include <linux/generic_serial.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";
...
@@ -47,7 +47,6 @@ static char *_riocmd_c_sccs_ = "@(#)riocmd.c 1.2";
#include <linux/termios.h>
#include <linux/termios.h>
#include <linux/serial.h>
#include <linux/serial.h>
#include <linux/compatmac.h>
#include <linux/generic_serial.h>
#include <linux/generic_serial.h>
#include "linux_compat.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";
...
@@ -47,7 +47,6 @@ static char *_rioctrl_c_sccs_ = "@(#)rioctrl.c 1.3";
#include <linux/termios.h>
#include <linux/termios.h>
#include <linux/serial.h>
#include <linux/serial.h>
#include <linux/compatmac.h>
#include <linux/generic_serial.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";
...
@@ -47,7 +47,6 @@ static char *_rioinit_c_sccs_ = "@(#)rioinit.c 1.3";
#include <linux/termios.h>
#include <linux/termios.h>
#include <linux/serial.h>
#include <linux/serial.h>
#include <linux/compatmac.h>
#include <linux/generic_serial.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";
...
@@ -48,7 +48,6 @@ static char *_riointr_c_sccs_ = "@(#)riointr.c 1.2";
#include <linux/termios.h>
#include <linux/termios.h>
#include <linux/serial.h>
#include <linux/serial.h>
#include <linux/compatmac.h>
#include <linux/generic_serial.h>
#include <linux/generic_serial.h>
#include <linux/delay.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";
...
@@ -48,7 +48,6 @@ static char *_rioparam_c_sccs_ = "@(#)rioparam.c 1.3";
#include <linux/termios.h>
#include <linux/termios.h>
#include <linux/serial.h>
#include <linux/serial.h>
#include <linux/compatmac.h>
#include <linux/generic_serial.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";
...
@@ -46,7 +46,6 @@ static char *_rioroute_c_sccs_ = "@(#)rioroute.c 1.3";
#include <linux/termios.h>
#include <linux/termios.h>
#include <linux/serial.h>
#include <linux/serial.h>
#include <linux/compatmac.h>
#include <linux/generic_serial.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";
...
@@ -48,7 +48,6 @@ static char *_riotable_c_sccs_ = "@(#)riotable.c 1.2";
#include <linux/termios.h>
#include <linux/termios.h>
#include <linux/serial.h>
#include <linux/serial.h>
#include <linux/compatmac.h>
#include <linux/generic_serial.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";
...
@@ -51,7 +51,6 @@ static char *_riotty_c_sccs_ = "@(#)riotty.c 1.3";
#include <linux/serial.h>
#include <linux/serial.h>
#include <linux/compatmac.h>
#include <linux/generic_serial.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