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
ccaaf4f1
Commit
ccaaf4f1
authored
Jul 19, 2003
by
Angelo Dell\'Aera
Committed by
Jeff Garzik
Jul 19, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] sk_mca
parent
4c4efea8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
drivers/net/sk_mca.c
drivers/net/sk_mca.c
+8
-9
drivers/net/sk_mca.h
drivers/net/sk_mca.h
+1
-0
No files found.
drivers/net/sk_mca.c
View file @
ccaaf4f1
...
...
@@ -254,8 +254,7 @@ static void SetLANCE(struct SKMCA_NETDEV *dev, u16 addr, u16 value)
/* disable interrupts */
save_flags
(
flags
);
cli
();
spin_lock_irqsave
(
&
priv
->
lock
,
flags
);
/* wait until no transfer is pending */
...
...
@@ -281,7 +280,7 @@ static void SetLANCE(struct SKMCA_NETDEV *dev, u16 addr, u16 value)
/* reenable interrupts */
restore_flags
(
flags
);
spin_lock_irqrestore
(
&
priv
->
lock
,
flags
);
}
/* get LANCE register */
...
...
@@ -294,8 +293,7 @@ static u16 GetLANCE(struct SKMCA_NETDEV *dev, u16 addr)
/* disable interrupts */
save_flags
(
flags
);
cli
();
spin_lock_irqsave
(
&
priv
->
lock
,
flags
);
/* wait until no transfer is pending */
...
...
@@ -321,7 +319,7 @@ static u16 GetLANCE(struct SKMCA_NETDEV *dev, u16 addr)
/* reenable interrupts */
restore_flags
(
flags
);
spin_lock_irqrestore
(
&
priv
->
lock
,
flags
);
return
res
;
}
...
...
@@ -968,8 +966,9 @@ static int skmca_tx(struct sk_buff *skb, struct SKMCA_NETDEV *dev)
#endif
/* one more descriptor busy */
save_flags
(
flags
);
cli
();
spin_lock_irqsave
(
&
priv
->
lock
,
flags
);
priv
->
nexttxput
++
;
if
(
priv
->
nexttxput
>=
TXCOUNT
)
priv
->
nexttxput
=
0
;
...
...
@@ -994,7 +993,7 @@ static int skmca_tx(struct sk_buff *skb, struct SKMCA_NETDEV *dev)
if
(
priv
->
txbusy
==
0
)
SetLANCE
(
dev
,
LANCE_CSR0
,
CSR0_INEA
|
CSR0_TDMD
);
restore_flags
(
flags
);
spin_lock_irqrestore
(
&
priv
->
lock
,
flags
);
tx_done:
...
...
drivers/net/sk_mca.h
View file @
ccaaf4f1
...
...
@@ -53,6 +53,7 @@ typedef struct {
int
realirq
;
/* memorizes actual IRQ, even when
currently not allocated */
skmca_medium
medium
;
/* physical cannector */
spinlock_t
lock
;
}
skmca_priv
;
/* card registers: control/status register bits */
...
...
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