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
27d52ab6
Commit
27d52ab6
authored
Oct 08, 2002
by
Benjamin LaHaise
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update ns83820 to 0.20
parent
31f875aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
drivers/net/ns83820.c
drivers/net/ns83820.c
+9
-5
No files found.
drivers/net/ns83820.c
View file @
27d52ab6
#define _VERSION "0.
19
"
#define _VERSION "0.
20
"
/* ns83820.c by Benjamin LaHaise with contributions.
*
* Questions/comments/discussion to linux-ns83820@kvack.org.
*
* $Revision: 1.34.2.2
0
$
* $Revision: 1.34.2.2
3
$
*
* Copyright 2001 Benjamin LaHaise.
* Copyright 2001, 2002 Red Hat.
...
...
@@ -62,6 +62,7 @@
* - gmii bus probing
* - fix missed txok introduced during performance
* tuning
* 0.20 - fix stupid RFEN thinko. i am such a smurf.
*
* Driver Overview
* ===============
...
...
@@ -1001,7 +1002,6 @@ static void ns83820_cleanup_tx(struct ns83820 *dev)
le32_to_cpu
(
desc
[
DESC_CMDSTS
])
&
CMDSTS_LEN_MASK
,
PCI_DMA_TODEVICE
);
dev_kfree_skb_irq
(
skb
);
dev_kfree_skb
(
skb
);
atomic_dec
(
&
dev
->
nr_tx_skbs
);
}
}
...
...
@@ -1524,8 +1524,9 @@ static void ns83820_set_multicast(struct net_device *_dev)
{
struct
ns83820
*
dev
=
(
void
*
)
_dev
;
u8
*
rfcr
=
dev
->
base
+
RFCR
;
u32
and_mask
=
0xffffffff
&
~
RFCR_RFEN
;
u32
and_mask
=
0xffffffff
;
u32
or_mask
=
0
;
u32
val
;
if
(
dev
->
net_dev
.
flags
&
IFF_PROMISC
)
or_mask
|=
RFCR_AAU
|
RFCR_AAM
;
...
...
@@ -1538,7 +1539,10 @@ static void ns83820_set_multicast(struct net_device *_dev)
and_mask
&=
~
RFCR_AAM
;
spin_lock_irq
(
&
dev
->
misc_lock
);
writel
((
readl
(
rfcr
)
&
and_mask
)
|
or_mask
,
rfcr
);
val
=
(
readl
(
rfcr
)
&
and_mask
)
|
or_mask
;
/* Ramit : RFCR Write Fix doc says RFEN must be 0 modify other bits */
writel
(
val
&
~
RFCR_RFEN
,
rfcr
);
writel
(
val
,
rfcr
);
spin_unlock_irq
(
&
dev
->
misc_lock
);
}
...
...
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