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
170747d7
Commit
170747d7
authored
May 15, 2004
by
Jeff Garzik
Browse files
Options
Browse Files
Download
Plain Diff
Merge redhat.com:/spare/repo/b44-2.6.5
into redhat.com:/spare/repo/net-drivers-2.6
parents
78479816
694919c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
drivers/net/b44.c
drivers/net/b44.c
+12
-5
No files found.
drivers/net/b44.c
View file @
170747d7
...
@@ -1210,8 +1210,9 @@ static void b44_init_hw(struct b44 *bp)
...
@@ -1210,8 +1210,9 @@ static void b44_init_hw(struct b44 *bp)
b44_chip_reset
(
bp
);
b44_chip_reset
(
bp
);
b44_phy_reset
(
bp
);
b44_phy_reset
(
bp
);
b44_setup_phy
(
bp
);
b44_setup_phy
(
bp
);
val
=
br32
(
B44_MAC_CTRL
);
bw32
(
B44_MAC_CTRL
,
val
|
MAC_CTRL_CRC32_ENAB
);
/* Enable CRC32, set proper LED modes and power on PHY */
bw32
(
B44_MAC_CTRL
,
MAC_CTRL_CRC32_ENAB
|
MAC_CTRL_PHY_LEDCTRL
);
bw32
(
B44_RCV_LAZY
,
(
1
<<
RCV_LAZY_FC_SHIFT
));
bw32
(
B44_RCV_LAZY
,
(
1
<<
RCV_LAZY_FC_SHIFT
));
/* This sets the MAC address too. */
/* This sets the MAC address too. */
...
@@ -1351,7 +1352,7 @@ static struct net_device_stats *b44_get_stats(struct net_device *dev)
...
@@ -1351,7 +1352,7 @@ static struct net_device_stats *b44_get_stats(struct net_device *dev)
return
nstat
;
return
nstat
;
}
}
static
void
__b44_load_mcast
(
struct
b44
*
bp
,
struct
net_device
*
dev
)
static
int
__b44_load_mcast
(
struct
b44
*
bp
,
struct
net_device
*
dev
)
{
{
struct
dev_mc_list
*
mclist
;
struct
dev_mc_list
*
mclist
;
int
i
,
num_ents
;
int
i
,
num_ents
;
...
@@ -1361,12 +1362,15 @@ static void __b44_load_mcast(struct b44 *bp, struct net_device *dev)
...
@@ -1361,12 +1362,15 @@ static void __b44_load_mcast(struct b44 *bp, struct net_device *dev)
for
(
i
=
0
;
mclist
&&
i
<
num_ents
;
i
++
,
mclist
=
mclist
->
next
)
{
for
(
i
=
0
;
mclist
&&
i
<
num_ents
;
i
++
,
mclist
=
mclist
->
next
)
{
__b44_cam_write
(
bp
,
mclist
->
dmi_addr
,
i
+
1
);
__b44_cam_write
(
bp
,
mclist
->
dmi_addr
,
i
+
1
);
}
}
return
i
+
1
;
}
}
static
void
__b44_set_rx_mode
(
struct
net_device
*
dev
)
static
void
__b44_set_rx_mode
(
struct
net_device
*
dev
)
{
{
struct
b44
*
bp
=
netdev_priv
(
dev
);
struct
b44
*
bp
=
netdev_priv
(
dev
);
u32
val
;
u32
val
;
int
i
=
0
;
unsigned
char
zero
[
6
]
=
{
0
,
0
,
0
,
0
,
0
,
0
};
val
=
br32
(
B44_RXCONFIG
);
val
=
br32
(
B44_RXCONFIG
);
val
&=
~
(
RXCONFIG_PROMISC
|
RXCONFIG_ALLMULTI
);
val
&=
~
(
RXCONFIG_PROMISC
|
RXCONFIG_ALLMULTI
);
...
@@ -1379,8 +1383,11 @@ static void __b44_set_rx_mode(struct net_device *dev)
...
@@ -1379,8 +1383,11 @@ static void __b44_set_rx_mode(struct net_device *dev)
if
(
dev
->
flags
&
IFF_ALLMULTI
)
if
(
dev
->
flags
&
IFF_ALLMULTI
)
val
|=
RXCONFIG_ALLMULTI
;
val
|=
RXCONFIG_ALLMULTI
;
else
else
__b44_load_mcast
(
bp
,
dev
);
i
=
__b44_load_mcast
(
bp
,
dev
);
for
(;
i
<
64
;
i
++
)
{
__b44_cam_write
(
bp
,
zero
,
i
);
}
bw32
(
B44_RXCONFIG
,
val
);
bw32
(
B44_RXCONFIG
,
val
);
val
=
br32
(
B44_CAM_CTRL
);
val
=
br32
(
B44_CAM_CTRL
);
bw32
(
B44_CAM_CTRL
,
val
|
CAM_CTRL_ENABLE
);
bw32
(
B44_CAM_CTRL
,
val
|
CAM_CTRL_ENABLE
);
...
...
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