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
7a38263c
Commit
7a38263c
authored
Aug 03, 2002
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
http://gkernel.bkbits.net/net-drivers-2.5
into home.transmeta.com:/home/torvalds/v2.5/linux
parents
8f103851
97c9538a
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
6 deletions
+15
-6
drivers/net/3c503.c
drivers/net/3c503.c
+1
-0
drivers/net/ewrk3.c
drivers/net/ewrk3.c
+4
-2
drivers/net/hp-plus.c
drivers/net/hp-plus.c
+1
-1
drivers/net/smc-ultra.c
drivers/net/smc-ultra.c
+3
-1
drivers/net/smc-ultra32.c
drivers/net/smc-ultra32.c
+3
-1
drivers/net/wd.c
drivers/net/wd.c
+3
-1
No files found.
drivers/net/3c503.c
View file @
7a38263c
...
...
@@ -512,6 +512,7 @@ el2_get_8390_hdr(struct net_device *dev, struct e8390_pkt_hdr *hdr, int ring_pag
if
(
dev
->
mem_start
)
{
/* Use the shared memory. */
isa_memcpy_fromio
(
hdr
,
hdr_start
,
sizeof
(
struct
e8390_pkt_hdr
));
hdr
->
count
=
le16_to_cpu
(
hdr
->
count
);
return
;
}
...
...
drivers/net/ewrk3.c
View file @
7a38263c
...
...
@@ -133,6 +133,7 @@
0.42 22-Apr-96 Fix alloc_device() bug <jari@markkus2.fimr.fi>
0.43 16-Aug-96 Update alloc_device() to conform to de4x5.c
0.44 08-Nov-01 use library crc32 functions <Matt_Domsch@dell.com>
0.45 19-Jul-02 fix unaligned access on alpha <martin@bruli.net>
=========================================================================
*/
...
...
@@ -1008,12 +1009,13 @@ static int ewrk3_rx(struct net_device *dev)
}
p
=
skb
->
data
;
/* Look at the dest addr */
if
(
p
[
0
]
&
0x01
)
{
/* Multicast/Broadcast */
if
((
*
(
s
32
*
)
&
p
[
0
]
==
-
1
)
&&
(
*
(
s16
*
)
&
p
[
4
]
==
-
1
))
{
if
((
*
(
s
16
*
)
&
p
[
0
]
==
-
1
)
&&
(
*
(
s16
*
)
&
p
[
2
]
==
-
1
)
&&
(
*
(
s16
*
)
&
p
[
4
]
==
-
1
))
{
lp
->
pktStats
.
broadcast
++
;
}
else
{
lp
->
pktStats
.
multicast
++
;
}
}
else
if
((
*
(
s32
*
)
&
p
[
0
]
==
*
(
s32
*
)
&
dev
->
dev_addr
[
0
])
&&
}
else
if
((
*
(
s16
*
)
&
p
[
0
]
==
*
(
s16
*
)
&
dev
->
dev_addr
[
0
])
&&
(
*
(
s16
*
)
&
p
[
2
]
==
*
(
s16
*
)
&
dev
->
dev_addr
[
2
])
&&
(
*
(
s16
*
)
&
p
[
4
]
==
*
(
s16
*
)
&
dev
->
dev_addr
[
4
]))
{
lp
->
pktStats
.
unicast
++
;
}
...
...
drivers/net/hp-plus.c
View file @
7a38263c
...
...
@@ -351,7 +351,7 @@ hpp_mem_get_8390_hdr(struct net_device *dev, struct e8390_pkt_hdr *hdr, int ring
outw
(
option_reg
&
~
(
MemDisable
+
BootROMEnb
),
ioaddr
+
HPP_OPTION
);
isa_memcpy_fromio
(
hdr
,
dev
->
mem_start
,
sizeof
(
struct
e8390_pkt_hdr
));
outw
(
option_reg
,
ioaddr
+
HPP_OPTION
);
hdr
->
count
=
(
hdr
->
count
+
3
)
&
~
3
;
/* Round up allocation. */
hdr
->
count
=
(
le16_to_cpu
(
hdr
->
count
)
+
3
)
&
~
3
;
/* Round up allocation. */
}
static
void
...
...
drivers/net/smc-ultra.c
View file @
7a38263c
...
...
@@ -383,9 +383,11 @@ ultra_get_8390_hdr(struct net_device *dev, struct e8390_pkt_hdr *hdr, int ring_p
unsigned
long
hdr_start
=
dev
->
mem_start
+
((
ring_page
-
START_PG
)
<<
8
);
outb
(
ULTRA_MEMENB
,
dev
->
base_addr
-
ULTRA_NIC_OFFSET
);
/* shmem on */
#ifdef
notdef
#ifdef
__BIG_ENDIAN
/* Officially this is what we are doing, but the readl() is faster */
/* unfortunately it isn't endian aware of the struct */
isa_memcpy_fromio
(
hdr
,
hdr_start
,
sizeof
(
struct
e8390_pkt_hdr
));
hdr
->
count
=
le16_to_cpu
(
hdr
->
count
);
#else
((
unsigned
int
*
)
hdr
)[
0
]
=
isa_readl
(
hdr_start
);
#endif
...
...
drivers/net/smc-ultra32.c
View file @
7a38263c
...
...
@@ -320,9 +320,11 @@ static void ultra32_get_8390_hdr(struct net_device *dev,
/* Select correct 8KB Window. */
outb
(
ei_status
.
reg0
|
((
ring_page
&
0x60
)
>>
5
),
RamReg
);
#ifdef
notdef
#ifdef
__BIG_ENDIAN
/* Officially this is what we are doing, but the readl() is faster */
/* unfortunately it isn't endian aware of the struct */
isa_memcpy_fromio
(
hdr
,
hdr_start
,
sizeof
(
struct
e8390_pkt_hdr
));
hdr
->
count
=
le16_to_cpu
(
hdr
->
count
);
#else
((
unsigned
int
*
)
hdr
)[
0
]
=
isa_readl
(
hdr_start
);
#endif
...
...
drivers/net/wd.c
View file @
7a38263c
...
...
@@ -370,9 +370,11 @@ wd_get_8390_hdr(struct net_device *dev, struct e8390_pkt_hdr *hdr, int ring_page
if
(
ei_status
.
word16
)
outb
(
ISA16
|
ei_status
.
reg5
,
wd_cmdreg
+
WD_CMDREG5
);
#ifdef
notdef
#ifdef
__BIG_ENDIAN
/* Officially this is what we are doing, but the readl() is faster */
/* unfortunately it isn't endian aware of the struct */
isa_memcpy_fromio
(
hdr
,
hdr_start
,
sizeof
(
struct
e8390_pkt_hdr
));
hdr
->
count
=
le16_to_cpu
(
hdr
->
count
);
#else
((
unsigned
int
*
)
hdr
)[
0
]
=
isa_readl
(
hdr_start
);
#endif
...
...
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