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
Kirill Smelkov
linux
Commits
fee02f80
Commit
fee02f80
authored
Jun 08, 2005
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
rsync://rsync.kernel.org/pub/scm/linux/kernel/git/davem/tg3-2.6
parents
4f58802f
ed7fce6c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
4 deletions
+19
-4
drivers/net/tg3.c
drivers/net/tg3.c
+18
-4
include/linux/pci_ids.h
include/linux/pci_ids.h
+1
-0
No files found.
drivers/net/tg3.c
View file @
fee02f80
...
...
@@ -66,8 +66,8 @@
#define DRV_MODULE_NAME "tg3"
#define PFX DRV_MODULE_NAME ": "
#define DRV_MODULE_VERSION "3.3
0
"
#define DRV_MODULE_RELDATE "June
6
, 2005"
#define DRV_MODULE_VERSION "3.3
1
"
#define DRV_MODULE_RELDATE "June
8
, 2005"
#define TG3_DEF_MAC_MODE 0
#define TG3_DEF_RX_MODE 0
...
...
@@ -9695,10 +9695,24 @@ static int __devinit tg3_test_dma(struct tg3 *tp)
}
if
((
tp
->
dma_rwctrl
&
DMA_RWCTRL_WRITE_BNDRY_MASK
)
!=
DMA_RWCTRL_WRITE_BNDRY_16
)
{
static
struct
pci_device_id
dma_wait_state_chipsets
[]
=
{
{
PCI_DEVICE
(
PCI_VENDOR_ID_APPLE
,
PCI_DEVICE_ID_APPLE_UNI_N_PCI15
)
},
{
},
};
/* DMA test passed without adjusting DMA boundary,
* just restore the calculated DMA boundary
* now look for chipsets that are known to expose the
* DMA bug without failing the test.
*/
tp
->
dma_rwctrl
=
saved_dma_rwctrl
;
if
(
pci_dev_present
(
dma_wait_state_chipsets
))
{
tp
->
dma_rwctrl
&=
~
DMA_RWCTRL_WRITE_BNDRY_MASK
;
tp
->
dma_rwctrl
|=
DMA_RWCTRL_WRITE_BNDRY_16
;
}
else
/* Safe to use the calculated DMA boundary. */
tp
->
dma_rwctrl
=
saved_dma_rwctrl
;
tw32
(
TG3PCI_DMA_RW_CTRL
,
tp
->
dma_rwctrl
);
}
...
...
include/linux/pci_ids.h
View file @
fee02f80
...
...
@@ -874,6 +874,7 @@
#define PCI_DEVICE_ID_APPLE_KL_USB_P 0x0026
#define PCI_DEVICE_ID_APPLE_UNI_N_AGP_P 0x0027
#define PCI_DEVICE_ID_APPLE_UNI_N_AGP15 0x002d
#define PCI_DEVICE_ID_APPLE_UNI_N_PCI15 0x002e
#define PCI_DEVICE_ID_APPLE_UNI_N_FW2 0x0030
#define PCI_DEVICE_ID_APPLE_UNI_N_GMAC2 0x0032
#define PCI_DEVIEC_ID_APPLE_UNI_N_ATA 0x0033
...
...
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