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
03789917
Commit
03789917
authored
Feb 27, 2002
by
Christopher Leech
Committed by
Jeff Garzik
Feb 27, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix e1000 net driver 64-bit DMA initialization.
parent
c49e48e9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
10 deletions
+16
-10
drivers/net/e1000/e1000.h
drivers/net/e1000/e1000.h
+0
-3
drivers/net/e1000/e1000_main.c
drivers/net/e1000/e1000_main.c
+16
-7
No files found.
drivers/net/e1000/e1000.h
View file @
03789917
...
...
@@ -117,9 +117,6 @@ struct e1000_adapter;
#define BAR_0 0
/* Advertise that we can DMA from any address location */
#define E1000_DMA_MASK (~0x0UL)
#if DBG
#define E1000_DBG(args...) printk(KERN_DEBUG "e1000: " args)
#else
...
...
drivers/net/e1000/e1000_main.c
View file @
03789917
...
...
@@ -79,7 +79,7 @@ char e1000_driver_name[] = "e1000";
char
e1000_driver_string
[]
=
"Intel(R) PRO/1000 Network Driver"
;
char
e1000_driver_version
[]
=
"4.2.4-k
1
"
;
char
e1000_driver_version
[]
=
"4.2.4-k
2
"
;
char
e1000_copyright
[]
=
"Copyright (c) 1999-2002 Intel Corporation."
;
...
...
@@ -368,13 +368,21 @@ e1000_probe(struct pci_dev *pdev,
static
int
cards_found
=
0
;
unsigned
long
mmio_start
;
int
mmio_len
;
int
pci_using_dac
;
int
i
;
if
((
i
=
pci_enable_device
(
pdev
)))
return
i
;
if
((
i
=
pci_set_dma_mask
(
pdev
,
E1000_DMA_MASK
)))
return
i
;
if
(
!
(
i
=
pci_set_dma_mask
(
pdev
,
(
u64
)
0xffffffffffffffff
)))
{
pci_using_dac
=
1
;
}
else
{
if
((
i
=
pci_set_dma_mask
(
pdev
,
(
u64
)
0xffffffff
)))
{
E1000_ERR
(
"No usable DMA configuration, aborting
\n
"
);
return
i
;
}
pci_using_dac
=
0
;
}
if
((
i
=
pci_request_regions
(
pdev
,
e1000_driver_name
)))
return
i
;
...
...
@@ -422,13 +430,14 @@ e1000_probe(struct pci_dev *pdev,
e1000_sw_init
(
adapter
);
if
(
adapter
->
shared
.
mac_type
>=
e1000_82543
)
{
netdev
->
features
=
NETIF_F_SG
|
NETIF_F_IP_CSUM
|
NETIF_F_HIGHDMA
;
netdev
->
features
=
NETIF_F_SG
|
NETIF_F_HW_CSUM
;
}
else
{
netdev
->
features
=
NETIF_F_SG
|
NETIF_F_HIGHDMA
;
netdev
->
features
=
NETIF_F_SG
;
}
if
(
pci_using_dac
)
netdev
->
features
|=
NETIF_F_HIGHDMA
;
/* make sure the EEPROM is good */
if
(
!
e1000_validate_eeprom_checksum
(
&
adapter
->
shared
))
...
...
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