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
c42189bb
Commit
c42189bb
authored
Jul 17, 2003
by
Alan Cox
Committed by
Linus Torvalds
Jul 17, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] clean up ip2 glue (not yet ported tho)
(Adriank Bunk)
parent
da1f5f86
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
105 additions
and
261 deletions
+105
-261
drivers/char/ip2.c
drivers/char/ip2.c
+8
-10
drivers/char/ip2/i2lib.c
drivers/char/ip2/i2lib.c
+1
-1
drivers/char/ip2/i2os.h
drivers/char/ip2/i2os.h
+0
-18
drivers/char/ip2main.c
drivers/char/ip2main.c
+96
-232
No files found.
drivers/char/ip2.c
View file @
c42189bb
...
...
@@ -38,16 +38,14 @@ static int irq[IP2_MAX_BOARDS] = { -1, -1, -1, -1 };
static
int
poll_only
=
0
;
# if LINUX_VERSION_CODE >= KERNEL_VERSION(2,1,0)
MODULE_AUTHOR
(
"Doug McNash"
);
MODULE_DESCRIPTION
(
"Computone IntelliPort Plus Driver"
);
MODULE_PARM
(
irq
,
"1-"
__MODULE_STRING
(
IP2_MAX_BOARDS
)
"i"
);
MODULE_PARM_DESC
(
irq
,
"Interrupts for IntelliPort Cards"
);
MODULE_PARM
(
io
,
"1-"
__MODULE_STRING
(
IP2_MAX_BOARDS
)
"i"
);
MODULE_PARM_DESC
(
io
,
"I/O ports for IntelliPort Cards"
);
MODULE_PARM
(
poll_only
,
"1i"
);
MODULE_PARM_DESC
(
poll_only
,
"Do not use card interrupts"
);
# endif
/* LINUX_VERSION */
MODULE_AUTHOR
(
"Doug McNash"
);
MODULE_DESCRIPTION
(
"Computone IntelliPort Plus Driver"
);
MODULE_PARM
(
irq
,
"1-"
__MODULE_STRING
(
IP2_MAX_BOARDS
)
"i"
);
MODULE_PARM_DESC
(
irq
,
"Interrupts for IntelliPort Cards"
);
MODULE_PARM
(
io
,
"1-"
__MODULE_STRING
(
IP2_MAX_BOARDS
)
"i"
);
MODULE_PARM_DESC
(
io
,
"I/O ports for IntelliPort Cards"
);
MODULE_PARM
(
poll_only
,
"1i"
);
MODULE_PARM_DESC
(
poll_only
,
"Do not use card interrupts"
);
//======================================================================
...
...
drivers/char/ip2/i2lib.c
View file @
c42189bb
...
...
@@ -1089,7 +1089,7 @@ i2Output(i2ChanStrPtr pCh, const char *pSource, int count, int user )
// Move the data
if
(
user
)
{
COPY_FROM_USER
(
rc
,
(
char
*
)(
DATA_OF
(
pInsert
)),
pSource
,
rc
=
copy_from_user
(
(
char
*
)(
DATA_OF
(
pInsert
)),
pSource
,
amountToMove
);
}
else
{
memcpy
(
(
char
*
)(
DATA_OF
(
pInsert
)),
pSource
,
amountToMove
);
...
...
drivers/char/ip2/i2os.h
View file @
c42189bb
...
...
@@ -19,8 +19,6 @@
#ifndef I2OS_H
/* To prevent multiple includes */
#define I2OS_H 1
#define VERSION(ver,rel,seq) (((ver)<<16) | ((rel)<<8) | (seq))
//-------------------------------------------------
// Required Includes
//-------------------------------------------------
...
...
@@ -46,22 +44,6 @@
// Interrupt control
//--------------------------------------------
#if LINUX_VERSION_CODE < 0x00020100
typedef
int
spinlock_t
;
#define spin_lock_init()
#define spin_lock(a)
#define spin_unlock(a)
#define spin_lock_irqsave(a,b) {save_flags((b));cli();}
#define spin_unlock_irqrestore(a,b) {restore_flags((b));}
#define write_lock_irqsave(a,b) spin_lock_irqsave(a,b)
#define write_unlock_irqrestore(a,b) spin_unlock_irqrestore(a,b)
#define read_lock_irqsave(a,b) spin_lock_irqsave(a,b)
#define read_unlock_irqrestore(a,b) spin_unlock_irqrestore(a,b)
#endif
//#define SAVE_AND_DISABLE_INTS(a,b) spin_lock_irqsave(a,b)
//#define RESTORE_INTS(a,b) spin_unlock_irqrestore(a,b)
#define LOCK_INIT(a) rwlock_init(a)
#define SAVE_AND_DISABLE_INTS(a,b) { \
...
...
drivers/char/ip2main.c
View file @
c42189bb
This diff is collapsed.
Click to expand it.
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