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
bf206db5
Commit
bf206db5
authored
Aug 30, 2003
by
Jeff Garzik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[netdrvr 8139cp] remove mentions of RTL8169 (now handled by "r8169")
parent
811d414f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
16 deletions
+1
-16
drivers/net/8139cp.c
drivers/net/8139cp.c
+1
-16
No files found.
drivers/net/8139cp.c
View file @
bf206db5
...
...
@@ -399,7 +399,6 @@ static void cp_clean_rings (struct cp_private *cp);
enum
board_type
{
RTL8139Cp
,
RTL8169
,
};
static
struct
cp_board_info
{
...
...
@@ -407,18 +406,11 @@ static struct cp_board_info {
}
cp_board_tbl
[]
__devinitdata
=
{
/* RTL8139Cp */
{
"RTL-8139C+"
},
/* RTL8169 */
{
"RTL-8169"
},
};
static
struct
pci_device_id
cp_pci_tbl
[]
=
{
{
PCI_VENDOR_ID_REALTEK
,
PCI_DEVICE_ID_REALTEK_8139
,
PCI_ANY_ID
,
PCI_ANY_ID
,
0
,
0
,
RTL8139Cp
},
#if 0
{ PCI_VENDOR_ID_REALTEK, PCI_DEVICE_ID_REALTEK_8169,
PCI_ANY_ID, PCI_ANY_ID, 0, 0, RTL8169 },
#endif
{
},
};
MODULE_DEVICE_TABLE
(
pci
,
cp_pci_tbl
);
...
...
@@ -990,10 +982,7 @@ static void cp_reset_hw (struct cp_private *cp)
static
inline
void
cp_start_hw
(
struct
cp_private
*
cp
)
{
u16
pci_dac
=
cp
->
pci_using_dac
?
PCIDAC
:
0
;
if
(
cp
->
board_type
==
RTL8169
)
cpw16
(
CpCmd
,
pci_dac
|
PCIMulRW
|
RxChkSum
);
else
cpw16
(
CpCmd
,
pci_dac
|
PCIMulRW
|
RxChkSum
|
CpRxOn
|
CpTxOn
);
cpw16
(
CpCmd
,
pci_dac
|
PCIMulRW
|
RxChkSum
|
CpRxOn
|
CpTxOn
);
cpw8
(
Cmd
,
RxOn
|
TxOn
);
}
...
...
@@ -1022,8 +1011,6 @@ static void cp_init_hw (struct cp_private *cp)
cp
->
wol_enabled
=
0
;
}
cpw8
(
Config5
,
cpr8
(
Config5
)
&
PMEStatus
);
if
(
cp
->
board_type
==
RTL8169
)
cpw16
(
RxMaxSize
,
cp
->
rx_buf_sz
);
cpw32_f
(
HiTxRingAddr
,
0
);
cpw32_f
(
HiTxRingAddr
+
4
,
0
);
...
...
@@ -1216,8 +1203,6 @@ static int cp_change_mtu(struct net_device *dev, int new_mtu)
dev
->
mtu
=
new_mtu
;
cp_set_rxbufsize
(
cp
);
/* set new rx buf size */
if
(
cp
->
board_type
==
RTL8169
)
cpw16
(
RxMaxSize
,
cp
->
rx_buf_sz
);
rc
=
cp_init_rings
(
cp
);
/* realloc and restart h/w */
cp_start_hw
(
cp
);
...
...
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