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
f66aa001
Commit
f66aa001
authored
Aug 03, 2002
by
Alan Cox
Committed by
David Mosberger
Aug 03, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix endiannes problems in ISA net drivers:
3c503, hp-plus, smc-ultra, smc-ultra32, wd
parent
67c5f644
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
4 deletions
+11
-4
drivers/net/3c503.c
drivers/net/3c503.c
+1
-0
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 @
f66aa001
...
...
@@ -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/hp-plus.c
View file @
f66aa001
...
...
@@ -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 @
f66aa001
...
...
@@ -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 @
f66aa001
...
...
@@ -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 @
f66aa001
...
...
@@ -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